1855143 Members
3434 Online
104109 Solutions
New Discussion

nfs

 
SOLVED
Go to solution
Punithan
Advisor

nfs

hi
now i want to tranfser one dir from server A to server B and i user nfs but i got a message that rcp is not registed can u give me the full way hwo to do nfs
System Engineer
10 REPLIES 10
Niraj Kumar Verma
Trusted Contributor

Re: nfs

Hi,

# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.client stop

# /sbin/init.d/nfs.server start
# /sbin/init.d/nfs.client start


-Niraj
Niraj.Verma@philips.com
U.SivaKumar_2
Honored Contributor
Solution

Re: nfs

hi,
On the server side where you have directory with data
#/sbin/init.d/nfs.server start
Check these processes are running
#ps -ef| grep rpcd
#ps -ef | grep portmap ( in HP-UX 10.20 )
#ps -ef | grep rpcbind ( in HP-UX 11.X )
#ps -ef | grep nfsd

now export that directory with data
#exportfs -i /datadir

On the client server where you want to copy the
data.
#/sbin/init.d/nfs.client start
#ps -ef | grep rpc.mountd ( shoulf be running)

Mount the data directory from the first server
#mount nfsserver:/datadir /data
Now /datadir in mounted under /data directory of the local machine.
#cd /data
#ll
you will be able to see the files in the nfs server.
Now use cp command to copy the files.
if it is done.
unmount the directory
#umount /data
On the server unexport that /datadir directory
#exportfs -iu /datadir
To check
#exportfs
output should not show /datadir directory.

regards,
U.SivaKumar





Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: nfs

hi,
On the server side where you have directory with data
#/sbin/init.d/nfs.server start
Check these processes are running
#ps -ef| grep rpcd
#ps -ef | grep portmap ( in HP-UX 10.20 )
#ps -ef | grep rpcbind ( in HP-UX 11.X )
#ps -ef | grep nfsd

now export that directory with data
#exportfs -i /datadir

On the client server where you want to copy the
data.
#/sbin/init.d/nfs.client start
#ps -ef | grep rpc.mountd ( shoulf be running)

Mount the data directory from the first server
#mount nfsserver:/datadir /data
Now /datadir in mounted under /data directory of the local machine.
#cd /data
#ll
you will be able to see the files in the nfs server.
Now use cp command to copy the files.
if it is done.
unmount the directory
#umount /data
On the server unexport that /datadir directory
#exportfs -iu /datadir
To check
#exportfs
output should not show /datadir directory.

regards,
U.SivaKumar





Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: nfs

hi,
On the server side where you have directory with data
#/sbin/init.d/nfs.server start
Check these processes are running
#ps -ef| grep rpcd
#ps -ef | grep portmap ( in HP-UX 10.20 )
#ps -ef | grep rpcbind ( in HP-UX 11.X )
#ps -ef | grep nfsd

now export that directory with data
#exportfs -i /datadir

On the client server where you want to copy the
data.
#/sbin/init.d/nfs.client start
#ps -ef | grep rpc.mountd ( shoulf be running)

Mount the data directory from the first server
#mount nfsserver:/datadir /data
Now /datadir in mounted under /data directory of the local machine.
#cd /data
#ll
you will be able to see the files in the nfs server.
Now use cp command to copy the files.
if it is done.
unmount the directory
#umount /data
On the server unexport that /datadir directory
#exportfs -iu /datadir
To check
#exportfs
output should not show /datadir directory.

regards,
U.SivaKumar





Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: nfs

hi,
On the server side where you have directory with data
#/sbin/init.d/nfs.server start
Check these processes are running
#ps -ef| grep rpcd
#ps -ef | grep portmap ( in HP-UX 10.20 )
#ps -ef | grep rpcbind ( in HP-UX 11.X )
#ps -ef | grep nfsd

now export that directory with data
#exportfs -i /datadir

On the client server where you want to copy the
data.
#/sbin/init.d/nfs.client start
#ps -ef | grep rpc.mountd ( shoulf be running)

Mount the data directory from the first server
#mount nfsserver:/datadir /data
Now /datadir in mounted under /data directory of the local machine.
#cd /data
#ll
you will be able to see the files in the nfs server.
Now use cp command to copy the files.
if it is done.
unmount the directory
#umount /data
On the server unexport that /datadir directory
#exportfs -iu /datadir
To check
#exportfs
output should not show /datadir directory.

regards,
U.SivaKumar





Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: nfs

hi,
On the server side where you have directory with data
#/sbin/init.d/nfs.server start
Check these processes are running
#ps -ef| grep rpcd
#ps -ef | grep portmap ( in HP-UX 10.20 )
#ps -ef | grep rpcbind ( in HP-UX 11.X )
#ps -ef | grep nfsd

now export that directory with data
#exportfs -i /datadir

On the client server where you want to copy the
data.
#/sbin/init.d/nfs.client start
#ps -ef | grep rpc.mountd ( shoulf be running)

Mount the data directory from the first server
#mount nfsserver:/datadir /data
Now /datadir in mounted under /data directory of the local machine.
#cd /data
#ll
you will be able to see the files in the nfs server.
Now use cp command to copy the files.
if it is done.
unmount the directory
#umount /data
On the server unexport that /datadir directory
#exportfs -iu /datadir
To check
#exportfs
output should not show /datadir directory.

regards,
U.SivaKumar





Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: nfs

hi,
regret the multiple posts. browser error.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Punithan
Advisor

Re: nfs

hi thank you for your help guys
System Engineer
Baiju_2
Occasional Contributor

Re: nfs

HI

To trasfer one directory from server A to server B , there are diff. options.
1)configuring nfs
2)Using ftp
3)using rcp.

nfs

Please see the nfsdaemon nfsd is runng ,using ps -aef |grep nfsd.

if already running kill it and start the service again

If not then start the service using
/sbin/init.d/nfs.server start

Then export the dir which u want then mount on the client.(See man export )

2)you can use ftp also to trasfer files

3)U can use rcp (see man rcp)

For using ftp ,enable system/user wide equivalency using /etc/hosts.equiv or $HOME/.rhosts





"Truth is stranger than Fiction"