VERITAS File System 4.1 Administrator's Guide

Storage Checkpoints
Storage Checkpoint Administration
Chapter 5 103
hello, world
# cat /mnt0@5_30pm/file
hello, world
4. Change the content of the original file:
# echo "goodbye" > /mnt0/file
5. 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
6. Unmount the Storage Checkpoint, convert the Storage Checkpoint to a nodata Storage
Checkpoint, and mount the Storage Checkpoint again.
# umount /mnt0@5_30pm
# fsckptadm -s set nodata ckpt@5_30pm /mnt0
# mount -F vxfs -o ckpt=ckpt@5_30pm \
/dev/vx/dsk/dg1/test0:ckpt@5_30pm /mnt0@5_30pm
7. Examine the content of both files. The original file must contain the latest data:
# cat /mnt0/file
goodbye
You can traverse and read the directories of the nodata Storage Checkpoint; however, the files
contain no data, only markers to indicate which block of the file has been changed since the
Storage Checkpoint was created:
# ls -l /mnt0@5_30pm/file
-rw-r--r-- 1 root other 13 Jul 13 17:13 /mnt0@5_30pm/file
# cat /mnt0@5_30pm/file
cat: /mnt0@5_30pm/file: Input/output error