VERITAS File System 4.1 Administrator's Guide

VERITAS File System Quick Reference
Veritas File System Quick Reference
Appendix A198
vxdump(1M)
vxrestore(1M)
How to Create and Mount a Snapshot File System
The first step in backing up a VxFS file system is to create and mount a snapshot file system.
To create and mount a snapshot of a VxFS file system, use the syntax:
mount [-F vxfs] -o snapof=source,[snapsize=size] \destination
snap_mount_point
source The special device name or mount point of the file system to copy.
destination The name of the special device on which to create the snapshot.
size The size of the snapshot file system in sectors.
snap_mount_point Location where to mount the snapshot; snap_mount_point must exist
before you enter this command.
Example A-11 To create a snapshot file system of the file system at /home on
/dev/vx/dsk/fsvol/vol1 and mount it at /snapmount
Enter:
# mount -F vxfs -o snapof=/home, \snapsize=32768 /dev/vx/dsk/fsvol/vol1
/snapmount
You can now back up the file system, as described in the following section.
How to Back Up a File System
After creating a snapshot file system as described in the previous section, you can use vxdump
to back it up. To back up a VxFS snapshot file system, use the syntax:
vxdump [-c] [-f backupdev] snap_mount_point
-c Specifies using a cartridge tape device.
backupdev The device on which to back up the file system.
snap_mount_point The snapshot file system’s mount point.
Example A-12 To back up the VxFS snapshot file system mounted at /snapmount
to the tape drive with device name /dev/rmt
Enter:
# vxdump -cf /dev/rmt /snapmount