Skip to contentSkip to conversation

kernel+userspace based nfsd running in parallel on linux?

DISCUSSION [email protected] 4 participants 5 messages Dec 16, 2006 – Dec 18, 2006

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

Hello !

for a special scenario, i´m thinking about running the classic userspace nfsd in parallel with the kernel based.

i think this _could_ be possible by binding the userspace one to the primary interface (eth0, ip 1.2.3.4) and the kernel based one to a virtual interface (eth0:1, ip 1.2.3.5)

i have done similar with other daemons, providing services on the same ports, but on different interfaces - think of apache ip-based virtual hosting which serves www.domaina.com on 1.2.3.4:80 and www.domainb.com on 1.2.3.5:80

since i`m unsure if this would work, can you experts give a comment if this should at least be possible in theory ?

if there isn´t a killer argument against this (does not work by design because...), i would like to try to elaborate to make this work. if this fails because there is no way to specify a dedicated interface to listen on - maybe this could be fixed with some few modifications to the code...

regards
roland

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

Hi Roland,

Quoted 4 lines · On Saturday 16 December 2006 16:20, [email protected] wrote:

Hello !

for a special scenario, i´m thinking about running the classic userspace nfsd in parallel with the kernel based.

we are are already doing this for a long time.

Quoted 4 lines

i think this _could_ be possible by binding the userspace one to the primary interface (eth0, ip 1.2.3.4) and the kernel based one to a virtual interface (eth0:1, ip 1.2.3.5)

Hmm, I thing this is presently not possible. I might be wrong, but I think =

neither knfsd nor any userspace nfs daemon presently supports binding to =

selected interfaces. Thinks they alsways bind to all interfaces. We doing it by using different ports for the daemons, knfsd is running as =

usual on 2049 and unfsd (unfs3) is running on another port. One also needs =

to tell one of the daemon not to register to the portmapper, unfs3 also =

supports that.

[...]

Quoted 1 line

if there isn´t a killer argument against this (does not work by desi=

gn

Quoted 2 lines

because...), i would like to try to elaborate to make this work. if this fails because there is no way to specify a dedicated interface to listen =

on

Quoted 1 line

- maybe this could be fixed with some few modifications to the code...

Any argument against simply using different ports?

Cheers,
Bernd

-- =

Bernd Schubert
PCI / Theoretische Chemie
Universit=E4t Heidelberg
INF 229
69120 Heidelberg

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 7 lines · Bernd Schubert

Hmm, I thing this is presently not possible. I might be wrong, but I think neither knfsd nor any userspace nfs daemon presently supports binding to selected interfaces. Thinks they alsways bind to all interfaces. We doing it by using different ports for the daemons, knfsd is running as usual on 2049 and unfsd (unfs3) is running on another port. One also needs to tell one of the daemon not to register to the portmapper, unfs3 also supports that.

The big problem will be mountd. There's only one portmapper, and you can register only one mountd - and the file handles given out by unfs mountd don't work with the kernel nfsd and vice versa.

Oh, and what about locking? :)

Olaf

Signature · 11 lines
Olaf Kirch   |  --- o --- Nous sommes du soleil we love when we play
[email protected] |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#3 lore raw
Quoted 6 lines · Olaf Kirch
Quoted 2 lines

to tell one of the daemon not to register to the portmapper, unfs3 also supports that.

The big problem will be mountd. There's only one portmapper, and you can register only one mountd - and the file handles given out by unfs mountd don't work with the kernel nfsd and vice versa.

This is no problem, you can run both the nfs and mount service without the portmapper. They can even run on the same port. So, typically you run unfs3 with:

unfsd -n 4711 -m 4711 -p

...and then mount with:

mount -t nfs -o mountvers=3,mountport=4711,nfsvers=3,port=4711,tcp server:/path /local/path

Regards,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://www.cendio.se
Teknikringen 3
583 30 Linköping Phone: +46-13-21 46 00

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#4 lore raw
Quoted 1 line · On Sun, Dec 17, 2006 at 11:25:45AM +0100, Peter =C5strand wrote:

This is no problem, you can run both the nfs and mount service without th=

e =

Quoted 1 line

portmapper. They can even run on the same port. So, typically you run =

Yeah, I know. But is that what he was asking for?

Olaf
-- =

Olaf Kirch | --- o --- Nous sommes du soleil we love when we play
[email protected] | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs