Veritas Storage Foundation 5.1 SP1 Advanced Features Administrator"s Guide (5900-1503, April 2011)
Table 27-3
LVM and VxVM task comparisons (continued)
ExampleDescriptionTask type
lvextend -l 50
/dev/vol_grp/lvol_name
l– indicates the number of logical extents in
the logical volume
Extend a logical volume or increase space
allocated to a logical volume.
LVM
vxresize -g disk_group -F vxfs
vol_name length
vxassist growto vol_name new_length
vxassist growby vol_name length_change
Grow the file system after growing the volumes.
Increase the volume by or to a given length.VxVM
lvreduce -L to_size
/dev/vol_grp/lvol_name
-L indicates the number of megabytes.
Reduce a logical volume.LVM
vxresize -g disk_group -F vxfs
vol_name to_length
vxassist -b shrinkby vol_name length
vxassist -b shrinkto vol_name newlength
Shrink the file system before reducing the
volume.
Reduce a volume by or to a given length.VxVM
vgimport -v /dev/vol_grp\ /dev/
dsk/disk_name
vgchange -a y /dev/vol_grp
Import and activate a volume group.LVM
vxdg -tfC -n newname import
disk_group
Option 8 in the vxdiskadm menu performs
this task
Import a disk group to make the specified disk
group accessible on the local machine.
VxVM
vgchange -a n vol_group
vgexport /dev/vol_group
Export and deactivate an LVM volume group,
and its associated logical volumes.
LVM
vxdg deport disk_group
Option 9 in the vxdiskadm menu performs
this task
Deport a disk group to disable access to the
specified disk group. A disk group cannot be
deported if any volumes in the disk group are
currently open.
VxVM
441Offline data migration
Command differences