1844044 Members
2776 Online
110227 Solutions
New Discussion

NFS

 
SOLVED
Go to solution
Manuales
Super Advisor

NFS

How i must mount a filesystem from another server?
supose:
server A: /home/firstuser
server B
how do i mount /home/firstuser in server B ?

what do i must review with daemons, archives configure, ??

Thanks, Manuales.
23 REPLIES 23
Devender Khatana
Honored Contributor
Solution

Re: NFS

Hi,

Refer this thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=964561

HTH,
Devender
Impossible itself mentions "I m possible"
Christine Hartman
Valued Contributor

Re: NFS

first make sure nfs daemons are running: ps -ef |grep nfs, if they are not running go to /etc/rc.config.d and vi the nfsconf file...change the NFS_CLIENT to 1 vs. 0 and NFS_SERVER respectively.
then start nfs from /sbin/init.d/nfs*
once daemons are running...
then create your /etc/exports file, see manpage for exports for more info on this file.
make sure the /etc/exports file includes your /home/firstuser entry...save it, then run exportfs -a on server A
then on server B mount -F nfs serverA:/home/firstuser /tmp_mnt
make sure that /tmp_mnt (or whatever you want to call your mountpoint on serverB) has been created (with mkdir).
Hope this helps.

Christine
Manuales
Super Advisor

Re: NFS

Into server A /etc/exports contains:
serverA:/->cd etc
serverA:/etc->cat exports
/sap/P1/exe -anon=65534
/sap/P1/global -anon=65534
/sap/P1/profile -anon=65534
/usr/sapp/trans -anon=65534
/usr/sapp/P1 -anon=65534

now, it has the following message:
serverB:/->mount -F nfs serverA:/usr/sapp/P1 /usr/sapp/P1
mount: access denied for serverA:/usr/sapp/P1

Into server B already is created the folder named /usr/sapp/P1

why do not works at the moment when i want to mount de nfs?

Thanks ...
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

Hi,
Just curious to know whether did you restart your NFS deamon after new configuration. If so, restart it.

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

Hi,

Your machine name is not in the export list for the file system you are trying to mount from the server.

There can be any typo; so Execute this command

#showmount -e hostname

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Manuales
Super Advisor

Re: NFS

hi!!!
yeah, i did.
Configuration was created as system requires ..

then started nfs from /sbin/init.d/nfs*

but only there were mounted 3 of 5 nfs !! :(

why???
Manuales
Super Advisor

Re: NFS

serverB:/sbin/init.d->showmount -e hostname
hostname: RPC_UNKNOWNHOST

serverA:/usr/sap->showmount -e hostname
hostname: RPC_UNKNOWNHOST
Manuales
Super Advisor

Re: NFS

serverA:/usr/sap->showmount
serverB

serverB:/sbin/init.d->showmount
serverB: RPC_PROG_NOT_REGISTERED
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

Hi,
Please export the filesystem again:-) using following commnands;

1. Editing the /etc/exports file appropiately
2. re-exporting the exports file with the /usr/sbin/exportfs -a command.

Then try again:-).


One man's "magic" is another man's engineering. "Supernatural" is a null word.
Manuales
Super Advisor

Re: NFS

serverA:/usr/sap->showmount
serverB

serverB:/sbin/init.d->showmount
serverB: RPC_PROG_NOT_REGISTERED

into serverB i want to mount the filesystem that send error showed.
Manuales
Super Advisor

Re: NFS

ok let me export again .. hold on please
:)
Yogeeraj_1
Honored Contributor

Re: NFS

hi manuales,

It seems like the portmapper doesn't want to talk to you, or something is broken.

I would suggest that you Kill nfsd, mountd, and the portmapper and try the sequence again.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

Hello,
The problem looks like rpcbind problem, so please restart nfs daemon on both the server and client.

One man's "magic" is another man's engineering. "Supernatural" is a null word.
Manuales
Super Advisor

Re: NFS

ok .. appeared:

serverB:/usr/sap/CP1->mount -F nfs serverA:/usr/sap/CP1 /usr/sap/CP1
mount: serverA:/usr/sap/CP1 on /usr/sap/CP1 : Device busy

/usr/sap/CP1:
serverA:/usr/sap/CP1->bdf | grep usr
/dev/vg00/lvol7 997333 273593 624006 30% /usr

serverB:/usr/sbin->bdf | grep usr
/dev/vg00/lvol7 401408 292590 102024 74% /usr
serverC:/usr/sap/trans/
1024000 279431 698115 29% /usr/sap/trans
/dev/vgsap/sapcp1 5128192 620850 4225646 13% /usr/sap/CP1

I think what is the problem ... is the size???
serverA's size is greather than serverB's , is not it?

:0)
Manuales
Super Advisor

Re: NFS

mmmm...
taking advantage of your help ..

how do i do a link??
how do i use ln command??

for doing something like this one (where appears "->" ):
lrwxrwxrwx 1 root sys 18 Nov 24 2001 global -> /sapmnt/CP1/global
lrwxrwxrwx 1 root sys 19 Nov 24 2001 profile -> /sapmnt/CP1/profile

THANKS ...
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

Links are of two types.
Soft anf hard....

ln -s sourcefile destination file
creates only a soft link.

This is what you want I guess.

Read this page for clear understaning....

http://www.ugrad.cs.ubc.ca/~cs219/CourseNotes/Unix/commands-links.html


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Senthil Prabu.S_1
Trusted Contributor

Re: NFS


>serverB:/usr/sap/CP1->mount -F nfs >serverA:/usr/sap/CP1 /usr/sap/CP1
>mount: serverA:/usr/sap/CP1 on /usr/sap/CP1 : >Device busy


Hi,
Space is not a problem. On serverB, I guess you are in the dir usr/sap/CP1 and running the mount command. so come out of dir usr/sap/CP1 and execute the mount command.

#cd ..
So, ur currnet dir will be usr/sap/
then execute mount command
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Manuales
Super Advisor

Re: NFS

Thanks a lot !!!!

:)
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

Not only in words, plz do assigns my points:-)
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Manuales
Super Advisor

Re: NFS

you know?? it worked as follows:

mount -F nfs serverA:/usr/sap/CP1 /usr/sap

but it did not worked as:
mount -F nfs serverA:/usr/sap/CP1 /usr/sap/CP1

why???

well .. and how do i umount?
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

To unmount a filesystem;

#umount

I said;
#cd /usr/sap
#mount -F nfs serverA:/usr/sap/CP1 /usr/sap/CP1

This should work:-)
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Manuales
Super Advisor

Re: NFS

it does not work mount adding "CP1" word .. :'( ... i do not why !!!!

and ... it works umount ...

other question .. how do i delente a link???

thanks ..
Senthil Prabu.S_1
Trusted Contributor

Re: NFS

If you have created a soft link, then go to the dir where the file is present and remove the linked file by executing rm command, but still the parent,original file will exist.

If you delete the original file, both original and soft linked files get deleted.

One man's "magic" is another man's engineering. "Supernatural" is a null word.