How do I Mount an NFS Export?
After creating an NFS export in OneSystem (see “How do I create an NFS Export”), you can mount the export to clients or applications. Here are some examples of how to mount an NFS export. OneXafe supports the use of hard links for mounting NFS exports.
To mount an NFS Export
This section describes command for listing and mounting exports on NFS Linux Clients.
- List exports available for mounting:
-
Copy
showmount -e # show mount information for oneblox system
- Show the OneXafe system’s export list:
-
Copy
# showmount -e $oneblox
- Example: OneXafe system. Two exports created through OneSystem - nfs1 & nf2.
-
Copy
# showmount -e oneblox
- Export list for OneXafe:
-
Copy
/exports/nfs1 *
/exports/nfs2 * -
Copy
# mount -t nfs -overs=3,hard,intr $Oneblox:/exports/$export /$local_mount_point
-
Copy
# mkdir /mnt/nfs1
-
Copy
# mount -t nfs -overs=3,hard,intr,tcp oneblox:/exports/nfs1 /mnt/nfs1
-
Copy
# mount -t nfs -overs=3,hard,intr,tcp 192.168.201.8:/exports/nfs1 /mnt/nfs1
-
Copy
# mount
# df
# nfsstat -m -
Copy
rsize # data size that will be transferred from server to client per I/O operation
wsize # data size that will be transferred from client to server per I/O operation
Mounting export:
Note: OneXafe currently supports NFS v3. Customers should use the overs, hard, intr, and tcp options when mounting exports.
Example: Create local mount point. Create subdirectory called nfs1:
# mkdir /mnt/nfs1
Mount export nfs1 to local mount point /mnt/nfs1. Use OneXafe system cluster name or IP address:
or
Display mounted export. The following commands can be used to display mounted exports:
Mount options. Options can be added with "-o".