Operating System - HP-UX
1836550 Members
1744 Online
110102 Solutions
New Discussion

Error in remote mounting....

 
SSP_1
Regular Advisor

Error in remote mounting....

Hi,

We have a hp server named "apps1" and another sun server "nedsrv". I have exported a directory on sun server as "/etcs" and mounting it on hp server. I want this tobe done automatically while hp server reboots. I have placed the entry for the same in /etc/fstab...but it's not working....attaching my "/etcs/fstab" filew herewith...pl have a lokk and suggest about...
Obstacles exist to challenge you to keep going. Not to quit.
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: Error in remote mounting....

Hi Shripad,

Just adding and entry like the one you have made in /etc/fstab will not mount a nfs filesystem. You have to mention the filesystem type that it is nfs (like vxfs for local file systems) and mention the nfs mount options. An easy way to do this is to add the nfs mount option through SAM. Go to sam --> networking and communication and there you should find and option of mounting nfs filesystem under some nfs option.

Try this link on how to configure your system as nfs client and how to mount a nfs filesystem,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/9-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/9-toc.html&searchterms=nfs%20client&queryid=20020102-013213

Hope this helps.

Regds
Robin Wakefield
Honored Contributor

Re: Error in remote mounting....

Hi Shripad,

Your last two lines should look something like this:

nedsrv:/etcs /d00 nfs rw,hard 0 0
apps2:/d00 /mntd00 nfs rw,hard 0 0

although you may want different mount options.

Rgds, Robin.
Bill Hassell
Honored Contributor

Re: Error in remote mounting....

A good rule to follow (to avoid unnecessary reboots) is to test fstab BEFORE you reboot. To do this, you place the needed entries into fstab. Then mount the disk (or remote disk) by just using the mountpoint's name as in:

# mount /d00
# mount /mntd00

If you get errors, you can fix them and continue testing. Once it mounts correctly, then a reboot will return the mounts again.


Bill Hassell, sysadmin
Roger Baptiste
Honored Contributor

Re: Error in remote mounting....

Hi,

<<>apps2:/d00 /mntd00 >>

The filesystems type needs to be mentioned.
here it should be "nfs". You would also need to specify nfs related options in the entries.
(eg: -ro for read only ).

In addition, at the NFS server end (nedsrv and apps2), you will need to export the filesystems (/etcs and /d00 ) using the exportfs command or adding the entries in the /etc/exports file.

HTH
raj

Take it easy.