Académique Documents
Professionnel Documents
Culture Documents
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
Note The following features in VxVM require an additional license: Mirroring, Mirroring and
Striping, Dynamic Multipathing of Active/Active Devices, Hot-relocation, Online Migration, and
RAID-5.
All the VxVM tasks listed in the task comparison chart can be performed by the Veritas Enterprise
Administrator. For more information, refer to the Veritas Enterprise Administrator User's Guide.
For more information on LVM commands, refer to HP-UX Managing Systems and Workgroups, and
LVM manual pages in the Reference Volumes 2, 3, and 5. For information on VxVM commands, refer
to the Veritas Volume Manager documentation package.
Description
Example
LVM
pvcreate /dev/rdsk/disk_name
vxdiskadd
device_name
vgcreate /dev/vol_grp
/dev/dsk/disk_name
vxdg init
disk_group disk_name
1 of 8
3/6/14 1:47 AM
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
vgextend /dev/vol_grp
/dev/rdsk/disk_name
vxdg -g disk_group adddisk
disk=devicename
disk_group -F vxfs
vol_name length
vxresize -g
vxassist growto
vol_name
new_length
vxassist growby
vol_name
length_change
Grow the file system after growing
the volumes.
LVM
lvreduce -L to_size
/dev/vol_grp/lvol_name
disk_group -F vxfs
vol_name to_length
vxresize -g
vxassist -b shrinkby
vol_name
length
vxassist -b shrinkto
vol_name
newlength
Shrink the file system before
reducing the volume.
LVM
vgimport -v /dev/vol_grp\
/dev/dsk/disk_name
vgchange -a y /dev/vol_grp
2 of 8
vxdg -tfC -n
newname import
disk_group
3/6/14 1:47 AM
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
vgchange -a n
vol_group
vgexport /dev/vol_group
vxdg deport
disk_group
vgcfgbackup -f /pathname
/filename vol_grp
dgcfgbackup -f /pathname
/filename vol_grp
LVM
vgrestore -n /dev/vol_grp
/dev/rdsk/disk_name
LVM
dgcfgrestore -n /dev/vol_grp
/dev/rdsk/disk_name
LVM
lvextendto
lvreduceto
decrease swap
space
swapvol2 size
(HP-UX 11i Version 1.5 only)
vxassist make
LVM
vgremove /dev/vol_grp
vxdg deport
vxdg init
LVM
disk_group
disk_group
vgextend /dev/vol_grp/\
/dev/dsk/disk_name
vxdiskadd
disk_name
3 of 8
3/6/14 1:47 AM
LVM
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
vgreduce /dev/vol_grp
/dev/dsk/disk_name
disk_group -k rmdisk
disk_name
vxdg -g
1. 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
vxmirror -g disk_group -d
yes|no \ disk_name
[new_disk_name]
vxmirror -d yes
disk_name
1. pvcreate -B /dev/rdsk
/second_disk
2. mkboot -l /dev/dsk
/second_disk
3. vgextend /dev/vol_grp \
/dev/dsk/second_disk
4. lvextend -m no_of_mirrors
\ /dev/vol_grp/root_lvol \
/dev/dsk/second_disk
5. lvlnboot -r /dev/vol_grp
/lvol_name
vxrootmir [-v] [-t
tasktag]
disk_access_name |
disk_media_name
LVM
lvcreate -L
/dev/vol_grp
vol_size
4 of 8
vxassist make
vol_name length
length
3/6/14 1:47 AM
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
A RAID-5 volume
LVM
vxassist make
layout=raid5
vol_name length
lvdisplay /dev/vol_grp
/lvol_name
vxprint -vt
vxprint -ht
vol_name
vgdisplay -v /dev/vol_grp
vxdisk list
disk_group
vxprint -g
vxdg list
vxdisk list
LVM
disk_group
pvdisplay /dev/dsk/disk_name
or vxprint
vxinfo
LVM
lvremove /dev/vol_grp
/lvol_name
vol_name
vxedit rm
LVM
vgreduce /dev/vol_grp
/dev/dsk/disk_name
vxdisk rm
disk_group
vxdg rmdisk
disk_name
group_name rmdisk
disk_name
vxdg -g
LVM
vgremove /dev/vol_grp
5 of 8
vgcreate /dev/vol_grp\
3/6/14 1:47 AM
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
/dev/dsk/disk_name /dev/dsk
/disk_name_2
LVM
lvcreate -l num_log_extents -m
1 \
-n mirr_lv /dev/vol_grp
vxassist make
layout=mirror
vol_name length
plex_name
vxplex -o rm dis
vxedit -rf rm
vol_name
lvextend -m 2 /dev/vol_grp
/lvol_name
vxassist mirror
vol_name
lvsplit -s backup
/dev/vol_grp/lvol_name
vxassist snapshot
vol_name
new_vol_name
6 of 8
3/6/14 1:47 AM
LVM
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
lvmerge /dev/vol_grp
/split_vol_name\ /dev/vol_grp
/lvol_name
VxVM Returns the snapshot plex to the original volume from vxassist snapback new_vol_name
which it was snapped.
LVM
pvmove -n /dev/vol_grp
/lvol_name\ /dev/dsk
/disk_name /dev/dsk
/disk_name2
orig_plex new_plex
vxplex mv
LVM
lvsync /dev/vol_grp/lvol_name
vxvol resync
LVM
vgsync /dev/vol_grp
vxrecover -s
vol_name
Start a volume.
lvchange -a y /dev/vol_grp
/lvol_name
vxrecover -s
vxvol start
LVM
Stop a volume.
vol_name
vol_name
lvchange -a n /dev/vol_grp
/lvol_name
vol_name
vxvol stop
LVM
pvchange -z y /dev/dsk
/disk_name
disk_name
Example for a disk_group = veritasdg, medianame = disk01, vol_name -= veritasvol, plex name = veritasvol-01, subdisk -= disk01-01,
devicename = c0t0d0.
7 of 8
3/6/14 1:47 AM
^ Return to Top
8 of 8
http://sfdoccentral.symantec.com/sf/5.0/hpux/html/vxvm_migra...
3/6/14 1:47 AM