<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:LiberationMono;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:LiberationMono-Bold;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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-SG link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Andrew,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Now I added following in my lvm.conf<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>volume_list = [ "vg_pdcpicpl02", "@PDC-PIC-PL-CL1", "@PDC-PIC-PL-CL2" ]<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'> and<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'> </span><span style='font-size:10.5pt;font-family:LiberationMono;color:windowtext;mso-fareast-language:EN-SG'># </span><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'>dracut --hostonly --force /boot/initramfs-$(uname -r).img $(uname -r)<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:LiberationMono;color:windowtext;mso-fareast-language:EN-SG'># </span><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'>shutdown -r now "Activating ramdisk LVM changes"<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'>After that when the system tries to boot up:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'>Kernel panic – not syncing: Attempted to kill init!<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'>So didn’t have luck </span></b><b><span style='font-size:10.5pt;font-family:Wingdings;color:windowtext;mso-fareast-language:EN-SG'>L</span></b><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:LiberationMono-Bold;color:windowtext;mso-fareast-language:EN-SG'><o:p> </o:p></span></b></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'><br>volume_list = [ "vg_pdcpicpl02", "@PDC-PIC-PL-CL1", "@PDC-PIC-PL-CL2" ]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>The hostname should be cluster connect name or initial hostname ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>My /etc/hosts:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>192.168.24.32   PDC-PIC-PL-01   PDC-PIC-PL-01.chcs.sg<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>192.168.25.132  PDC-PIC-PL-01-PM        <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>192.168.26.13   PDC-PIC-PL-CL1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>192.168.24.33   PDC-PIC-PL-02  PDC-PIC-PL-02.chcs.sg<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>192.168.25.133  PDC-PIC-PL-02-PM<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>192.168.26.14   PDC-PIC-PL-CL2<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-SG'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-SG'> Andrew Denton [mailto:andrewd@sterling.net] <br><b>Sent:</b> Wednesday, 10 October, 2012 11:27 PM<br><b>To:</b> linux clustering<br><b>Cc:</b> Shanti Pahari<br><b>Subject:</b> Re: [Linux-cluster] cannot run cluster service<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 10/10/2012 12:06 AM, Shanti Pahari wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'>I have cluster setup with 2 node and created web cluster service on it but it cannot run. <o:p></o:p></span></p><p class=MsoNormal>I have not listed anything in lvm.conf volume_list because once I add anything in volume_list and reboot the system then I cannot mount and even cannot read the lv which I created for my web . It throws error as <o:p></o:p></p><p class=MsoNormal>error message "not activating volume group lv does not pass activation filter"<o:p></o:p></p><p class=MsoNormal>Therefore I didn’t add anything in lvm.conf . Then I try to start my cluster servers for web server but the service failed.<o:p></o:p></p></blockquote><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-SG'><br>I've seen this failure too when building my cluster. You either need to add the system's volume groups to volume_list, or tag the system's vgs with the @hostname so it can still activate them. <br>e.g.<br>    volume_list = [ "vg_pdcpicpl01", "@PDC-PIC-PL-CL1", "@PDC-PIC-PL-CL2" ]<br>on one node and<br>    volume_list = [ "vg_pdcpicpl02", "@PDC-PIC-PL-CL1", "@PDC-PIC-PL-CL2" ]<br>on the other. Next it will complain about initrd being older than lvm.conf, so I've been running<br># mkinitrd -f /boot/initrd-`uname -r`.img `uname -r`<br>Not sure if that's the right command but it works for me =)<br><br>One of these days I'm going to tag the system's vgs properly so I can use the same lvm.conf across the nodes. I think it's something like<br>lvchange --addtag PDC-PIC-PL-CL1 vg_pdcpicpl01/lv_root <br>etc...<br><br>By the way, to display how things are tagged, you have to do<br>lvs -o +tags<br>I wish it displayed them in lvdisplay, but it doesn't.<br><br>-- Andrew<br><br><br><o:p></o:p></span></p></div></body></html>