佳木斯湛栽影视文化发展公司

主頁 > 知識(shí)庫 > Solaris 10 x86系統(tǒng)上添加新硬盤

Solaris 10 x86系統(tǒng)上添加新硬盤

熱門標(biāo)簽:呼叫中心案例 呼叫中心解決方案 電話機(jī)器人源碼 AI電銷 解決方案 美團(tuán) 電銷業(yè)務(wù) 國(guó)美全國(guó)運(yùn)營(yíng)中心

過程:

1.       識(shí)別新增硬盤

root:/# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

       0. c0d0 DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0

Specify disk (enter its number): ^C

root:/# devfsadm

root:/# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

       0. c0d0 DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0

       1. c0d1 DEFAULT cyl 1303 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0

Specify disk (enter its number): 1

注意:兩次format命令顯示內(nèi)容的區(qū)別。第二次系統(tǒng)識(shí)別出新增硬盤c0d1。

在此次試驗(yàn)中使用命令 devfsadm命令識(shí)別出新增硬盤,網(wǎng)絡(luò)上還有一些其他方法。

2.       格式化新增硬盤

root:/# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

       0. c0d0 DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0

       1. c0d1 DEFAULT cyl 1302 alt 2 hd 255 sec 63>

          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0

Specify disk (enter its number):  1           ß 注釋:選擇新增加的硬盤

selecting c0d1 

Controller working list found

[disk formatted, defect list found]

FORMAT MENU:

        disk       - select a disk

        type       - select (define) a disk type

        partition  - select (define) a partition table

        current    - describe the current disk

        format     - format and analyze the disk

        fdisk      - run the fdisk program

        repair     - repair a defective sector

        show       - translate a disk address

        label      - write label to the disk

        analyze    - surface analysis

        defect     - defect list management

        backup     - search for backup labels

        verify     - read and display labels

        save       - save new disk/partition definitions

        volname    - set 8-character volume name

        !cmd>     - execute cmd>, then return

        quit

format> fdisk                                   ß 注釋:建立分區(qū)表

No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition,  otherwise type "n" to edit the

 partition table.

Y

format> label

Ready to label disk, continue? Y

format>  p                                      ß 注釋:p等于partition命令,進(jìn)入分區(qū)狀態(tài)

PARTITION MENU:

        0      - change `0' partition

        1      - change `1' partition

        2      - change `2' partition

        3      - change `3' partition

        4      - change `4' partition

        5      - change `5' partition

        6      - change `6' partition

        7      - change `7' partition

        select - select a predefined table

        modify - modify a predefined partition table

        name   - name the current table

        print  - display the current table

        label  - write partition map and label to the disk

        !cmd> - execute cmd>, then return

        quit

partition>  print                             ß 注釋:顯示當(dāng)前分區(qū)表

Current partition table (original):

Total disk cylinders available: 1302 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks

  0 unassigned    wm       0               0         (0/0/0)           0

  1 unassigned    wm       0               0         (0/0/0)           0

  2     backup    wu       0 - 1301        9.97GB    (1302/0/0) 20916630

  3 unassigned    wm       0               0         (0/0/0)           0

  4 unassigned    wm       0               0         (0/0/0)           0

  5 unassigned    wm       0               0         (0/0/0)           0

  6 unassigned    wm       0               0         (0/0/0)           0

  7 unassigned    wm       0               0         (0/0/0)          0

  8      boot    wu       0 -    0        7.84MB    (1/0/0)       16065

  9 alternates      wm      1 -    2       15.69MB    (2/0/0)       32130

partition>  0                                    ß 注釋:選擇0分區(qū)

Part      Tag    Flag     Cylinders        Size            Blocks

  0 unassigned    wm       0               0         (0/0/0)           0

Enter partition id tag[unassigned]: unassigned            ß 注釋:輸入分區(qū)ID標(biāo)簽

Enter partition permission flags[wm]:  wm        ß 注釋:輸入分區(qū)權(quán)限參數(shù)

Enter new starting cyl[0]:  0                                       ß 注釋:輸入分區(qū)起始柱面為0柱面

Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]:  6gb         ß 注釋:輸入分區(qū)大小,6GB

