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
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.