亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2617 | 回復(fù): 1
打印 上一主題 下一主題

V880smc新建卷步驟 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-03-28 11:33 |只看該作者 |倒序瀏覽

V880smc新建卷步驟

一、    以下是創(chuàng)建Solaris Volume Manager 組件的先決條件:

創(chuàng)建初始狀態(tài)數(shù)據(jù)庫副本。如果尚未執(zhí)行此操作,找出可供Solaris Volume Manager 使用的片。如有必要,請使用format 命令、fmthard 命令或Solaris Management Console 對現(xiàn)有磁盤重新分區(qū)。

確保您具有超級用戶權(quán)限。

具有所有數(shù)據(jù)的最新備份。

二、用到的磁盤

V880smc中選取c1t2d0和c1t3d0這兩磁盤做鏡像,分配給/opt目錄,應(yīng)用程序。在v880smc中用AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789b07,0
       1. c1t1d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf788acc,0
       2. c1t2d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789ae9,0
       3. c1t3d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf787f27,0
       4. c1t4d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789b34,0
       5. c1t5d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789a49,0

在這6個磁盤有我們使用2和3號磁盤做鏡像,這兩個磁盤的片結(jié)構(gòu)如下:
2號磁盤c1t2d0:
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm     182 - 24589       33.62GB    (24408/0/0) 70514712
6        usr    wm   24590 - 24604       21.16MB    (15/0/0)       43335
7 unassigned    wm   24605 - 24619       21.16MB    (15/0/0)       43335
?        3號磁盤c1t3d0:
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm     182 - 24589       33.62GB    (24408/0/0) 70514712
6        usr    wm   24590 - 24604       21.16MB    (15/0/0)       43335
7 unassigned    wm   24605 - 24619       21.16MB    (15/0/0)       43335

從上面的信息中我們可以看到c1t2d05 c1t2d0s5的大小為33.62GB 這個和磁盤部大小相差不大,可以選取這兩個盤片做鏡像就可以了。

注:各盤的S6片是為是給metadb加入到狀態(tài)數(shù)據(jù)庫中使用而預(yù)留的磁盤空間。如果將整個磁盤做鏡像。最好也是預(yù)留一定大小的磁盤空間給狀態(tài)數(shù)據(jù)庫使用。

如果要對磁盤做新的分片操作可以按下面的《磁盤分區(qū)操作》部分進行操作。

三、 具體操作方法

1.   把被鏡像盤和鏡像盤的各物理分區(qū)封裝成disksuit能夠直接管理的設(shè)備metadevice,并給它起一個別名,作為這個物理分區(qū)的metadevice name(下例中的d51、d52):
       #metainit -f d25 1 1 c1t2d0s5
       #metainit d35 1 1 c1t3d0s5

2.   為每一個需要做鏡像的分區(qū)起一個鏡像名作為最終被系統(tǒng)使用的文件系統(tǒng)名(下例中的d0),并使其指向被鏡像分區(qū)的metadevice name:
       #metainit d5 -m d25

3.   被鏡像分區(qū)與鏡像分區(qū)之間進行數(shù)據(jù)同步,并使該分區(qū)的文件系統(tǒng)名同時也指向該分區(qū)的鏡像分區(qū)的metadevice name:
       #metattach d5 d35

4.  修改/etc/vfstab文件,使其指向被鏡像分區(qū)的文件系統(tǒng)名。
$ cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d13 -       -       swap    -       no      -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /       ufs     1       no      logging
#/dev/dsk/c1t0d0s6      /dev/rdsk/c1t0d0s6      /sdsdb ufs     2       yes     -
#/dev/dsk/c1t0d0s7      /dev/rdsk/c1t0d0s7      /vmdb   ufs     2       yes     -
/dev/md/dsk/d5        /dev/md/rdsk/d5        /opt        ufs     1       no      -
swap    -       /tmp    tmpfs   -       yes     -

以上是單獨作一個分區(qū)的鏡象的例子。
做完磁盤的鏡像操作后,下一步的操作就是對/opt目錄文件的遷移工作。
四、 /opt目錄備份操作

由于要用新建的/dev/md/dsk/d5 掛到/opt下使用,我們在備份的時候就把/opt目錄下的所有文件都恢復(fù)到/dev/md/dsk/d5掛載的一暫時目錄/test下,出到對安全的考量,我們建議再做一份磁帶的備份,以防不時之需。

操作方法和步驟:
1.ok boot -s
2.# ufsdump 0uf - /opt |(cd /test ; ufsrestore rf - )
3.# vi /etc/vfstab
/dev/md/dsk/d5        /dev/md/rdsk/d5        /opt        ufs     1       no      -
4.# mount /opt
5.# reboot

文件目錄的復(fù)制,這樣可以使用COPY過來的文件的屬性和原來的是一樣的。鏈接文件也會拷貝過來:
# cd /opt
# find . –print –depth |cpio –pdm /test
如果只是做目錄的同步可以按上面的操作進行,只用非根(/)和非/usr目錄的情形。

五、 磁盤分區(qū)操作

如果
要對磁盤各片進行大小的調(diào)整可以按下面的操作方法進行操作。指定各個磁盤片的大小,如果要使用整個磁盤的話可以將除了片s2之外的所有片的空間都置為0就
可以了。在使用片的時候可以直接使用s2就可以達到使用整個磁盤空間的目的了。不過,建議還是留一部分小的空間用供狀態(tài)數(shù)據(jù)庫使用。

# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789b07,0
       1. c1t1d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf788acc,0
       2. c1t2d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789ae9,0
       3. c1t3d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf787f27,0
       4. c1t4d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789b34,0
       5. c1t5d0
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf789a49,0
Specify disk (enter its number): 3
selecting c1t3d0
[disk formatted]

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
        repair     - repair a defective sector
        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
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !     - execute , then return
        quit
format> p

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
        ! - execute , then return
        quit
partition> modify
Select partitioning base:
        0. Current partition table (original)
        1. All Free Hog
Choose base (enter number) [0]? 0

Part      Tag    Flag     Cylinders         Size            Blocks
0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm     182 - 24589       33.62GB    (24408/0/0) 70514712
6        usr    wm   24590 - 24604       21.16MB    (15/0/0)       43335
7 unassigned    wm   24605 - 24619       21.16MB    (15/0/0)       43335

Do you wish to continue creating a new partition
table based on above table[yes]? yes
Free Hog partition[6]? 6     #注釋:從第6個盤片上取空間用于新的盤片
Enter size of partition '0' [262899b, 91c, 128.37mb, 0.13gb]:
Enter size of partition '1' [262899b, 91c, 128.37mb, 0.13gb]:
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '5' [70514712b, 24408c, 34431.01mb, 33.62gb]:
Enter size of partition '7' [43335b, 15c, 21.16mb, 0.02gb]:

Part      Tag    Flag     Cylinders         Size            Blocks
0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm     182 - 24589       33.62GB    (24408/0/0) 70514712
6        usr    wm   24590 - 24604       21.16MB    (15/0/0)       43335
7 unassigned    wm   24605 - 24619       21.16MB    (15/0/0)       43335

Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): original

Ready to label disk, continue? Yes
完成對磁盤的分區(qū)操作。
               
               
               

本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u/16768/showart_1882656.html

論壇徽章:
0
2 [報告]
發(fā)表于 2009-06-19 21:26 |只看該作者
不錯的東西,謝謝分享,多謝了
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP