<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I think this is something we see. The workaround has basically
been to disabled clustering (lvm wise) when doing this kind of change, and to
handle it manually:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ie:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>vgchange –c n <vg> to disable the cluster flag<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>lvmconf –disable-cluster on all nodes<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>rescan/discover lun, whatever, on all nodes<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>lvcreate on one node<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>lvchange –refresh on every node<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>lvchange –a y on one node<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>gfs_grow on one host (you can run this on the other to confirm,
it should say it can’t grow anymore)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>When done, I’ve been putting things back how they were
with vgchange –c y, lvmconf –disable-cluster, though I think if I
you just left it unclustered it’d be fine… what you won’t
want to do is leave the vg clustered, but not –enable-cluster… if
you do this when you reboot the clustered volume groups won’t be
activated.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hope this helps… if anyone knows of a definitive fix for
this I’d like to hear about it, we haven’t pushed for it since it
isn’t too big of a hassle and we aren’t constantly adding new
volumes, but it is a pain.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Brian Fair, UNIX Administrator, CitiStreet<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>904.791.2662<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> linux-cluster-bounces@redhat.com
[mailto:linux-cluster-bounces@redhat.com] <b>On Behalf Of </b>Randy Brown<br>
<b>Sent:</b> Tuesday, November 27, 2007 12:23 PM<br>
<b>To:</b> linux clustering<br>
<b>Subject:</b> [Linux-cluster] Adding new file system caused problems<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I am running a two node cluster using Centos 5 that is
basically being used as a NAS head for our iscsi based storage.  Here are
the related rpms and their versions I am using:<br>
kmod-gfs-0.1.16-5.2.6.18_8.1.14.el5<br>
kmod-gfs-0.1.16-6.2.6.18_8.1.15.el5<br>
system-config-lvm-1.0.22-1.0.el5<br>
cman-2.0.64-1.0.1.el5<br>
rgmanager-2.0.24-1.el5.centos<br>
gfs-utils-0.1.11-3.el5<br>
lvm2-2.02.16-3.el5<br>
lvm2-cluster-2.02.16-3.el5<br>
<br>
This morning I created a 100GB volume on our storage unit and proceeded to make
it available to the cluster so it could be served via NFS to a client on our
network.  I used pvcreate and vgcreate as I always do and created a new
volume group.  When I went to create the logical volume I saw this
message:<br>
Error locking on node nfs1-cluster.nws.noaa.gov: Volume group for uuid not
found: 9crOQoM3V0fcuZ1E2163k9vdRLK7njfvnIIMTLPGreuvGmdB1aqx6KR4t7mmDRDs<br>
<br>
I figured I had done something wrong and tried to remove the Lvol and
couldn't.  Lvdisplay showed that the logvol had been created and vgdisplay
looked good with the exception of the volume not being activated.  So, I
ran vgchange -aly <Volumegroupname> which didn't return any error, but
also did not activate the volume.  I then rebooted the node which made
everything OK.  I could now see the VG and lvol, both were active and I
could now create the gfs file system on the lvol.  The file system
mounted  and I thought I was in the clear.<br>
<br>
However, node #2 wasn't picking this new filesystem up at all.  I stopped
the cluster services on this node which all stopped cleanly and then tried to
restart them.  cman started fine but clvmd didn't.  It hung on the
vgscan.   Even after a reboot of node #2, clvmd would not start and
would hang on the vgscan.  It wasn't until I shut down both nodes
completely and started cluster that both nodes could see the new filesystem.<br>
<br>
I'm sure it's my own ignorance that's making this more difficult than it needs
to be.  Am I missing a step?  Is more information required to
help?  Any assistance in figuring out what happened here would be greatly
appreciated.  I know I going to need to do similar tasks in the future and
obviously can't afford to bring everything down in order for the cluster to see
a new filesystem.<br>
<br>
Thank you,<br>
<br>
Randy<br>
<br>
P.S.  Here is my cluster.conf:<br>
[root@nfs2-cluster ~]# cat /etc/cluster/cluster.conf<br>
<?xml version="1.0"?><br>
<cluster alias="ohd_cluster" config_version="114"
name="ohd_cluster"><br>
        <fence_daemon
post_fail_delay="0" post_join_delay="60"/><br>
        <clusternodes><br>
               
<clusternode name="nfs1-cluster.nws.noaa.gov" nodeid="1"
votes="1"><br>
                       
<fence><br>
                               
<method name="1"><br>
                                       
<device name="nfspower" port="8"
switch="1"/><br>
                               
</method><br>
                       
</fence><br>
               
</clusternode><br>
               
<clusternode name="nfs2-cluster.nws.noaa.gov" nodeid="2"
votes="1"><br>
                       
<fence><br>
                               
<method name="1"><br>
                                       
<device name="nfspower" port="7"
switch="1"/><br>
                               
</method><br>
                       
</fence><br>
               
</clusternode><br>
        </clusternodes><br>
        <cman
expected_votes="1" two_node="1"/><br>
        <rm><br>
               
<failoverdomains><br>
                       
<failoverdomain name="nfs-failover" ordered="0"
restricted="1"><br>
                               
<failoverdomainnode name="nfs1-cluster.nws.noaa.gov" priority="1"/><br>
                               
<failoverdomainnode name="nfs2-cluster.nws.noaa.gov" priority="1"/><br>
                       
</failoverdomain><br>
               
</failoverdomains><br>
               
<resources><br>
                       
<ip address="140.90.91.244" monitor_link="1"/><br>
                       
<clusterfs device="/dev/VolGroupFS/LogVol-shared"
force_unmount="0" fsid="30647" fstype="gfs"
mountpoint="/fs/shared" name="fs-shared"
options="acl"/><br>
                       
<nfsexport name="fs-shared-exp"/><br>
                       
<nfsclient name="fs-shared-client"
options="no_root_squash,rw" path="" target="140.90.91.0/24"/><br>
                       
<clusterfs device="/dev/VolGroupTemp/LogVol-rfcdata"
force_unmount="0" fsid="54233" fstype="gfs"
mountpoint="/rfcdata" name="rfcdata"
options="acl"/><br>
                       
<nfsexport name="rfcdata-exp"/><br>
                       
<nfsclient name="rfcdata-client"
options="no_root_squash,rw" path=""
target="140.90.91.0/24"/><br>
               
</resources><br>
               
<service autostart="1" domain="nfs-failover"
name="nfs"><br>
                       
<clusterfs ref="fs-shared"><br>
                               
<nfsexport ref="fs-shared-exp"><br>
                                       
<nfsclient ref="fs-shared-client"/><br>
                               
</nfsexport><br>
                       
</clusterfs><br>
                       
<ip ref="140.90.91.244"/><br>
                       
<clusterfs ref="rfcdata"><br>
                               
<nfsexport ref="rfcdata-exp"><br>
                                       
<nfsclient ref="rfcdata-client"/><br>
                               
</nfsexport><br>
                               
<ip ref="140.90.91.244"/><br>
                       
</clusterfs><br>
               
</service><br>
        </rm><br>
        <fencedevices><br>
               
<fencedevice agent="fence_apc" ipaddr="192.168.42.30"
login="rbrown" name="nfspower"
passwd="XXXXXXX"/><br>
        </fencedevices><br>
</cluster><o:p></o:p></p>

</div>

</body>

</html>