How to NFS Mount a cdrom Filesystem

来源:互联网 发布:小米台灯 知乎 编辑:程序博客网 时间:2024/05/01 22:28
 Technote (FAQ) ProblemHow to NFS Mount a cdrom Filesystem Solution

Following are the steps required to mount a CD-ROM as a cdrom filesystem, export the NFS filesystem from the server and NFS mount the filesystem on the client. This document applies to AIX Versions 4.3 and above. On the server
On the client
Troubleshooting


On the server

  1. Check the status of portmap and the NFS daemons:
    • Enter lssrc -s portmap.
    • Enter lssrc -g nfs.
    • If they are not active, start them by running startsrc -s portmap and then startsrc -g nfs.

     

  2. Mount the CD-ROM:
    • Enter mkdir /cdrom to create a mount point, if one does not already exist.
    • Load the CD into the CD-ROM drive.
    • Enter smitty cdrfs.
    • Select Add a CDROM File System.
    • Select your device from the F4 list.
    • Enter the mount point you just created for MOUNT POINT.
    • If you want the filesystem to mount on a reboot, change Mount AUTOMATICALLY at system restart to yes.
      NOTE: If you specify yes for Mount AUTOMATICALLY at system restart, you must have media in the CD-ROM drive when you reboot or the mount will fail.
    • Enter mount /cdrom.

     

  3. To add the filesystem for NFS exporting:
    • Enter smitty mknfsexp.
    • Enter the PATHNAME of the directory to export (for example, /cdrom).
    • Change the MODE of export directory to read-only.
    • Enter the HOSTS & NETGROUPS allowed client access.
    • Enter HOSTS allowed root access.
    • Press Enter to export the filesystem.
      NOTE: If you are going to be installing on the client machine, you MUST enter the client name for HOSTS allowed root access.

     

  4. Verify that the filesystem is exported:
    • Enter showmount -e and find it in the list.

On the Client

  1. Check the status of portmap and the NFS daemons:
    • Enter lssrc -s portmap.
    • Enter lssrc -g nfs.
    • If they are not active, start them by running startsrc -s portmap and then startsrc -g nfs.

     

  2. Verify that the server has the filesystem exported:
    • Enter showmount -e <server_name>.
      NOTE: <server_name> will be the hostname of the server.

     

  3. Create the directory you will be using to access the software.
    • Enter mkdir /cdrom.

     

  4. To NFS mount the filesystem on the client:
    • Enter smitty mknfsmnt.
    • Enter the PATHNAME of the mount point (for example, /cdrom).
    • Enter the PATHNAME of the remote directory (for example, /cdrom).
    • Enter the HOST where the remote directory resides.
      NOTE: HOST will be the hostname of the server.
    • Change the MODE for this NFS file system to read-only.
    • Press enter to NFS mount the filesystem.

On AIX 4.x BOS installation CD-ROMs and most LPP CD-ROMs, the install images are now located in /cdrom/usr/sys/inst.images. On some LPP CD-ROMs, the install images are located in /cdrom. To check which directory the install images are on, check for the existence of a .toc file in the directory. Once you have determined the directory with the .toc file, use the full pathname of the directory as your <input device> in SMIT when you perform your install.


Troubleshooting

Look for the following errors:

   mount: 1831-011 access denied for ...

mount: 1831-008 giving up on ...

If they occur, try the following suggestions:
  1. Make sure that the client's hostname and IP address are resolvable by the server. Also, make sure that the server's hostname and IP address are resolvable by the client. You can do so by running the following:

    On the server:

            host <client_hostname
    >

    host <client_ipaddress
    >

    The output of these lines has to match EXACTLY.

    On the client:

            host <server_hostname
    >

    host <server_ipaddress
    >

    The output of these lines has to match EXACTLY.

  2. On the client, enter netstat -in. If there is more than one network interface, make sure all IP addresses of the client are resolvable by the server. You can do this by running (on the server):
             host <ipaddress
    >

    Execute this command for each IP address listed in the netstat -in output.

  3. If you are still getting errors:

    On the server, enter smitty rmnfsexp.

    • Enter the PATHNAME of the exported directory (for example, /cdrom).
    • Press Enter to remove the directory from the exports list.
    • Enter umount /cdrom.
    • Enter rmdir /cdrom.
    • Return to step 1 of the section "On the server". If you still cannot get the CD-ROM NFS mounted, contact your AIX support center for further assistance.