Administration Reference


[Return to Library] [Contents] [Previous Topic] [Bottom of Topic] [Next Topic] [Index]

fs mkmount

Purpose

Creates a mount point for a volume

Synopsis

fs mkmount -dir <directory>  -vol <volume name>  [-cell <cell name>]
           [-rw]  [-fast]  [-help]
   
fs mk -d <directory>  -v <volume name>  [-c <cell name>]  [-r]  [-f]  [-h]

Description

The fs mkmount command creates a mount point for the volume named by the -vol argument at the location in the AFS file space specified by the -dir argument. The mount point looks like a standard directory element, and serves as the volume's root directory, but is actually a special file system object that refers to an AFS volume. When the Cache Manager first encounters a given mount point during pathname traversal, it contacts the VL Server to learn which file server machines house the indicated volume, then fetches a copy of the volume's root directory from the appropriate file server machine.

It is possible, although not recommended, to create more than one mount point to a volume. The Cache Manager can become confused if a volume is mounted in two places along the same path through the filespace.

The Cache Manager observes three basic rules as it traverses the AFS filespace and encounters mount points:

There are three types of mount points, each appropriate for a different purpose because of the manner in which the Cache Manager interprets them.

Options

-dir
Names the directory to create as a mount point. The directory must not already exist. Relative pathnames are interpreted with respect to the current working directory.

Specify the read/write path to the directory, to avoid the failure that results from attempting to create a new mount point in a read-only volume. By convention, the read/write path is indicated by placing a period before the cell name at the pathname's second level (for example, /afs/.abc.com). For further discussion of the concept of read/write and read-only paths through the filespace, see the Description section of this reference page.

-vol
Specifies the name or volume ID number of the volume to mount. If appropriate, add the .readonly or .backup extension to the name, or specify the appropriate volume ID number.

-cell
Names the cell in which the volume resides (creates a cellular mount point). Provide the fully qualified domain name, or a shortened form that disambiguates it from the other cells listed in the local /usr/vice/etc/CellServDB file.

If this argument is omitted, no cell indicator appears in the mount point. When the Cache Manager interprets it, it assumes that the volume named in the mount point resides in the same cell as the volume that houses the mount point.

-rw
Creates a read/write mount point. Omit this flag to create a regular mount point.

-fast
Prevents the Volume Location (VL) Server from checking that the volume has a VLDB entry and printing a warning message if it does not. Whether or not this flag is included, the File Server creates the mount point even when the volume has no VLDB entry.

-help
Prints the online help for this command. All other valid options are ignored.

Examples

The following command creates a regular mount point, mounting the volume user.smith at /afs/abc.com/usr/smith:

   % cd /afs/abc.com/usr
      
   % fs mkmount -dir smith -vol user.smith
   

The following commands create a read/write mount point and a regular mount point for the ABC Corporation cell's root.cell volume in that cell's file tree. The second command follows the convention of putting a period at the beginning of the read/write mount point's name.

   % fs mkmount -dir /afs/abc.com -vol root.cell
   
   % fs mkmount -dir /afs/.abc.com -vol root.cell -rw
   

The following command mounts the State University cell's root.cell volume in the ABC Corporation cell's file tree, creating a regular cellular mount point called /afs/stateu.edu. When a ABC Corporation Cache Manager encounters this mount point, it crosses into the State University cell on a read-only path.

   % fs mkmount -dir /afs/stateu.edu -vol root.cell -c stateu.edu
   

Privilege Required

The issuer must have the i (insert) and a (administer) permissions on the ACL of the directory that is to house the mount point.

Related Information

CellServDB (client version)

fs lsmount

fs rmmount


[Return to Library] [Contents] [Previous Topic] [Top of Topic] [Next Topic] [Index]



© IBM Corporation 2000. All Rights Reserved