Vxvmrootdisk encapsulation and unencapsulation

Source: Internet
Author: User
Article Title: vxvmrootdisk encapsulation and unencapsulation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Environment: ultra1 2 Hard Disks
The configured rootdg contains an slice c0t0d0s5
The slice 5 6 7 on the system disk has m space and the rest of the space is given to/and the swap test content to encapsulate the root disk, and then the scene. The test scene disk can guide the system and finally remove the scene and encapsulation.
Rootdisk encapsulate
1. add new disk slice at rootdg
Root @ sunlab # vxdctl add disk c0t1d0s5 type = simple
ESX: 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 ESX's view
18 Allow multipathing/Unsuppress devices from sqls' 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 ESX 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 mount FS fsck mount
# To mount to fsck point type pass at boot options
#
#/Dev/dsk/c1d0s2/dev/rdsk/c1d0s2/usr ufs 1 yes-
Fd-/dev/fd-no-
/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 @:
Devalias vx-rootdisk/sbus @ 1f, 0/espdma @ e, 8400000/esp @ e, 8800000/sd @:
  
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 @:'
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 @:'
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 0 1075732.167.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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.