[Bug 689622] New: Improvement: Add more configuration options to nfsserver init script & YaST
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c0 Summary: Improvement: Add more configuration options to nfsserver init script & YaST Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4 Situation: We are running a high-availability NFS server with Kerberos support in a two node cluster. The two nodes use a shared hostname to provide the NFS service to the clients. Problem: In order to run NFS with Kerberos support on a shared hostname (which is not the ACTUAL hostname of any machine), the init script of the NFS server (/etc/init.d/nfsserver) of the NFS client (/etc/init.d/nfs) need to be patched. In case there would be any update to the NFS server or client, these changes will be overwritten. Solution: Add configuration options to /etc/sysconfig/nfs that will be passed on to the NFS server and client init scripts. More details: I adding the following options in /etc/init.d/nfsserver: --------- 1) Make the location of the rpc_pipefs directory configurable (because we link /var/lib/nfs to a DRBD device, thus the standard path /var/lib/nfs/rpc_pipefs is not available on the DRBD slave, which causes the nfs client to malfunction) 2) Add shared hostname as an option to SVCGSSD 3) Add shared hostname as an option to NFSD --------- --- nfsserver 2011-04-25 17:36:21.000000000 +0200 +++ nfsserver.patched 2011-04-25 17:35:43.000000000 +0200 @@ -50,6 +50,12 @@ # with force-reload (in case signalling is not supported) are # considered a success. +# HA patches: +RPC_PIPEFS_DIR=/var/lib/rpc_pipefs +SVCGSSD_OPTIONS="-n" +NFSD_OPTIONS="-H <shared_hostname>" + SVCGSSD_BIN=/usr/sbin/rpc.svcgssd IDMAPD_BIN=/usr/sbin/rpc.idmapd NFSD_BIN=/usr/sbin/rpc.nfsd @@ -116,19 +122,19 @@ mount_rpc_pipefs() { # See if the file system is there yet - case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in + case `stat -c "%t" -f $RPC_PIPEFS_DIR` in *67596969*) return 0;; esac - mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs + mount -t rpc_pipefs rpc_pipefs $RPC_PIPEFS_DIR } umount_rpc_pipefs() { - case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in + case `stat -c "%t" -f $RPC_PIPEFS_DIR` in *67596969*) - umount /var/lib/nfs/rpc_pipefs;; + umount $RPC_PIPEFS_DIR;; esac } @@ -138,7 +144,7 @@ done mount_rpc_pipefs - startproc $SVCGSSD_BIN + startproc $SVCGSSD_BIN $SVCGSSD_OPTIONS return $? } @@ -226,7 +232,7 @@ fi # rpc.nfsd echo -n " nfsd" - $NFSD_BIN $PARAMS $VERSION_PARAMS || { + $NFSD_BIN $NFSD_OPTIONS $PARAMS $VERSION_PARAMS || { rc_status -v rc_exit } -------- I would like to variables $RPC_PIPEFS_DIR, $SVCGSSD_OPTIONS and $NFSD_OPTIONS to be added to /etc/sysconfig/nfs such that their values are kept even with an update of the nfskernel server. For statd and sm_notify there exist the corresponding options variables $STATD_OPTIONS and $SM_NOTIFY_OPTIONS already, which are configurable via YaST! The addition of the $RPC_PIPEFS_DIR variable also is included in the init script of the nfs client: -------- --- nfs 2011-04-25 17:43:08.000000000 +0200 +++ nfs.patched 2011-04-25 17:42:52.000000000 +0200 @@ -24,6 +24,9 @@ . /etc/rc.status . /etc/sysconfig/nfs +# HA patches: +RPC_PIPEFS_DIR=/var/lib/rpc_pipefs + IDMAPD_BIN=/usr/sbin/rpc.idmapd GSSD_BIN=/usr/sbin/rpc.gssd STATD_BIN=/usr/sbin/rpc.statd @@ -115,18 +118,18 @@ mount_rpc_pipefs() { # See if the file system is there yet - case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in + case `stat -c "%t" -f $RPC_PIPEFS_DIR` in *67596969*) return 0;; esac - mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs + mount -t rpc_pipefs rpc_pipefs $RPC_PIPEFS_DIR } umount_rpc_pipefs() { # See if the file system is there - case `stat -c "%t" -f /var/lib/nfs/rpc_pipefs` in + case `stat -c "%t" -f $RPC_PIPEFS_DIR` in *67596969*) - umount /var/lib/nfs/rpc_pipefs + umount $RPC_PIPEFS_DIR esac } -------- Also, porting these changes to SLES11SP1 (or SP2) would be great, as we are actually using an HA-NFS server with SLES11.1. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tgoettlicher@novell.com AssignedTo|yast2-maintainers@suse.de |nfbrown@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c1 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Neil Brown <nfbrown@novell.com> 2011-06-23 05:55:24 UTC --- I have submitted an update for openSUSE:Factory with these enhancement so it will end up in openSUSE 12 and later. I might be able to get it into SP2 without much fuss, but to get it into SP1 I think you would need to make a more formal request - possibly raise an 'L3' request (though I'm not completely familiar with all those procedures). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-06-23 08:00:35 CEST --- This is an autogenerated message for OBS integration: This bug (689622) was mentioned in https://build.opensuse.org/request/show/74368 Factory / nfs-utils -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c4 --- Comment #4 from Moussa Sagna <moussa.sagna@novell.com> 2011-07-12 16:10:14 UTC --- Neil, Leonardo, do you have any comments for me ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c8 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #8 from Neil Brown <nfbrown@novell.com> 2011-07-14 00:42:02 UTC --- As this has been submitted to Factory and SLES11-SP2, and as any other product will require a separate L3 request (one of which is in-train) I am closing this as FIXED. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:planned:update -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c9 --- Comment #9 from Neil Brown <nfbrown@suse.com> 2011-10-10 08:43:40 UTC --- *** Bug 705468 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=705468 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=689622 https://bugzilla.novell.com/show_bug.cgi?id=689622#c10 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:planned:update | | |maint:released:sle11-sp1:45 | |358 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> 2012-03-16 08:32:18 UTC --- Update released for: nfs-client, nfs-doc, nfs-kernel-server, nfs-utils, nfs-utils-debuginfo, nfs-utils-debugsource Products: SLE-DEBUGINFO 11-SP1 (i386, x86_64) SLE-DESKTOP 11-SP1 (i386, x86_64) SLE-SERVER 11-SP1 (i386, x86_64) SLE-SERVER 11-SP1-TERADATA (x86_64) SLES4VMWARE 11-SP1 (i386, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com