partition>  label                                                          ß 注釋:將信息寫入磁盤中

Ready to label disk, continue?  yes

partition>  print

Current partition table (unnamed):

Total disk cylinders available: 1302 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks

  0 unassigned    wm       0 -  783        6.01GB    (784/0/0)  12594960

  1 unassigned    wm       0               0         (0/0/0)           0

  2     backup    wu       0 - 1301        9.97GB    (1302/0/0) 20916630

  3 unassigned    wm       0               0         (0/0/0)           0

  4 unassigned    wm       0               0         (0/0/0)           0

  5 unassigned    wm       0               0         (0/0/0)           0

  6 unassigned    wm       0               0         (0/0/0)           0

  7 unassigned    wm       0               0         (0/0/0)           0

  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065

  9 alternates    wm       1 -    2       15.69MB    (2/0/0)       32130

partition>  q                                                                         ß 注釋:退出

FORMAT MENU:

        disk       - select a disk

        type       - select (define) a disk type

        partition  - select (define) a partition table

        current    - describe the current disk

        format     - format and analyze the disk

        fdisk      - run the fdisk program

        repair     - repair a defective sector

        show       - translate a disk address

        label      - write label to the disk

        analyze    - surface analysis

        defect     - defect list management

        backup     - search for backup labels

        verify     - read and display labels

        save       - save new disk/partition definitions

        volname    - set 8-character volume name

        !cmd>     - execute cmd>, then return

        quit

format>  q                                                                            ß 注釋:退出

3.       建立新的文件系統(tǒng)

root:/# newfs  /dev/rdsk/c0d1s0

newfs: construct a new file system /dev/rdsk/c0d1s0: (y/n)? y

Warning: 240 sector(s) in last cylinder unallocated

/dev/rdsk/c0d1s0:       12594960 sectors in 2050 cylinders of 48 tracks, 128 sectors

        6149.9MB in 129 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)

super-block backups (for fsck -F ufs -o b=#) at:

 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,

 11705248, 11803680, 11902112, 12000544, 12098976, 12197408, 12295840,

 12394272, 12492704, 12582944

4.       建立掛載點(diǎn)

root:/# mkdir  /oracle

root:/# mount  /dev/dsk/c0d1s0  /oracle

root:/# df  -h

Filesystem             size   used   avail   capacity   Mounted on

/dev/dsk/c0d0s0   4.2G   3.3G   880M    80%    /

/devices                   0K     0K     0K        0%    /devices

ctfs                          0K     0K     0K        0%    /system/contract

proc                        0K     0K     0K        0%    /proc

mnttab                     0K     0K     0K        0%    /etc/mnttab

swap                 1021M   720K  1021M     1%    /etc/svc/volatile

objfs                        0K     0K     0K         0%    /system/object

/usr/lib/libc/libc_hwcap1.so.1

                            4.2G   3.3G   880M      80%    /lib/libc.so.1

fd                            0K     0K     0K          0%    /dev/fd

swap                 1021M    76K  1021M     1%    /tmp

swap                 1021M    36K  1021M     1%    /var/run

/dev/dsk/c0d0s7    5.1G   2.2G   2.9G      44%    /export/home

/hgfs                       16G   4.0M    16G     1%    /hgfs

/tmp/VMwareDnD  64G    16M    64G     1%    /var/run/vmblock

/dev/dsk/c0d1s0     5.9G   6.0M   5.8G     1%    /oracle

標(biāo)簽:鄭州 涼山 益陽 吉安 濟(jì)源 惠州 通遼 東莞

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Solaris 10 x86系統(tǒng)上添加新硬盤》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    高碑店市| 福海县| 谷城县| 宿松县| 平江县| 东丰县| 沁源县| 凤凰县| 岳阳县| 望都县| 宜宾县| 古浪县| 德格县| 天祝| 舒城县| 泰安市| 儋州市| 肃北| 炉霍县| 水富县| 延吉市| 望城县| 东丽区| 金阳县| 抚州市| 法库县| 广宁县| 娄底市| 防城港市| 中西区| 兰西县| 贵州省| 桐城市| 齐齐哈尔市| 平湖市| 万山特区| 鸡东县| 城步| 同德县| 无锡市| 吉木萨尔县|