2005-05-04 11:08:47

by Benjamin Jeeves

[permalink] [raw]
Subject: Help needed

Hi all

This is the first time posting to this list so please understand if this
quistion has been posted before.

I have one server with 4 ethernet card in all running on 192.168.1.* network
what i want to do is run nfs on.

eth2 192.168.1.6 running nfs
eth3 192.168.1.7 running nfs

eth2 would export samething like this /backup then /store.

eth3 would export samething like this /folder3 /folder4

but at this time all I can do is make it work on all of the ethernet cards and
only work on the first ethernet card eth0 for all requests.

I have search gooogle and man pages but can not find anything or would I need
to do load balancing for this to work?

I have tryed this in the /etc/exports file:
192.168.1.6:/backup 192.168.1.12(rw,root_squash,sync)
192.168.1.6:/store 192.168.1.12(rw,root_squash,sync)
192.168.1.7:/folder3 192.168.1.14(rw,root_squash,sync)
192.168.1.7:/folder4 192.168.1.14(rw,root_squash,sync)

#mount 192.168.1.6:/mad-backup /backup

But when i try to mount it on the client I get a this msg
mount: 192.168.1.6:/backup failed, reason given by server: Permission denied

please help me?

Thank you

Benjamin Jeeves



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2005-05-04 12:26:05

by Neil Horman

[permalink] [raw]
Subject: Re: Help needed

On Wed, May 04, 2005 at 12:06:20PM +0100, Benjamin Jeeves wrote:
> Hi all
>
> This is the first time posting to this list so please understand if this
> quistion has been posted before.
>
> I have one server with 4 ethernet card in all running on 192.168.1.* network
> what i want to do is run nfs on.
>
> eth2 192.168.1.6 running nfs
> eth3 192.168.1.7 running nfs
>
> eth2 would export samething like this /backup then /store.
>
> eth3 would export samething like this /folder3 /folder4
>
> but at this time all I can do is make it work on all of the ethernet cards and
> only work on the first ethernet card eth0 for all requests.
>
> I have search gooogle and man pages but can not find anything or would I need
> to do load balancing for this to work?
>
> I have tryed this in the /etc/exports file:
> 192.168.1.6:/backup 192.168.1.12(rw,root_squash,sync)
> 192.168.1.6:/store 192.168.1.12(rw,root_squash,sync)
> 192.168.1.7:/folder3 192.168.1.14(rw,root_squash,sync)
> 192.168.1.7:/folder4 192.168.1.14(rw,root_squash,sync)
>
> #mount 192.168.1.6:/mad-backup /backup
>
> But when i try to mount it on the client I get a this msg
> mount: 192.168.1.6:/backup failed, reason given by server: Permission denied
>
> please help me?
>
> Thank you
>
> Benjamin Jeeves
>
I believe that your export file is written incorrectly. The export file lists
directories to export, you can't use it to specify which interfaces on your
server will serve those exports. The NFS service is probably reading your
exports file and interpreting 192.168.1.[6|7] as part of the path to export, so
when you have a client try to mount 192.168.1.6:/backup, it fails, because
/backup isn't actually exported, 192.168.1.6:/backup is. Remove the leading ip
addresses from your exports file and restart the service, and your mount will
likely start to work just fine.
Regards
Neil

>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs

--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*[email protected]
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2005-05-04 12:35:28

by Trond Myklebust

[permalink] [raw]
Subject: Re: Help needed

on den 04.05.2005 Klokka 12:06 (+0100) skreiv Benjamin Jeeves:
> Hi all
>
> This is the first time posting to this list so please understand if this
> quistion has been posted before.
>
> I have one server with 4 ethernet card in all running on 192.168.1.* network
> what i want to do is run nfs on.
>
> eth2 192.168.1.6 running nfs
> eth3 192.168.1.7 running nfs
>
> eth2 would export samething like this /backup then /store.
>
> eth3 would export samething like this /folder3 /folder4
>
> but at this time all I can do is make it work on all of the ethernet cards and
> only work on the first ethernet card eth0 for all requests.
>
> I have search gooogle and man pages but can not find anything or would I need
> to do load balancing for this to work?
>
> I have tryed this in the /etc/exports file:
> 192.168.1.6:/backup 192.168.1.12(rw,root_squash,sync)
> 192.168.1.6:/store 192.168.1.12(rw,root_squash,sync)
> 192.168.1.7:/folder3 192.168.1.14(rw,root_squash,sync)
> 192.168.1.7:/folder4 192.168.1.14(rw,root_squash,sync)

