6.0 HP StorageWorks X9000 File Serving Software CLI Reference (TA768-96040, October 2011)

ibrix_exportfs
Maintains the list of NFS-exported file systems and specifies file-system access for X9000 clients.
Description
ibrix_exportfs makes local directories available for NFS clients to mount. The management
console manages the table of exported file systems and distributes the information to local /etc/
exports files. All entries are automatically re-exported to NFS clients and, optionally, to the file
serving node standbys. A file system must be mounted before it can be exported. It must be
unexported before it can be unmounted.
The ibrix_exportfs command can also be used to control file-system access for X9000 clients.
By default, all X9000 clients can mount a file system after a mount point has been created. To
allow access for a file system (or a subdirectory of that file system) to a specific X9000 clients, use
the -c option to create an access entry containing that information. Then, when an X9000 client
attempts to mount the file system, X9000 Software will allow access only to the clients in the access
entry.
Synopsis
Export a file system via NFS:
ibrix_exportfs -f FSNAME -h HOSTNAME -p
CLIENT1:PATHNAME1,CLIENT2:PATHNAME2,.. [-o "OPTIONS"] [-b]
File system FSNAME at mountpoint PATHNAME on file serving node HOSTNAME is exported to the
specified CLIENTS. The accessing CLIENT can be a single file serving node, file serving nodes
represented by a wildcard, or all hosts (:/PATHNAME), which is also known as world access.
World access omits the client specification but not the colon, for example, :/usr/src. By default,
the file system is exported to the NFS client’s standby. To exclude the standby, include the -b
option. The command uses the default Linux exportfs options unless specific options are provided.
NOTE: When configuring options for an NFS export, do not use the no_subtree_check
option. This option is not compatible with the X9000 software.
Unexport the specified NFS exports:
ibrix_exportfs -U -h HOSTLIST -p CLIENT1:PATHNAME1,CLIENT2:PATHNAME2,..
[-b]
The -b option excludes the standby.
List NFS-exported directories:
ibrix_exportfs -l [-h HOSTLIST]
To specify a range of servers in the host list, enter the pattern to match, enclosed in square brackets.
Separate items in a list with commas.
Create an access entry for a file system:
ibrix_exportfs -c -f FSNAME -p CLIENT1:PATHNAME1,CLIENT2:PATHNAME2,..
By default, all X9000 clients can mount a file system after a mount point has been created. This
command limits the clients that can mount the file system or a subdirectory of the file system. The
-p option specifies the clients and the file systems (or subdirectories) that they are allowed access.
CLIENT is the name of an X9000 client or hostgroup and /PATHNAME is the file system or
subdirectory the client will be allowed to mount.
For example, the following command gives client2 access to the subdirectory /ifs1/tests in
the ifs1 file system:
ibrix_exportfs c f ifs1 p client2:/ifs1/tests
Remove the access entry for a client:
ibrix_exportfs 39