Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Administering a System: Managing Disks and Files
Backing Up Data
Chapter 6 695
Allowing for 20% change to this 40 MB file system, you would
want to create a logical volume of 8 blocks (8 MB).
b. Use lvcreate to create a logical volume to contain the snapshot
file system.
For example,
lvcreate -L 8 -n lvol1 /dev/vg02
creates an 8 MB logical volume called /dev/vg02/lvol1, which
should be sufficient to contain a snapshot file system of lvol4.
See lvcreate (1M) for syntax.
2. Make a directory for the mount point of the snapshot file system.
For example,
mkdir /tmp/house
3. Make and mount the snapshot file system.
In the following example, a snapshot is taken of logical volume
/dev/vg00/lvol4, contained in logical volume /dev/vg02/lvol1,
and mounted on /tmp/house:
mount -F vxfs -o snapof=/dev/vg00/lvol4 \
/dev/vg02/lvol1 /tmp/house
See mount_vxfs (1M) for syntax.
4. Back up the snapshot file system with any backup utility except
dump.
For example, to use tar (1) to archive the snapshot file system
/tmp/house, ensuring that the files on the tape will have relative
path names:
cd tmp; tar cf /dev/rmt/0m house
Alternatively, the following vxdump (1M) command backs up a
snapshot file system /tmp/house, which has extent attributes:
vxdump -0 -f /dev/rmt/0m /tmp/house