Veritas 4.1 Installation Guide (HP-UX 11i v3, February 2007)

Table 6-3 LVM and VxVM Task Comparison (continued)
ExampleDescriptionTask TypeExampleDescription
Task
Type
vxassist make
<swapvol_name> <size
Add a new
swap volume
VxVM
lvextend—to increase swap
space
lvreduce—to decrease swap
space
Increase or
decrease
secondary
swap space.
Enlarge an
existing
swap logical
volume, or
add a new
swap logical
volume.
LVM
vxdg deport
<disk_group>
Destroy a disk
group.
VxVM
vgremove /dev/vol_grp
This is preceded by lvremove
and vgreduce down to the last
disk.
Remove a
volume
group. This
destroys a
volume
group by
removing its
last disk and
removing it
from
/etc/lvmtab.
LVM
vxdiskadd
<disk_name>
Option 1 in the
vxdiskadm main menu
performs this task.
Add one or
more disks to
the disk group.
VxVM
vgextend /dev/vol_grp/\
/dev/dsk/<disk_name>
Extend a
volume
group by
adding
LVM disks
to the
volume
group.
LVM
vxdg -g <disk_group>
-k rmdisk
<disk_name>
Remove a disk
from disk
group.
VxVM
vgreduce /dev/vol_grp
/dev/dsk/<disk_name>
Reduce a
volume
group by
reducing the
number of
disks in a
volume
group
LVM
vxmirror -g
<disk_group> -d
<yes|no> \
<disk_name>
<new_disk_name>
vxmirror -d
<yes> <disk_name>
Option 6 in the
vxdiskadm menu
performs this task.
Mirroring a
disk
Mirroring
volumes on a
disk or
controlling
default
mirroring
causes a disk to
have its
contents
mirrored to
available space
on another disk.
VxVM1. pvcreate
/dev/rdsk/<second_disk>
2. vgextend /dev/vol_grp
\
/dev/dsk/<second_disk>
3. lvextend -m
<no_of_mirrors> \
/dev/vol_grp/<lvol_name>
\
/dev/dsk/<second_disk>
Mirroring a
disk
involves
several
steps.
LVM
Comparison of LVM and VxVM Tasks 59