Veritas Volume Manager 5.0.1 Migration Guide, HP-UX 11i v3, First Edition, November 2009

Table 3-2
LVM and VxVM task comparisons
ExampleDescriptionTask type
pvcreate /dev/rdsk/disk_nameCreate an LVM disk.LVM
vxdiskadd device_name
Option 1 in the vxdiskadm menu adds a disk
and initializes it
Bring a disk under Volume Manager controlVxVM
vgcreate /dev/vol_grp
/dev/dsk/disk_name
Create a volume groupLVM
vxdg init disk_group disk_name
Option 1 in the vxdiskadm menu performs
this task
Create a disk groupVxVM
vgextend /dev/vol_grp
/dev/dsk/disk_name
Add a new disk to the existing volume group.LVM
vxdg -g disk_group
adddisk disk=devicename
Add a new disk to the existing disk group.VxVM
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
63Command differences
Comparison of LVM and VxVM tasks