VERITAS Volume Manager 3.5 Migration Guide (September 2004)

Chapter 3
Command Differences
Comparison of LVM and VxVM Tasks
44
LVM Extend a logical volume or increase space
allocated to a logical volume.
lvextend -l 50 /dev/
vol_grp
/
lvol_name
l—indicates the number of logical extents in the
logical volume
VxVM Increase the volume by or to a given
length.
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.
LVM Reduce a logical volume. lvreduce -L to_size /dev/
vol_grp
/
lvol_name
-L indicates the number of megabytes.
VxVM Reduce a volume by or to a given length. 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.
LVM Import and activate a volume group. vgimport -v /dev/
vol_grp
\
/dev/dsk/
disk_name
vgchange -a y /dev/
vol_grp
VxVM Import a disk group to make the specified
disk group accessible on the local
machine.
vxdg -tfC -n
newname
import
disk_group
Option 8 in the vxdiskadm menu performs this
task.
Table 3-2 LVM and VxVM Task Comparison (Continued)
Task
Type
Description Example