vxassist command creates a snapshot volume with the same layout as the original volume. But there are times when it is not desired or practical to create snapshot volumes with the same volume layout as the original volume. vxprint output below):root@phoenix / [306]:vxprint -htg robertdg vol6 ... dg robertdg default default 80000 1053001473.1156.milan.veritas.com dm disk01 c1t3d0s2 sliced 3535 17914356 - dm disk02 c1t4d0s2 sliced 3535 17914356 - dm disk03 c1t8d0s2 sliced 3535 17914356 - dm disk04 c1t10d0s2 sliced 2843 17915304 - dm disk05 c1t2d0s2 sliced 3535 17914356- v vol6 - ENABLED ACTIVE 204800 SELECT vol6-01 fsgen pl vol6-01 vol6 ENABLED ACTIVE 206756 STRIPE 2/128 RW sd disk05-01 vol6-01 disk05 0 103332 0/0 c1t2d0 ENA sd disk04-03 vol6-01 disk04 1101576 103332 1/0 c1t10d0 ENA root@phoenix / [321]:vxdg -g robertdg free disk05 DISK DEVICE TAG OFFSET LENGTH FLAGS disk05 c1t2d0s2 c1t2d0 0 17914356 - vxdg command output shows that disk05 has sufficient free disk space for creating a sub-disk of size 100MB.root@phoenix /[320]:vxassist -g robertdg snapstart vol6 alloc="disk05" vxvm:vxassist: ERROR: Cannot allocate space to mirror 204800 block volume vxassist snapstart command uses the volume layout of the original volume (vol6) to create the snapshot volume. To make a snapshot volume with a volume layout different than the original volume, one more vxassist command attribute called "layout" needs to be used. root@phoenix /[322]:vxassist -g robertdg snapstart vol6 layout=concat alloc="disk05" vxprint -htg output shows the snapshot volume plex has been created with the layout as expected:root@phoenix /[323]:vxprint -htg robertdg vol6 ... v vol6 - ENABLED ACTIVE 204800 SELECT vol6-01 fsgen plvol6-01 vol6 ENABLED ACTIVE 206756 STRIPE 2/128 RW sddisk01-04 vol6-01 disk01 1282644 103332 0/0 c1t3d0 ENA sddisk02-04 vol6-01 disk02 2126364 103332 1/0 c1t4d0 ENA plvol6-02 vol6 ENABLED SNAPDONE 205716 CONCAT - WO sddisk05-01 vol6-02 disk05 0 205716 0 c1t2d0 ENA vxassist snapshot command below to separate the plex vol6-02 from vol6 so a new snapshot volume is created.root@phoenix / [325]:vxassist -g robertdg snapshot vol6 vxprint -htg output below shows that there are two volumes(with different volume layouts) containing the same data (at the time the snap was taken):root@phoenix / [326]:vxprint -htg robertdg vol6 SNAP-vol6 ... v SNAP-vol6 - ENABLED ACTIVE 204800 ROUND - fsgen plvol6-02 SNAP-vol6 ENABLED ACTIVE 205716 CONCAT - RW sddisk05-01 vol6-02 disk05 0 205716 0 c1t2d0 ENA v vol6 - ENABLED ACTIVE 204800 SELECT vol6-01 fsgen plvol6-01 vol6 ENABLED ACTIVE 206756 STRIPE 2/128 RW sddisk01-04 vol6-01 disk01 1282644 103332 0/0 c1t3d0 ENA sddisk02-04 vol6-01 disk02 2126364 103332 1/0 c1t4d0 ENA
Feedback submitted!