Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134506 - [net-fs/nfs-utils] story between NFS init script and /var
Summary: [net-fs/nfs-utils] story between NFS init script and /var
Status: RESOLVED DUPLICATE of bug 112413
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-27 04:27 UTC by Fab
Modified: 2006-05-27 05:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
nfs init script and symlinks (nfs-init-and-symlinks.patch,1.14 KB, patch)
2006-05-27 04:29 UTC, Fab
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2006-05-27 04:27:51 UTC
Hi,

I reorganised my system, and now, /var is a symlink to /temporaire/var

Here is the output when I try to stop or restart the NFS server :

===============================================
 # /etc/init.d/nfs restart
 * Stopping NFS mountd ...                                                               [ ok ]
 * Stopping NFS daemon ...                                                               [ ok ]
 * Stopping NFS statd ...                                                                [ ok ]
 * Mounting RPC pipefs ...
mount: rpc_pipefs is already mounted or /var/lib/nfs/rpc_pipefs is busy
mount: according to mtab rpc_pipefs is mounted on /temporaire/var/lib/nfs/rpc_pipefs     [ !! ]
 * Starting NFS statd ...                                                                [ ok ]
 * Exporting NFS directories ...                                                         [ ok ]
 * Starting NFS daemon ...                                                               [ ok ]
 * Starting NFS mountd ...                                                               [ ok ]
===============================================

So, here is a little fix for the /etc/init.d/nfs init script.

$ eix nfs-utils
* net-fs/nfs-utils
     Available versions:  1.0.6-r6 ~1.0.7-r2
     Installed:           1.0.6-r6
     Homepage:            http://nfs.sourceforge.net/
     Description:         NFS client and server daemons


Thanks.
Comment 1 Fab 2006-05-27 04:29:58 UTC
Created attachment 87631 [details, diff]
nfs init script and symlinks

/etc/init.d/nfs script with symlink /var
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-27 04:34:42 UTC
We've already told you once to not do such things (Bug 134352) - it's a wrong solution. Use bind -o mount...
Comment 3 Fab 2006-05-27 05:42:22 UTC
And I already told you once that mount -o bind is not possible.

If you don't want to support this solution, write it in red in the handbook (with explanations), and in this case, I'll close this bug myself, but please, don't tell me "wrong solution" without arguments.

I don't see why /var could'nt be a symlink.
So explain me why it's a wrong solution. Is this security related ?

Thanks.

PS : For now, everything works fine, except this NFS bug.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-27 05:49:14 UTC
(In reply to comment #3)
> And I already told you once that mount -o bind is not possible.

Of course it *is* possible. Please, read the manual, you can have as many bind-mounts to one partition as you need.

Also read Bug 112413, Comment #2 for why symlinking is a stupid idea.


*** This bug has been marked as a duplicate of 112413 ***
Comment 5 Fab 2006-05-27 05:58:39 UTC
Thanks.