Skip to contentSkip to conversation

Help needed

DISCUSSION Benjamin Jeeves 3 participants 6 messages May 4, 2005 – May 5, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 29 lines · 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)

#mount 192.168.1.6:/mad-backup /backup

Quoted 9 lines

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

Quoted 10 lines

-------------------------------------------------------
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

Signature · 18 lines
/***************************************************
 *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
#2 lore raw

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

Quoted 40 lines · Neil Horman
Quoted 33 lines · 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)

#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

Quoted 5 lines

please help me?

Thank you

Benjamin Jeeves

Quoted 19 lines

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

Quoted 8 lines

-------------------------------------------------------
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

#3 lore raw
Quoted 7 lines · Benjamin Jeeves

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

Quoted 74 lines

Thank you

Benjamin Jeeves

Quoted 40 lines · Neil Horman
Quoted 33 lines · 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)

#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

Quoted 5 lines

please help me?

Thank you

Benjamin Jeeves

Quoted 19 lines

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

Quoted 8 lines

-------------------------------------------------------
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

Signature · 18 lines
/***************************************************
 *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
#4 lore raw
In reply to Benjamin Jeeves

on den 04.05.2005 Klokka 12:06 (+0100) skreiv Benjamin Jeeves:

Quoted 18 lines

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.

Quoted 8 lines

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

#5 lore raw

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

Quoted 43 lines · Trond Myklebust

on den 04.05.2005 Klokka 12:06 (+0100) skreiv Benjamin Jeeves:

Quoted 18 lines

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.

Quoted 8 lines

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

Quoted 8 lines

-------------------------------------------------------
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