Export and Mount filesystem from aix

This document is copy from site IBM 
 
To export and mount file systems on AIX, complete these steps:
  1. Export a file system on AIX by using one of these methods.
    • Use this procedure:
      1. Add the file system that you want to export to the /etc/exports file.
      2. Export all entries in the file /etc/exports by entering the command /usr/sbin/exportfs -a
      3. Verify that the file system is exported by entering the command⁄usr⁄sbin⁄exportfs

      All shared file systems are displayed.

    • Use smitty:
      1. Enter the command smitty mknfsexp
      2. In the PATHNAME of directory to export field, type the name of the file system that you want to export.
      3. In the MODE to export directory field, select read-write.
      4. In the HOSTS & NETGROUPS allowed client access field, type the name of the hosts that are allowed to mount this file system.
      5. Press Enter. The export procedure is started.
      6. Press F10 to stop smitty.
  2. Mount a file system on AIX by using one of these methods.
    • Use this procedure:
      1. If the file system that you want to mount is remote, ensure that you have the permission to mount it by entering the command⁄usr⁄bin⁄showmount – e <remote host>
        where <remote host> is the name of the remote operating system.
      2. Choose an empty file system that serves as the mount point for the file system that you want to mount. If an empty file system does not yet exist, create it by entering the command mkdir /<local dir>
        where <local dir> is the name of the local file system.
      3. Mount the file system on your local system by entering the command⁄usr⁄sbin⁄mount -o rw,soft -n <remote host>/<remote dir>/<local dir>
        where:
        <remote host> is the name of the remote operating system
        <remote dir> is the name of the remote file system
        <local dir> is the name of the local file system
    • Use smitty:
      1. Enter the command smitty mountfs
      2. In the FILE SYSTEM name field, type the name of the file system on the remote system.
      3. In the DIRECTORY over which to mount field, type the name of the mount point on your local system.
      4. In the TYPE of file system field, select nfs3.
      5. In the FORCE the mount field, select yes.
      6. In the REMOTE NODE containing the file system field, type the name of the remote host.
      7. In the MOUNT as a READ-ONLY system field, select no.
      8. Press Enter. The mount process is started.
      9. Press F10 to stop smitty.
Export and Mount filesystem from aix

Leave a Reply

Your email address will not be published.