1833007 Members
2773 Online
110048 Solutions
New Discussion

Export of File system

 
SOLVED
Go to solution
YOGI_3
Frequent Advisor

Export of File system

Hi all.
I have 2 servers sai serA and serB.
I am creating 100gb lv on serA.
I want to mount it on serB so that it can act as a local drive.
Please give me the procedure for the same..
both servers are on the same n/w.
waiting for reply...

Yogesh
There is never a wrong time to do the right things
3 REPLIES 3
Sudeesh
Respected Contributor
Solution

Re: Export of File system

You can use NFS....

On serA:
1. Make entries to /etc/exports for each directory you want to export. Assume new lv is mounted on /new_lvol, exports file entry will be the following with read/write for all clients.

/new_lvol -rw

2. In the /etc/rc.config.d/nfsconf file, make sure the NFS_SERVER and START_MOUNTD variables are set to 1, as follows:

NFS_SERVER=1
START_MOUNTD=1

Issue the following command to run the NFS startup script:
/sbin/init.d/nfs.server start

3. Issue "exportfs" command to export the directories specified in /etc/exports.

Use "showmount -e serA" to check filesystem is exported or not.

On serB:

1. In the /etc/rc.config.d/nfsconf file, make sure the NFS_CLIENT variable is set to 1, as follows:

NFS_CLIENT=1

2. Run the NFS startup script by issuing the following command:
/sbin/init.d/nfs.client start

3. Issue
mkdir /new_lvol_serA
mount serA:/new_lvol /new_lvol_serA

check the filesystem is NFS mounted using bdf.


Sudeesh



The most predictable thing in life is its unpredictability
Sudeesh
Respected Contributor

Re: Export of File system

Pls ensure hosts entries are correct for serA and serB before proceeding with above steps.


Sudeesh
The most predictable thing in life is its unpredictability
Suraj Singh_1
Trusted Contributor

Re: Export of File system

Hi,
On server serA:
Start with sam --> Networking and Communication --> Networked Filesystem --> Exported Local File Systems

Goto Actions --> Add Exported File System
Now add the desired directory to be exported, select Apply and ok.

On Server serB:
1. Create a desired mount point where you want to mount the exported file system.
2. Issue following command:
# mount serA:/ /mount_pt

If you want this filesystem to be mounted automatically during system boot, add it in /etc/fstab

Regards
What we cannot speak about we must pass over in silence.