当前位置:Linux教程 - Linux综合 - vxvmrootdisk的封装和解除封装

vxvmrootdisk的封装和解除封装

  环境:ultra1 2块硬盘   已经配置rootdg内包含一个slice c0t0d0s5   系统盘上的slice 5 6 7 各有100m空间 其余空间都给了/ 和swap 试验内容为将根盘封装,然后景象。试验景象盘能够引导系统,最后解除景象和封装。   Rootdisk encapsulate   1.add new disk slice at rootdg   root@sunlab # vxdctl add disk c0t1d0s5 type=simple   vxvm:vxdctl: WARNING: Device c0t1d0s5: Not currently in the configuration   root@sunlab # vxdisk -f init c0t1d0s5 type=simple   root@sunlab # vxdg adddisk c0t1d0s5   root@sunlab # vxdctl enable   vxdisk list     DEVICE TYPE DISK GROUP STATUS   c0t0d0s2 sliced - - error   c0t0d0s5 simple c0t0d0s5 rootdg online   c0t1d0s2 sliced - - error   c0t1d0s5 simple c0t1d0s5 rootdg online   2.remove rootdisk slice at rootdg   root@sunlab # vxdctl rm disk c0t0d0s5   root@sunlab # vxdg -g rootdg rmdisk c0t0d0s5   root@sunlab # vxdisk rm c0t0d0s5   root@sunlab # vxdisk list   DEVICE TYPE DISK GROUP STATUS   c0t0d0s2 sliced - - error   c0t1d0s2 sliced - - error   c0t1d0s5 simple c0t1d0s5 rootdg online   root@sunlab # vxdiskadm   Menu: VolumeManager/Disk   1 Add or initialize one or more disks   2 Encapsulate one or more disks   3 Remove a disk   4 Remove a disk for replacement   5 Replace a failed or removed disk   6 Mirror volumes on a disk   7 Move volumes from a disk   8 Enable Access to (import) a disk group   9 Remove access to (deport) a disk group   10 Enable (online) a disk device   11 Disable (offline) a disk device   12 Mark a disk as a spare for a disk group   13 Turn off the spare flag on a disk   14 Unrelocate subdisks back to a disk   15 Exclude a disk from hot-relocation use   16 Make a disk available for hot-relocation use   17 Prevent multipathing/Suppress devices from VxVM's view   18 Allow multipathing/Unsuppress devices from VxVM's view   19 List currently suppressed/non-multipathed devices   20 Change the disk naming scheme   Hit RETURN to continue.   21 Get the newly connected/zoned disks in VxVM view   list List disk information   ? Display help about menu     ?? Display help about the menuing system     q Exit from menus   Select an operation to perform: 2   Encapsulate one or more disks     root@sunlab # vxdisk list   DEVICE TYPE DISK GROUP STATUS   c0t0d0s2 sliced rootdisk rootdg online   c0t1d0s2 sliced - - error   c0t1d0s5 simple c0t1d0s5 rootdg online   3.remove disk slice from rootdg   root@sunlab # vxdctl rm disk c0t1d0s5   root@sunlab # vxdg -g rootdg rmdisk c0t1d0s5   root@sunlab # vxdisk rm c0t1d0s5   root@sunlab # vxdisk list   DEVICE TYPE DISK GROUP STATUS   c0t0d0s2 sliced rootdisk rootdg online   c0t1d0s2 sliced - - error   4.mirror rootdisk   root@sunlab #vxdisksetup ?i c0t1d0s2   root@sunlab #vxdg ?g rootdg adddisk c0t1d0   root@sunlab # vxdiskadm --select option 6   root@sunlab #vxtask list --wait for the process finish   root@sunlab # vxdisk list   DEVICE TYPE DISK GROUP STATUS   c0t0d0s2 sliced rootdisk rootdg online   c0t1d0s2 sliced c0t1d0 rootdg online   root@sunlab # more /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/vx/dsk/swapvol - - swap - no -   /dev/vx/dsk/rootvol /dev/vx/rdsk/rootvol / ufs 1 no -   swap - /tmp tmpfs - yes -   #NOTE: volume rootvol (/) encapsulated partition c0t0d0s0   #NOTE: volume swapvol (swap) encapsulated partition c0t0d0s1   root@sunlab # eeprom -- use-nvramrc devalias     use-nvramrc?=true   nvramrc=devalias vx-c0t1d0 /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0:a   devalias vx-rootdisk /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0:a     root@sunlab # prtconf -pv grep boot --verify the boot disk   boot-retained-page:   bootargs: 00   bootpath: '/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0:a'   boot-command: 'boot'   auto-boot?: 'false'   watchdog-reboot?: 'false'   boot-file:   boot-device: 'vx-rootdisk'   root@sunlab # init 0   OK boot vx-c0t1d0   root@sunlab # prtconf -pv grep boot --verify the boot disk   boot-retained-page:   bootargs: 00   bootpath: '/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0:a'   6.unmirror rootdisk   vxdg -g rootdg -k rmdisk c0t1d0   root@sunlab # vXPrint -htg rootdg   DG NAME NCONFIG NLOG MINORS GROUP-ID   DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE   RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL   RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK   V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE   PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE   SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE   SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE   DC NAME PARENTVOL LOGVOL   SP NAME SNAPVOL DCO     dg rootdg default default 0 1075733857.1025.sunlab     dm c0t1d0 - - - - REMOVED   dm rootdisk c0t0d0s2 sliced 3039 4151120 -     v rootdisk5vol - ENABLED ACTIVE 103360 ROUND - gen   pl rootdisk5vol-01 rootdisk5vol ENABLED ACTIVE 103360 CONCAT - RW   sd rootdisk-05 rootdisk5vol-01 rootdisk 3634319 103360 0 c0t0d0 ENA   pl rootdisk5vol-02 rootdisk5vol DISABLED REMOVED 103360 CONCAT - RW   sd c0t1d0-01 rootdisk5vol-02 c0t1d0 0 103360 0 - RMOV     v rootdisk6vol - ENABLED ACTIVE 205200 ROUND - gen   pl rootdisk6vol-01 rootdisk6vol ENABLED ACTIVE 205200 CONCAT - RW   sd rootdisk-04 rootdisk6vol-01 rootdisk 3737679 205200 0 c0t0d0 ENA   pl rootdisk6vol-02 rootdisk6vol DISABLED REMOVED 205200 CONCAT - RW   sd c0t1d0-02 rootdisk6vol-02 c0t1d0 103360 205200 0 - RMOV     v rootdisk7vol - ENABLED ACTIVE 205200 ROUND - gen   pl rootdisk7vol-01 rootdisk7vol ENABLED ACTIVE 205200 CONCAT - RW   sd rootdisk-03 rootdisk7vol-01 rootdisk 3942879 205200 0 c0t0d0 ENA   pl rootdisk7vol-02 rootdisk7vol DISABLED REMOVED 205200 CONCAT - RW   sd c0t1d0-03 rootdisk7vol-02 c0t1d0 308560 205200 0 - RMOV     v rootvol - ENABLED ACTIVE 3336400 ROUND - root   pl rootvol-01 rootvol ENABLED ACTIVE 3336400 CONCAT - RW   sd rootdisk-B0 rootvol-01 rootdisk 4151119 1 0 c0t0d0 ENA   sd rootdisk-02 rootvol-01 rootdisk 0 3336399 1 c0t0d0 ENA   pl rootvol-02 rootvol DISABLED REMOVED 3336400 CONCAT - RW   sd c0t1d0-04 rootvol-02 c0t1d0 513760 3336400 0 - RMOV     v swapvol - ENABLED ACTIVE 297920 ROUND - swap   pl swapvol-01 swapvol ENABLED ACTIVE 297920 CONCAT - RW   sd rootdisk-01 swapvol-01 rootdisk 3336399 297920 0 c0t0d0 ENA   pl swapvol-02 swapvol DISABLED REMOVED 297920 CONCAT - RW   sd c0t1d0-05 swapvol-02 c0t1d0 3850160 297920 0 - RMOV   root@sunlab # vxplex dis rootdisk6vol-02 rootdisk5vol-02 rootdisk7vol-02 rootvol-02 swapvol-02   root@sunlab # vxedit -r rm rootdisk6vol-02 rootdisk5vol-02 rootdisk7vol-02 rootvol-02 swapvol-02   root@sunlab # vxprint -htg rootdg   DG NAME NCONFIG NLOG MINORS GROUP-ID   DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE   RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL   RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK   V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE   PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
[1] [2] 下一页 

(出处:http://www.sheup.com)


上一页 [1] [2]