That sort of syntax is definitely not supported. NFS shouldn't have to
know or care about how you want to organise your network.

If you want to enforce no NFS traffic on eth0, then how about using
iptables to block traffic to port 2049 on that interface?

You might then add static routes to 192.168.1.12 and 192.168.1.14 and/or
set up iptables rules on the server if you want to enforce which
interface those machines are allowed to talk to.

Cheers,
Trond



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2005-05-04 12:37:32

by Benjamin Jeeves

[permalink] [raw]
Subject: Re: Help needed

Hi

So what you are saying is that nfs server will not bind to one or more specify
interfaces which would mean that you would have to do load balancing if you
wanted it to work over two ethernet card YES/NO? if Yes then where is the
best place to start?

Thank you

Benjamin Jeeves

On Wednesday 04 May 2005 13:26, Neil Horman wrote:
> On Wed, May 04, 2005 at 12:06:20PM +0100, Benjamin Jeeves wrote:
> > Hi all
> >
> > This is the first time posting to this list so please understand if this
> > quistion has been posted before.
> >
> > I have one server with 4 ethernet card in all running on 192.168.1.*
> > network what i want to do is run nfs on.
> >
> > eth2 192.168.1.6 running nfs
> > eth3 192.168.1.7 running nfs
> >
> > eth2 would export samething like this /backup then /store.
> >
> > eth3 would export samething like this /folder3 /folder4
> >
> > but at this time all I can do is make it work on all of the ethernet
> > cards and only work on the first ethernet card eth0 for all requests.
> >
> > I have search gooogle and man pages but can not find anything or would I
> > need to do load balancing for this to work?
> >
> > I have tryed this in the /etc/exports file:
> > 192.168.1.6:/backup 192.168.1.12(rw,root_squash,sync)
> > 192.168.1.6:/store 192.168.1.12(rw,root_squash,sync)
> > 192.168.1.7:/folder3 192.168.1.14(rw,root_squash,sync)
> > 192.168.1.7:/folder4 192.168.1.14(rw,root_squash,sync)
> >
> > #mount 192.168.1.6:/mad-backup /backup
> >
> > But when i try to mount it on the client I get a this msg
> > mount: 192.168.1.6:/backup failed, reason given by server: Permission
> > denied
> >
> > please help me?
> >
> > Thank you
> >
> > Benjamin Jeeves
>
> I believe that your export file is written incorrectly. The export file
> lists directories to export, you can't use it to specify which interfaces
> on your server will serve those exports. The NFS service is probably
> reading your exports file and interpreting 192.168.1.[6|7] as part of the
> path to export, so when you have a client try to mount 192.168.1.6:/backup,
> it fails, because /backup isn't actually exported, 192.168.1.6:/backup is.
> Remove the leading ip addresses from your exports file and restart the
> service, and your mount will likely start to work just fine.
> Regards
> Neil
>
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: NEC IT Guy Games.
> > Get your fingers limbered up and give it your best shot. 4 great events,
> > 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> > _______________________________________________
> > NFS maillist - [email protected]
> > https://lists.sourceforge.net/lists/listinfo/nfs


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2005-05-04 12:42:02

by Benjamin Jeeves

[permalink] [raw]
Subject: Re: Help needed

Hi

Thank you I have thought of that option but was not sure if i should go down
that route but it does look like it now?

Thank you

