Hmm. I think you're overcomplicating it a bit. Instead of tweaking /etc/sysconfig/rpcbind, I did this:<br><br>Edit /etc/init.d/portmap<br>start() {<br>        hostname nfsserver.mydomain<br>        echo -n $"Starting $prog: "<br>
        daemon portmap $PMAP_ARGS<br>        RETVAL=$?<br>        echo<br>        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/portmap<br>        return $RETVAL<br>}<br><br>Start order is : IP, portmap, rpcgssd, rpcidmapd, nfs. My goal was to get the hostname changed to whateve the service principal in Kerberos was named to before the Kerberized daemons start up. <br>
<br>You can also play by manually changing the hostname on one of the nodes and firing up the service just to see that everything works.<br><br><div class="gmail_quote">On Thu, Apr 7, 2011 at 4:16 PM, Daniel R. Gore <span dir="ltr"><<a href="mailto:danielgore@yaktech.com">danielgore@yaktech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Still could not get it to work.<br>
<br>
I tried changing the host name that rpcbind binds to during start up<br>
with arguments in the /etc/sysconfig/rpcbind file.<br>
<br>
RPCBIND_ARGS="hostname fserv.mydomain"<br>
<br>
rpcbind started correctly with not errors.  I then restarted the other<br>
rpc daemons and nfs.<br>
<br>
Got the same error: rpc.svcgssd indicates "wrong principal"<br>
<br>
I know the ip is working correctly because I can ssh into using the file<br>
server name (fserv.mydomain).<br>
<br>
Looking for more ideas!<br>
<br>
Thanks.<br>
<br>
Dan<br>
<div><div></div><div class="h5"><br>
On Thu, 2011-04-07 at 14:58 -0400, <a href="mailto:danielgore@yaktech.com">danielgore@yaktech.com</a> wrote:<br>
> Ian,<br>
><br>
> You can find it here;<br>
><br>
><br>
> <a href="http://sourceware.org/cluster/doc/nfscookbook.pdf" target="_blank">http://sourceware.org/cluster/doc/nfscookbook.pdf</a><br>
><br>
> > I had written up a rather large set of build documentation for many common<br>
> > clustered services. NFS4, Samba, Postfix/Cyrus, Squid and some other<br>
> > stuff.<br>
> > But those docs stayed with my employer, so.... I don't think I've seen<br>
> > this<br>
> > cookbook, is it some wiki-type thing where new docs can be contributed?<br>
> ><br>
> > On Thu, Apr 7, 2011 at 5:08 AM, Daniel R. Gore<br>
> > <<a href="mailto:danielgore@yaktech.com">danielgore@yaktech.com</a>>wrote:<br>
> ><br>
> >> A better solution for NFSv4 in a cluster is really required.<br>
> >><br>
> >><br>
> >> A better cookbook with more real life likely scenarios for clustering<br>
> >> solutions would be really helpful.  How many people actually setup the<br>
> >> complex three layered solutions depicted, as compared to people setting<br>
> >> up simple two/three node servers to for authorization, authentication,<br>
> >> file and license serving.  It appears that the small business applicable<br>
> >> system is completely ignored.<br>
> >><br>
> >><br>
> >> On Thu, 2011-04-07 at 11:44 +0100, Colin Simpson wrote:<br>
> >> > That's interesting about making the portmapper dependant on the IP,<br>
> >> was<br>
> >> > this for the same reason I'm seeing just now. I used the method from<br>
> >> NFS<br>
> >> > cookbook where I pseudo load balancing by distributing my NFS exports<br>
> >> > across my nodes. Sadly the RHEL 6 portmapper replacement (rpcbind)<br>
> >> > replies on the node IP and not the service IP, and this breaks NFSv3<br>
> >> > mounts from RHEL5 clients with iptables stateful firewalls.<br>
> >> ><br>
> >> > I opened a bug on this one and have a call open with RH (via Dell) on<br>
> >> > this:<br>
> >> > <a href="https://bugzilla.redhat.com/show_bug.cgi?id=689589" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=689589</a><br>
> >> ><br>
> >> > But I too would like a good clean method of doing kerberized NFSv4 on<br>
> >> a<br>
> >> > RHEL6 cluster. I thought NFSv4 being so central to RHEL6 this would be<br>
> >> > easy on a RHEL6 cluster (without using XEN)? Can the cookbook be<br>
> >> > updated?<br>
> >> ><br>
> >> > Which brings up another point. The RHEL cluster documentation is good,<br>
> >> > however it doesn't really help you implement a working cluster too<br>
> >> > easily (beyond the apache example), it's a bit reference orientated. I<br>
> >> > found myself googling around for examples of different RA types. Is<br>
> >> > there a more hands on set of docs around (or book)? It could almost do<br>
> >> > with a cookbook for every RA!<br>
> >> ><br>
> >> > Thanks<br>
> >> ><br>
> >> > Colin<br>
> >> ><br>
> >> > On Thu, 2011-04-07 at 02:52 +0100, Ian Hayes wrote:<br>
> >> > > Shouldnt have to recompile rpc.gssd. On failover I migrated the ip<br>
> >> > > address first, made portmapper a depend on the ip, rpc.gssd depend<br>
> >> on<br>
> >> > > portmap and nfsd depend on rpc. As for the hostname, I went with the<br>
> >> > > inelegant solution of putting a 'hostname' command in the start<br>
> >> > > functions of the portmapper script since that fires first in my<br>
> >> > > config.<br>
> >> > ><br>
> >> > > > On Apr 6, 2011 6:06 PM, "Daniel R. Gore" <<a href="mailto:danielgore@yaktech.com">danielgore@yaktech.com</a>><br>
> >> > > > wrote:<br>
> >> > > ><br>
> >> > > > I also found this thread, after many searches.<br>
> >> > > > <a href="http://linux-nfs.org/pipermail/nfsv4/2009-April/010583.html" target="_blank">http://linux-nfs.org/pipermail/nfsv4/2009-April/010583.html</a><br>
> >> > > ><br>
> >> > > > As I read through it, there appears to be a patch for rpc.gssd<br>
> >> which<br>
> >> > > > allows for the daemon to be started and associated with multiple<br>
> >> > > > hosts.<br>
> >> > > > I do not want to compile rpc.gssd and it appears the patch is from<br>
> >> > > > over<br>
> >> > > > two years ago.  I would hope that RHEL6 would have rpc.gssd<br>
> >> patched<br>
> >> > > > to<br>
> >> > > > meet this requirement, but no documentation appear to exist for<br>
> >> how<br>
> >> > > > to<br>
> >> > > > use it.<br>
> >> > > ><br>
> >> > > ><br>
> >> > > ><br>
> >> > > ><br>
> >> > > ><br>
> >> > > > On Wed, 2011-04-06 at 20:23 -0400, Daniel R. Gore wrote:<br>
> >> > > > > Ian,<br>
> >> > > > ><br>
> >> > > > > Thanks for the info.<br>
> >> > > > ><br>
> >> > > > >...<br>
> >> > > ><br>
> >> > ><br>
> >> > > plain text document attachment (ATT114553.txt)<br>
> >> > > --<br>
> >> > > Linux-cluster mailing list<br>
> >> > > <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> >> > > <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
> >> ><br>
> >> > This email and any files transmitted with it are confidential and are<br>
> >> intended solely for the use of the individual or entity to whom they are<br>
> >> addressed.  If you are not the original recipient or the person<br>
> >> responsible<br>
> >> for delivering the email to the intended recipient, be advised that you<br>
> >> have<br>
> >> received this email in error, and that any use, dissemination,<br>
> >> forwarding,<br>
> >> printing, or copying of this email is strictly prohibited. If you<br>
> >> received<br>
> >> this email in error, please immediately notify the sender and delete the<br>
> >> original.<br>
> >> ><br>
> >> ><br>
> >> ><br>
> >> > --<br>
> >> > Linux-cluster mailing list<br>
> >> > <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> >> > <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
> >> ><br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> This message has been scanned for viruses and<br>
> >> dangerous content by MailScanner, and is<br>
> >> believed to be clean.<br>
> >><br>
> >> --<br>
> >> Linux-cluster mailing list<br>
> >> <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> >> <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
> >><br>
> ><br>
> > --<br>
> > This message has been scanned for viruses and<br>
> > dangerous content by MailScanner, and is<br>
> > believed to be clean.<br>
> ><br>
> > --<br>
> > Linux-cluster mailing list<br>
> > <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> > <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
><br>
><br>
><br>
<br>
<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
</div></div></blockquote></div><br>