Veritas File System 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008
To show the difference between Storage Checkpoints
1
Create a file system and mount it on /mnt0, as in the following example:
# mkfs -F vxfs /dev/vx/rdsk/dg1/test0
version 7 layout
134217728 sectors, 67108864 blocks of size 1024, log \
size 65536 blocks, largefiles supported
# mkfs -F /dev/vx/rdsk/dg1/test0 /mnt0
2
Create a small file with a known content, as in the following example:
# echo "hello, world" > /mnt0/file
3
Create a Storage Checkpoint and mount it on /mnt0@5_30pm, as in the following
example:
# fsckptadm create ckpt@5_30pm /mnt0
# mkdir /mnt0@5_30pm
# mount -F vxfs -o ckpt=ckpt@5_30pm \
/dev/vx/dsk/dg1/test0:ckpt@5_30pm /mnt0@5_30pm
4
Examine the content of the original file and the Storage Checkpoint file:
# cat /mnt0/file
hello, world
# cat /mnt0@5_30pm/file
hello, world
5
Change the content of the original file:
# echo "goodbye" > /mnt0/file
6
Examine the content of the original file and the Storage Checkpoint file. The
original file contains the latest data while the Storage Checkpoint file still
contains the data at the time of the Storage Checkpoint creation:
# cat /mnt0/file
goodbye
# cat /mnt0@5_30pm/file
hello, world
Storage Checkpoints
Storage Checkpoint administration
88