On Wednesday 04 May 2005 13:35, Trond Myklebust wrote:
> on den 04.05.2005 Klokka 12:06 (+0100) skreiv Benjamin Jeeves:
> > Hi all
> >
> > This is the first time posting to this list so please understand if this
> > quistion has been posted before.
> >
> > I have one server with 4 ethernet card in all running on 192.168.1.*
> > network what i want to do is run nfs on.
> >
> > eth2 192.168.1.6 running nfs
> > eth3 192.168.1.7 running nfs
> >
> > eth2 would export samething like this /backup then /store.
> >
> > eth3 would export samething like this /folder3 /folder4
> >
> > but at this time all I can do is make it work on all of the ethernet
> > cards and only work on the first ethernet card eth0 for all requests.
> >
> > I have search gooogle and man pages but can not find anything or would I
> > need to do load balancing for this to work?
> >
> > I have tryed this in the /etc/exports file:
> > 192.168.1.6:/backup 192.168.1.12(rw,root_squash,sync)
> > 192.168.1.6:/store 192.168.1.12(rw,root_squash,sync)
> > 192.168.1.7:/folder3 192.168.1.14(rw,root_squash,sync)
> > 192.168.1.7:/folder4 192.168.1.14(rw,root_squash,sync)
>
> That sort of syntax is definitely not supported. NFS shouldn't have to
> know or care about how you want to organise your network.
>
> If you want to enforce no NFS traffic on eth0, then how about using
> iptables to block traffic to port 2049 on that interface?
>
> You might then add static routes to 192.168.1.12 and 192.168.1.14 and/or
> set up iptables rules on the server if you want to enforce which
> interface those machines are allowed to talk to.
>
> Cheers,
> Trond
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2005-05-05 13:18:16

by Neil Horman

[permalink] [raw]
Subject: Re: Help needed

On Wed, May 04, 2005 at 01:35:04PM +0100, Benjamin Jeeves wrote:
> Hi
>
> So what you are saying is that nfs server will not bind to one or more specify
> interfaces which would mean that you would have to do load balancing if you
> wanted it to work over two ethernet card YES/NO? if Yes then where is the
> best place to start?
>
If you want to do load balancing for your network interfaces, I suggest that you
use the bonding driver. It aggregates physical interfaces into one big
interface, and allows you to set all sorts of load balancing policies.
HTH
Neil


> Thank you
>
> Benjamin Jeeves
>
> On Wednesday 04 May 2005 13:26, Neil Horman wrote:
> > On Wed, May 04, 2005 at 12:06:20PM +0100, Benjamin Jeeves wrote:
> > > Hi all
> > >
> > > This is the first time posting to this list so please understand if this
> > > quistion has been posted before.
> > >
> > > I have one server with 4 ethernet card in all running on 192.168.1.*
> > > network what i want to do is run nfs on.
> > >
> > > eth2 192.168.1.6 running nfs
> > > eth3 192.168.1.7 running nfs
> > >
> > > eth2 would export samething like this /backup then /store.
> > >
> > > eth3 would export samething like this /folder3 /folder4
> > >
> > > but at this time all I can do is make it work on all of the ethernet
> > > cards and only work on the first ethernet card eth0 for all requests.
> > >
> > > I have search gooogle and man pages but can not find anything or would I
> > > need to do load balancing for this to work?
> > >
> > > I have tryed this in the /etc/exports file:
> > > 192.168.1.6:/backup 192.168.1.12(rw,root_squash,sync)
> > > 192.168.1.6:/store 192.168.1.12(rw,root_squash,sync)
> > > 192.168.1.7:/folder3 192.168.1.14(rw,root_squash,sync)
> > > 192.168.1.7:/folder4 192.168.1.14(rw,root_squash,sync)
> > >
> > > #mount 192.168.1.6:/mad-backup /backup
> > >
> > > But when i try to mount it on the client I get a this msg
> > > mount: 192.168.1.6:/backup failed, reason given by server: Permission
> > > denied
> > >
> > > please help me?
> > >
> > > Thank you
> > >
> > > Benjamin Jeeves
> >
> > I believe that your export file is written incorrectly. The export file
> > lists directories to export, you can't use it to specify which interfaces
> > on your server will serve those exports. The NFS service is probably
> > reading your exports file and interpreting 192.168.1.[6|7] as part of the
> > path to export, so when you have a client try to mount 192.168.1.6:/backup,
> > it fails, because /backup isn't actually exported, 192.168.1.6:/backup is.
> > Remove the leading ip addresses from your exports file and restart the
> > service, and your mount will likely start to work just fine.
> > Regards
> > Neil
> >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: NEC IT Guy Games.
> > > Get your fingers limbered up and give it your best shot. 4 great events,
> > > 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> > > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> > > _______________________________________________
> > > NFS maillist - [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/nfs
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs

--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*[email protected]
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs