16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

unmount<br />

Examples<br />

Usage notes<br />

codes. All data changes to files in the specified file system are<br />

saved. If the data changes cannot be saved, the unmount request<br />

fails.<br />

force Also specifies that the system will unmount the file system<br />

immediately. Any users accessing files in the specified file system<br />

will receive failing return codes. If possible, all data changes to files<br />

in the specified file system are saved. If the data changes to the<br />

files cannot be saved, the unmount request continues and data is<br />

lost.<br />

Note: An unmount –o immediate request must be issued before<br />

you can request an unmount –o force of a file system.<br />

Otherwise, unmount –o force fails.<br />

reset A reset request stops a previous unmount –o drain request.<br />

Note: unmount –o reset is not supported in a sysplex.<br />

–v Lists all file systems that are unmounted.<br />

pathname... specifies the pathnames to use for locating the file system you want<br />

unmounted. This may be the pathname for any file or directory within that file<br />

system. For example, if the file system you want unmounted contains the file or<br />

directory /u/wjs, you can issue:<br />

unmount /u/wjs<br />

and that will effectively unmount the file system.<br />

1. The output of mount –q can be used for the input of unmount. For example:<br />

mount -q /ict/hfsfir<br />

can be used as input:<br />

unmount $(mount -q /ict/hfsdir)<br />

2. To unmount a file system that contains the file or directory /u/wjs:<br />

unmount /u/wjs<br />

3. To unmount a file system that contains the file or directory /u along with all other<br />

file systems mounted over or below that file system:<br />

unmount -R /u<br />

v The path name for chmount/unmount is a node, symbolic links cannot be<br />

followed unless a trailing slash is added to the symbolic link name. For example,<br />

if /etc has been converted into a symbolic link, /etc -> $SYSNAME/etc, issuing<br />

chmount -w /etc (without the trailing slash) will result in trying to chmount -w<br />

/etc -> $SYSNAME/etc. This may result in RACF errors depending on the<br />

security access for the symlinked file. However, adding the trailing slash, by<br />

specifying chmount -w /etc/ the symlink will be followed and RACF will<br />

determine the access from the symlinked file.<br />

v The unmount shell command operates on the path name and its associated file<br />

system. In the case where a path name has no file system mounted on it, the<br />

associated file system is the one that contains the path. For example:<br />

730 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!