Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday, 10 December 2013

How to NFS Mount a cdrom Filesystem


Technote (FAQ)
Question
How to NFS Mount a cdrom Filesystem
Answer
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.

  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.

  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 .
      NOTE 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 in SMIT when you perform your install.

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.
  1. 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):
  2.          host <ipaddress>
Execute this command for each IP address listed in the netstat -in output.
  1. 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.

No comments:

Post a Comment