Koozali.org: home of the SME Server

how to setup NFS on SME 5.6

Anonymous

how to setup NFS on SME 5.6
« 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

Offline byte

  • *
  • 2,183
  • +2/-0
Re: how to setup NFS on SME 5.6
« Reply #1 on: February 16, 2004, 11:08:34 AM »
Quote from: "Anonymous"
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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Anonymous

error when starting nfs service
« Reply #2 on: February 16, 2004, 01:26:11 PM »
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:

Offline byte

  • *
  • 2,183
  • +2/-0
Re: error when starting nfs service
« Reply #3 on: February 16, 2004, 02:43:15 PM »
Quote from: "Anonymous"
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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Anonymous

almost there!
« Reply #4 on: February 16, 2004, 10:23:17 PM »
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

Offline byte

  • *
  • 2,183
  • +2/-0
how to setup NFS on SME 5.6
« Reply #5 on: February 17, 2004, 10:07:21 AM »
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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

cdan_smith

how to setup NFS on SME 5.6
« Reply #6 on: February 18, 2004, 04:49:35 AM »
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?

RonM

how to setup NFS on SME 5.6
« Reply #7 on: February 18, 2004, 07:22:08 AM »
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

Anonymous

it works! thanks Byte!
« Reply #8 on: February 19, 2004, 04:57:36 AM »
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

Offline byte

  • *
  • 2,183
  • +2/-0
how to setup NFS on SME 5.6
« Reply #9 on: February 19, 2004, 09:47:04 AM »
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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Anonymous

nfs still starting before portmap
« Reply #10 on: February 19, 2004, 09:20:49 PM »
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

Anonymous

how to setup NFS on SME 5.6
« Reply #11 on: February 20, 2004, 12:33:45 AM »
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

Offline byte

  • *
  • 2,183
  • +2/-0
Re: nfs still starting before portmap
« Reply #12 on: February 20, 2004, 09:53:37 AM »
Quote from: "Anonymous"
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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Anonymous

it works portmap starts before NFS
« Reply #13 on: February 20, 2004, 02:26:39 PM »
Fantastic, thanks Byte.  by creating a link to S13portmap, I was able to start portmap before NFS.

Thanks for all your help!
Kris  :-)