Become superuser or assume an equivalent role.
Make sure that the file system has enough disk space for the backing-store file.
# df -k |
Make sure that a backing-store file of the same name and location does not already exist.
# ls /backing-store-file |
Create the UFS snapshot.
# fssnap -F ufs -o bs=/backing-store-file /file-system |
The backing-store file must reside on a different file system than the file system that is being snapshot.
Verify that the snapshot has been created.
# /usr/lib/fs/ufs/fssnap -i /file-system |
The following example shows how to create a snapshot of the /usr file system. The backing-store file is /scratch/usr.back.file, and the virtual device is /dev/fssnap/1.
# fssnap -F ufs -o bs=/scratch/usr.back.file /usr /dev/fssnap/1 |
The following example shows how to limit the backing-store file to 500 Mbytes.
# fssnap -F ufs -o maxsize=500m,bs=/scratch/usr.back.file /export/home /dev/fssnap/1 |