cancel
Showing results for 
Search instead for 
Did you mean: 

NFS Procedure

 
SOLVED
Go to solution
Highlighted
Frequent Advisor

NFS Procedure

I want to NFS mount one dir of PRD server on App server
Actually one dir from PRD is already mounted .

in /etc/export having one entry i.e

/sapmnt/PRD/profile -root=MYHPAPP,access=MYHPAPP
i will add other entry i.e.
/sapmnt/PRD/global -root=MYHPAPP,access=MYHPAPP

after thet tell me which option i want to use to export only second dir beacuse profile is alrady mounted only mount golbal

i.e. exportfs - ????????????

plz tell me procedure also?
9 REPLIES 9
Highlighted
Acclaimed Contributor

Re: NFS Procedure

# exportfs -a
This will export both of them, so won't change profile.
Highlighted
Honored Contributor

Re: NFS Procedure

Hi Santosh

Simply run after adding lines in /etc/exports

#exportfs -a

and verify by using

#showmount -e
a warrior never quits
Highlighted
Regular Advisor

Re: NFS Procedure

1>exportfs -a
2>showmount -e
3>also insert the entry in /etc/fstab


Regards
Sachit
Highlighted
Honored Contributor

Re: NFS Procedure

Hi,

if this should be a one-time-change, there is no need to change /etc/exports - use

exportfs -i -o root=MYHPAPP,access=MYHPAPP /sapmnt/PRD/global

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Highlighted
Honored Contributor

Re: NFS Procedure

Dear Santhosh

once u added an entry in /etc/exports file
u have to force re read that file for that u have to use exportfs -a command
once u used exportfs -a command it is exported
u can see this in u /etc/xtab file
thanks and regards

Sajjad Sahir
Highlighted
Frequent Advisor

Re: NFS Procedure

Thanks Everybady...............

Here i am writing procedure Plz check it & Tell me it correct or not

In PRD server

1.Edit exports & add entry
sapmnt/PRD/global -root=MYHPAPP,access=MYHPAPP

2.#exportfs -a

3.showmount -e (to show mount FS)

In App Server

1. Edit fstab & add entry as
MYHPPRD:/sapmnt/PRD/global /sapmnt/PRD/global nfs defaults 0 0

2. mount MYHPPRD:/sapmnt/PRD/global /sapmnt/PRD/global

or

mount /sapmnt/PRD/global

3 #bdf

is this right?
Highlighted
Acclaimed Contributor
Solution

Re: NFS Procedure

>3.showmount -e (to show mount FS)

You can also look at /etc/xtab.

>In App Server

You forgot you need to mkdir the mount point:
# mkdir -p /sapmnt/PRD/global
(You may have to set the permissions to global to be a+rwx=ugo.)

>is this right?

Sure looks like it.
Highlighted
Honored Contributor

Re: NFS Procedure

Dear
please make directroy in server 2
and mount it there

eg:
i am exporting one file from server1 to server2
ie
first I made an entry in /etc/exports file of the server1

/home/sajjad/file1

after that i exported it
then server b
made a directory tmp1
on server b
mount server1:/home/sajjad/file1 tmp1
cd tmp1
u can see file there
ok
Highlighted
Frequent Advisor

Re: NFS Procedure

Thanks everybody..................

I mounted dir successfully......

Again thanks...

santosh karpe