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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

nonzero A failure has occurred.<br />

Security<br />

You must have root authority to run the mmsnapdir comm<strong>and</strong>.<br />

You may issue the mmsnapdir comm<strong>and</strong> from any node in the <strong>GPFS</strong> cluster.<br />

When using the rcp <strong>and</strong> rsh comm<strong>and</strong>s for remote communication, a properly configured .rhosts file must<br />

exist in the root user’s home directory on each node in the <strong>GPFS</strong> cluster. If you have designated the use<br />

of a different remote communication program on either the mmcrcluster or the mmchcluster comm<strong>and</strong>,<br />

you must ensure:<br />

1. Proper authorization is granted to all nodes in the <strong>GPFS</strong> cluster.<br />

2. The nodes in the <strong>GPFS</strong> cluster can communicate without the use of a password, <strong>and</strong> without any<br />

extraneous messages.<br />

Examples<br />

1. To rename the .snapshots directory (the default snapshots directory name) to .link for file system fs1,<br />

issue the comm<strong>and</strong>:<br />

mmsnapdir fs1 -s .link<br />

After the comm<strong>and</strong> has been issued, the directory structure would appear similar to:<br />

/fs1/file1<br />

/fs1/userA/file2<br />

/fs1/userA/file3<br />

/fs1/.link/snap1/file1<br />

/fs1/.link/snap1/userA/file2<br />

/fs1/.link/snap1/userA/file3<br />

2. Issuing:<br />

mmsnapdir fs1 -a<br />

After the comm<strong>and</strong> has been issued, the directory structure would appear similar to:<br />

/fs1/file1<br />

/fs1/userA/file2<br />

/fs1/userA/file3<br />

/fs1/userA/.link/snap1/file2<br />

/fs1/userA/.link/snap1/file3<br />

/fs1/.link/snap1/file1<br />

/fs1/.link/snap1/userA/file2<br />

/fs1/.link/snap1/userA/file3<br />

The .link subdirectory under the root directory <strong>and</strong> under each subdirectory of the tree provides two<br />

different paths to each snapshot copy of a file. For example, /fs1/userA/.link/snap1/file2 <strong>and</strong><br />

/fs1/.link/snap1/userA/file2 are two different paths that access the same snapshot copy of<br />

/fs1/userA/file2.<br />

3. Issuing:<br />

mmsnapdir fs1 -r<br />

After the comm<strong>and</strong> has been issued, the directory structure would appear similar to:<br />

/fs1/file1<br />

/fs1/userA/file2<br />

/fs1/userA/file3<br />

/fs1/.link/snap1/file1<br />

/fs1/.link/snap1/userA/file2<br />

/fs1/.link/snap1/userA/file3<br />

268 <strong>GPFS</strong>: <strong>Administration</strong> <strong>and</strong> <strong>Programming</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!