Examples of using the vxloadm utility
Use the
vxloadm addall command to create device(s) mapping the various partition(s) contained in a VxVM volume. For example:
\# /etc/vx/bin/vxloadm addall vol1 /dev/vx/dsk/testdg/vol1
This creates a device node entry for every slice or partition contained within the volume in the
/dev/vxlo/dsk/ and /dev/vxlo/rdsk/ directories.
\# ls -l /dev/vxlo/dsk/
lrwxrwxrwx 1 root root 46 Sep 25 14:04 vol1s0
-> ../../../devices/pseudo/vxlo@0:vol1s0,1,blk
lrwxrwxrwx 1 root root 46 Sep 25 14:04 vol1s3
-> ../../../devices/pseudo/vxlo@0:vol1s3,2,blk\# ls -l /dev/vxlo/rdsk/
lrwxrwxrwx 1 root root 46 Sep 25 14:04 vol1s0
-> ../../../devices/pseudo/vxlo@0:vol1s0,1,raw
lrwxrwxrwx 1 root root 46 Sep 25 14:04 vol1s3
-> ../../../devices/pseudo/vxlo@0:vol1s3,2,raw
Use the
vxloadm get command to display the list of all currently mapped partition(s) created using the vxloadm utility. For example:
\# /etc/vx/bin/vxloadm get
VxVM INFO V-5-1-0 NAME FILENAME
MOUNT OFFSET C/H/S
VxVM INFO V-5-1-15260 vol1s0 /dev/vx/dsk/testdg/vol1
6180 6787/1/618
VxVM INFO V-5-1-15260 vol1s3 /dev/vx/dsk/testdg/vol1
4326000 50902/1/618
Use the appropriate file system commands to access the file system(s). For example:
\# fstyp /dev/vxlo/rdsk/vol1s0
ufs
\# mount -F ufs /dev/vxlo/dsk/vol1s0 /mnt
Use the
vxloadm delete to remove the partition mappings of a volume. For example:
\# /etc/vx/bin/vxloadm delete vol1s0
\# /etc/vx/bin/vxloadm delete vol1s3
Note: Thisvxloadmutility should only be used on volumes that are currently not in use or held open by a guest domain.