[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] NFS the hard way
James,
If you haven't done so already, start the portmapper and other
programs like mountd before starting nfsd.
On my Redhat boxen the easy way of doing all this is:
cd /etc/rc.d/init.d/
portmap start
nfs start
Essentially all the scripts do is run /sbin/portmap, /sbin/rpc.nfsd,
/sbin/rpc.mountd and /sbin/exportfs.
Ensure that you are exporting the file system you want to access is
listed in /etc/exports, along with the client machine's IP/name and
permissions (rw/ro) e.g:
/file/system/to/export client.machine(ro)
The client machine preferably needs to be running portmap - I'm not
entirely sure what happens if server and client aren't running
portmap.
The man pages suggest they default to the standart ports 2049(?) and
111 - but some systems just seem to complain a lot instead :-)
Cheers.
Baz.
James Wallbank writes:
> Hi All,
>
> How do I activate NFS the hard way - completely by hand?
>
> Why??? Because I need to duplicate one of our servers, and if I boot
> it normally then everything goes pear-shaped, because when I mount it
> over NFS to copy the disk I can't copy loads of open files and active
> executables.
>
> My solution? Boot the server (the machine to be duplicated) in single
> user mode so that the h/d has minimal activity. The problem then is
> that I need to get NFS up and running. I've used ifconfig to give the
> machine a meaningful IP address, netmask etc, and I've used route so
> that I can ping the target machine, which is sitting there with an
> empty hda1 ready to receive the data.
>
> But, of course, when I try to mount my server's hda1 over nfs from
> the target machine, the whole process fails with an RPC port mapper
> failure.
>
> Presumably this is because nfsd isn't running on the server (?)
>
> When (on the server) I try...
>
> rpc.nfsd
>
> I get the message "Cannot register service: RPC unable to receive;
> errno = Connection refused."
>
> What commands should I use to get nfs active on the server?
>
> Cheers,
>
> James
> =====
>
> --
> who: James Wallbank
> org: Redundant Technology Initiative
> tel: +44 114 2495522
> fax: +44 114 2495533
> eml: rti [at] lowtech.org
> web: www.lowtech.org
> loc: Access Space
> 1 Sidney Street
> Sheffield
> S1 4RG
> UK
> ---------------------------------------------------------------------
> Sheffield Linux User's Group - http://www.sheflug.co.uk
> To unsubscribe from this list send mail to
> - <sheflug-request [at] vuw.ac.nz> - with the word
> "unsubscribe" in the body of the message.
>
> GNU the choice of a complete generation.
>
>
--
Barrie J. Bremner
email: baz at barriebremner.com | OpenPGP ID: 5164F553
http://barriebremner.com/
[Contact information available at website]
"Linux? Is that some kind of MacOS?"
-- BT technical support
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.