Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Mount a directory in another linux server

Any idea how to mount a remote Centos 6 directory from a local Centos server ? Do I need to install NFS or configure other things ?

Thanks
Avatar of larsrohr
larsrohr
Flag of United States of America image

NFS is a pretty standard way of sharing file systems from one linux box to another.

The NFS server should add configuration to /etc/exports (see "man exports" for info), and then start nfs service.

The NFS client should add configuration to /etc/fstab for mounting.
SOLUTION
Avatar of Phiwi Moyo
Phiwi Moyo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK
AXISHK

ASKER

Do I need to install NFS, if we only need two Centos server to communicate with SSH and download some files ?

Thanks
If you want to mount one machine's files on the other machine, as your original question says, then yes.

But if you can get by with just using SSH and SFTP or SCP for occasional file transfers between machines, then you can do without NFS.
Avatar of AXISHK

ASKER

I have seen a line in client's /etc/fstab

192.168.28.41:/home/hkm    /mnt/hkm      nfs    rsize=8192,wsize=8192,timeo=14,intr 0  0

What does rsize & wsize mean ?

Tks
You'll find that info with "man nfs":
  Options for the nfs file system type
       rsize=n        The  number of bytes NFS uses when reading files from an
                      NFS server.  The rsize is negotiated between the  server
                      and client to determine the largest block size that both
                      can support.  The value specified by this option is  the
                      maximum  size  that  could  be used; however, the actual
                      size used may be smaller.  Note: Setting this size to  a
                      value  less  than  the largest supported block size will
                      adversely affect performance.

       wsize=n        The number of bytes NFS uses when writing  files  to  an
                      NFS  server.  The wsize is negotiated between the server
                      and client to determine the largest block size that both
                      can  support.  The value specified by this option is the
                      maximum size that could be  used;  however,  the  actual
                      size  used may be smaller.  Note: Setting this size to a
                      value less than the largest supported  block  size  will
                      adversely affect performance.
Avatar of AXISHK

ASKER

Tks