29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mmsnapdir Comm<strong>and</strong><br />

Name<br />

mmsnapdir - Creates <strong>and</strong> deletes invisible directories that connect to the snapshots of a <strong>GPFS</strong> file<br />

system, <strong>and</strong> changes the name of the snapshots subdirectory.<br />

Synopsis<br />

mmsnapdir Device {[-r | -a] [-s SnapDirName]}<br />

Or,<br />

mmsnapdir Device [-q]<br />

Description<br />

Use the mmsnapdir comm<strong>and</strong> to create or delete invisible directories that connect to the snapshots of a<br />

<strong>GPFS</strong> file system, <strong>and</strong> change the name of the snapshots subdirectory.<br />

Snapshots appear in a subdirectory in the root directory of the file system. If you prefer to access the<br />

snapshots from each file system directory rather than traversing through the root directory, you may create<br />

an invisible directory to make the connection by issuing the mmsnapdir comm<strong>and</strong> with the -a flag (see<br />

Example 1 on page 268). The -a flag of the mmsnapdir comm<strong>and</strong> creates an invisible directory in each<br />

normal directory in the active file system (they do not appear in directories in snapshots) that contains a<br />

subdirectory for each existing snapshot of the file system. These subdirectories correspond to the copy of<br />

the that directory in the snapshot with the same name.<br />

If the mmsnapdir comm<strong>and</strong> is issued while another snapshot comm<strong>and</strong> is running, the mmsnapdir<br />

comm<strong>and</strong> waits for that comm<strong>and</strong> to complete.<br />

For more information about <strong>GPFS</strong> snapshots, see Creating <strong>and</strong> maintaining snapshots of <strong>GPFS</strong> file<br />

systems in General Parallel File System: Advanced <strong>Administration</strong> Guide.<br />

Parameters<br />

Device<br />

Options<br />

The device name of the file system. File system names need not be fully-qualified. fs0 is just as<br />

acceptable as /dev/fs0.<br />

This must be the first parameter.<br />

-a Adds a snapshots subdirectory to all subdirectories in the file system.<br />

-q Displays current settings, if issued without any other flags.<br />

-r Reverses the effect of the -a option. All invisible snapshot directories are removed. The snapshot<br />

directory under the file system root directory is not affected.<br />

-s SnapDirName<br />

Changes the name of the snapshots subdirectory to SnapDirName. This affects both the directory<br />

in the file system root as well as the invisible directory in the other file system directories if the<br />

mmsnapdir -a comm<strong>and</strong> has been issued.<br />

Exit status<br />

0 Successful completion.<br />

Chapter 8. <strong>GPFS</strong> comm<strong>and</strong>s 267

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!