Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (8966 KB)
fssnap_ufs(1M)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Attributes | See Also | Notes Name
Synopsis
fssnap [-F ufs] [-V] -o backing-store=path,
[specific-options] /mount/point
fssnap -d [-F ufs] [-V] /mount/point | dev fssnap -i [-F ufs] [-V] [-o specific-options] /mount/point | dev DescriptionThe fssnap command queries, creates, or deletes a temporary snapshot of a UFS file system. A snapshot is a point-in-time image of a file system that provides a stable and unchanging device interface for backups. When creating a file system snapshot, you must specify the file system to be captured and the backing-store file. The backing-store file(s) are where the snapshot subsystem saves old file system data before it is overwritten. Beyond the first backing-store file, fssnap automatically creates additional backing-store files on an as-needed basis. The number and size of the backing store files varies with the amount of activity in the file system. The destination path must have enough free space to hold the backing-store file(s). This location must be different from the file system that is being captured in a snapshot. The backing-store file(s) can reside on any type of file system, including another UFS file system or an NFS–mounted file system. Options
The following options are supported: Operands
The following operands are supported: ExamplesExample 1 Creating a Snapshot of a File SystemThe following example creates a snapshot of a file system. The block special device created for the snapshot is /dev/fssnap/0.
Example 2 Backing Up a File System Snapshot Without Having To Unmount the File SystemThe following example backs up a file system snapshot without having to unmount the file system. Since ufsdump requires the path to a raw device, the raw option is used. The /export/home file system snapshot is removed in the second command.
Example 3 Backing Up a File SystemWhen backing up a file system, do not let the backing-store file(s) exceed 400 Mbytes. The second command removes the /export/home file system snapshot.
Example 4 Performing an Incremental Dump of a SnapshotThe following example uses ufsdump to back up a snapshot of /var. Note the use of the N option to ufsdump, which writes the name of the device being dumped, rather than the name of the snapshot device, to /etc/dumpdates file. See ufsdump(1M) for details on the N flag.
Example 5 Finding Out What Snapshots Currently ExistThe following command displays the currently existing snapshots.
Example 6 Mounting a File System SnapshotThe following example creates a file system snapshot. After you create a file system snapshot, mount it on /tmp/mount for temporary read-only access.
Example 7 Creating a File System Snapshot and Unlinking the Backing-store FileThe following example creates a file system snapshot and unlinks the backing-store file. After creating a file system snapshot and unlinking the backing-store file, check the state of the snapshot.
Example 8 Displaying the Size and Location of the Backing-store File(s) and the Creation Time for the SnapshotThe following example displays the size of the backing-store file(s) in bytes, the location of the backing store, and the creation time for the snapshot of the /test file system.
Note that if there are multiple backing-store files stored in /snapshot2, they will have names of the form file (for the first file), file.1, file.2, and so forth. Exit StatusAttributesSee attributes(5) for descriptions of the following attributes:
The script-readable output mode is a stable interface that can be added to, but will not change. All other interfaces are subject to change. See AlsoNotes
The fssnap device files should be treated like a regular disk block or character device. The association between a file system and the snapshot is lost when the snapshot is deleted or the system reboots. Snapshot persistence across reboots is not currently supported. To avoid unnecessary performance impacts, perform the snapshot and system backup when the system is least active. It is not possible to perform a snapshot of a file system if any of the following conditions are true: These conditions result in fssnap being unable to write lock the file system prior to performing the snapshot. Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Attributes | See Also | Notes |
||||||||||||