Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Anonymous on February 16, 2004, 04:33:43 AM
-
Hello, does anyone have any experience setting up NFS. I have downloaded the dungog - custom backup panel and would like to backup sme server data from one server to another. I have searched the forums and google but nobody seems to have done it.
have downloaded the following rpms:
e-smith-nfs-1.1.0-04.src.rpm
portmap-4.0-38
nfs-utils-0.3.1-14.72
but no idea what to do next. Any suggestions?
Thanks in advance.
K
-
Hello, does anyone have any experience setting up NFS. I have downloaded the dungog - custom backup panel and would like to backup sme server data from one server to another. I have searched the forums and google but nobody seems to have done it.
have downloaded the following rpms:
e-smith-nfs-1.1.0-04.src.rpm
portmap-4.0-38
nfs-utils-0.3.1-14.72
but no idea what to do next. Any suggestions?
Thanks in advance.
K
Hi,
We use NFS alot on our server...Now the above e-smith-nfs-1...... is only the source file grab this one http://www.ibiblio.org/pub/Linux/distributions/e-smith/contrib/GordonRowell/RPMS/noarch/e-smith-nfs-1.1.0-04.noarch.rpm
Install as normal rpm -ivh
Now your ready to use.
*NOTE From FAQ*
http://www.e-smith.org/faq.php3#8q14
-
Hi! Thanks for your reply and file location..didn't notice that I installed scr and not actual rpm :-P
When I try to start nfs I get the following errors, any ideas?
[root@steam-mail-backup nfs]# /etc/rc.d/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[ FAILED ]
Starting NFS mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
[ FAILED ]
Starting NFS daemon:
-
Hi! Thanks for your reply and file location..didn't notice that I installed scr and not actual rpm :-P
When I try to start nfs I get the following errors, any ideas?
[root@steam-mail-backup nfs]# /etc/rc.d/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[ FAILED ]
Starting NFS mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
[ FAILED ]
Starting NFS daemon:
Hi,
Dont forget to start the portmap service BEFORE you start the nfs service :hammer:
/etc/rc.d/init.d/portmap start
Also if you want this to start on boot up create right links to rc.d7, search on here on how to do that
HTH
Byte
-
Hi I was able to start server succefuly after starting portmap first...thanks!
do i need to install the same files on the client?
I have added the following entry in the client /etc/fstab file. the ip: 192.168.1.17 is the server that it is trying to connect to.
192.168.1.17:/
/mnt/test nfs defaults 1 2
but when I do a "mount -a" I get the following error:
mount: RPC: Program not registered
does that mean that the RPC program is not registered. also do I need to open up any ports on the sme firewall.
Merci!
Kris
-
Hi,
Yes I have the nfs installed on both machines.
Also have you edited the /etc/exports file? to include your nfs share, if not you need to add something like..
/hd2 *192.168.X.X(rw,no_root_squash)
that is an entry of my file, so i want to share /hd2 dir to another internal machine.
Remember to *always* restart both portmap then nfs services to allow changes, the to check our dir run at command line showmount you should now see what you entered in the /etc/exports file.
Now you will be able to mount with any luck, if you have any problems check out the /var/log/messages
Off we go for a well earned :pint:
HTH
Byte
-
Wondering how to get portmap to start automatically at boot. I've got NFS working fine, as long as I start portmap and then nfs at the console by hand. When SME boots, it tries to automatically start NFS, but fails since portmap isn't running. How do I get portmap to start automatically also, and b4 NFS starts?
-
Don't know how much help it'll be, but Dan York wrote a how to for NIS on e-smith 4.1
http://no.longer.valid/phpwiki/index.php/How%20to%20set%20up%20NIS%20on%20your%20SME%20Server
If it helps, it'd be nice if someone updates it for SME6
-
1. managed to setup successfuly by adding correct entry to /etc/fstab on client
192.168.1.x:/usr /mnt/whatever nfs defaults 1 2
2.added entries to hosts.allow file on server to allow client to connect(not sure if this is necessary):
# nfs
rpc.nfsd: 192.168.1.0/255.255.255.0
rpc.mountd: 192.168.1.0/255.255.255.0
# portmap
portmap: 192.168.1.0/255.255.255.0
3. added this entry to /etc/export on host server
/usr/ 192.168.1.x(rw,no_root_squash)
The client ip is important because sme has 2 nic cards if configured in server/gateway mode and I kept getting permission denied when I entered the private ip vs. the gateway ip.
I still need to figure out how to start portmap first but I am happy.
I'll have a :pint: for you Byte.
Kris
-
Do you mean startup on boot? if so all I did was create a shortcut from init.d to rc7.d called S92portmap.
Im sure others will have different ways of setting their service(s) on boot
HTH
Byte
-
I created a symbolic link to /etc/init.d/portmap and called it S58portmap because nfs setting was S60nfs, however I still get nfs starting before portmap..and this causes the server to hang at boot.
Do you know what could be the problem...I would think that naming portmap before nfs would cause it to start first?
Thanks!
Kris
-
This may not be the best way to do it but I've become accustomed to adding the commands to /etc/rc.d/rc.local file. This file runs after all the other boot processes are complete.
Cheers
-
I created a symbolic link to /etc/init.d/portmap and called it S58portmap because nfs setting was S60nfs, however I still get nfs starting before portmap..and this causes the server to hang at boot.
Do you know what could be the problem...I would think that naming portmap before nfs would cause it to start first?
Thanks!
Kris
Yes, this is because if you look at the start of the list you will see "@S14nfslock" now make sure you start portmap before that as per mine I have "@S13portmap" that would solve your problem and will boot fine!!
HTH
Byte
-
Fantastic, thanks Byte. by creating a link to S13portmap, I was able to start portmap before NFS.
Thanks for all your help!
Kris :-)