VERITAS Volumanager Cheat Sheet
VERITAS Volumanager Cheat Sheet
VERITAS Volumanager Cheat Sheet
Subdisk:
A subdisk is a set of contiguous disk blocks. A block is a unit of space on the disk. VxVM allocates diskspace using subdisks. A VM disk can be divided into one or more subdisks.
Plexes:
VxVM uses subdisks to build virtual objects called plexes. A plex consists of one or more subdisks located on one or more physical disks
Volumes:
A volume is a virtual disk device that appears to applications, databases, and file systems like a physical disk device
The following command scans for the devices c1t1d0 and c2t2d0:
# vxdisk scandisks device=c1t1d0,c2t2d0
Manually Initialized
#vxdisk init c1t15d0s6 type=simple
Create Volume:
Vmake approach:
Identify disks in disk group dg15 that have enough free space to create a 13 GB subdisk:
# vxdg -g dg1 free DISK DEVICE TAG OFFSET LENGTH FLAGS disk1 c1t0d0s2 c1t0d0 35302304 61256 disk2 c1t1d0s2 c1t1d0 35302304 61256 The LENGTH column displays the number of free sectors on the disk (each sector is 512
bytes).
Create the three plexes and associate the subdisks with them.
Syntax: # vxmake plex plex sd=subdisk1[,subdisk2,...] Plex one named plex-01: # vxmake -g dg15 plex plex-01 sd=sub-01,sub-02
Vxassist Approach:
# vxassist make <volume> <size> <disk> layout=[stripe-mirror|concat-mirror|mirrorconcat|mirror-stripe] #vxassist -g <group> make <vol> <size>
Stop all volumes in the dg run the same one by one for volume:
#vxvol -g <group> stop <volume>
Remove the volume Double check the right one or data will be lost:
#vxassist -g <group> remove volume <vol>
Depot a group:
vxdg deport <group>