Go to main content

Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.x

Exit Print View

Updated: November 2018
 
 

Making a Filesystem Snapshot Directory Visible (CLI)

Use the following procedure to set the .zfs/snapshot directory, which is hidden by default, to appear like any other directory in a filesystem.

The .zfs/snapshot directory contains a list of all snapshots on the filesystem. The snapshots can be accessed just like normal filesystem data, but are read-only. By default, the .zfs directory is not visible when listing directory contents. This setting prevents backup software from inadvertently backing up snapshots in addition to new data.


Note -  Setting the .zfs/snapshot directory to "visible" may cause backup software to back up snapshots in addition to live data.
  1. Go to and select the filesystem share.
    hostname:> shares select myproject
    hostname:shares myproject> select demo_share
    hostname:shares myproject/demo_share>
  2. Use the set snapdir command to set the filesystem snapshot directory to visible.
    hostname:shares myproject/demo_share> set snapdir=visible
                    snapdir=visible(uncommitted)
  3. Type commit to save the change.
    hostname:shares myproject/demo_share> commit
  4. To make the directory hidden again, return to this context and use the set snapdir command to set the directory to hidden, then type commit to save the change.
    hostname:shares myproject/demo_share> set snapdir=hidden
                    snapdir=hidden(uncommitted)
    hostname:shares myproject/demo_share> commit

Related Topics