<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cmapplyconf segfault in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256462#M57929</link>
    <description>My remaining question is about the need to define the volume groups in the global cluster conf file .&lt;BR /&gt;&lt;BR /&gt;Is it necessary ?&lt;BR /&gt;&lt;BR /&gt;I could make it work without doing so</description>
    <pubDate>Mon, 01 Sep 2008 10:57:03 GMT</pubDate>
    <dc:creator>Brem Belguebli</dc:creator>
    <dc:date>2008-09-01T10:57:03Z</dc:date>
    <item>
      <title>cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256456#M57923</link>
      <description>Hi,&lt;BR /&gt;I'm trying to setup a single node cluster for testing with the following conf (i'll add a second node in the future):&lt;BR /&gt;&lt;BR /&gt;BL460 RHEL4u6 x86_64&lt;BR /&gt;2 Qlogic HBA &lt;BR /&gt;2 Luns from 1 EVA8100&lt;BR /&gt;SGLX 11.18 demo&lt;BR /&gt;&lt;BR /&gt;Multipath is managed by DM-MP.&lt;BR /&gt;The 2 Luns are mirrored with MD, I have created a vg on top of the MD array: vg01&lt;BR /&gt;&lt;BR /&gt;the cluster starts well :&lt;BR /&gt;&lt;BR /&gt;CLUSTER    STATUS       &lt;BR /&gt;testlinux  up           &lt;BR /&gt;  &lt;BR /&gt;  NODE       STATUS   STATE        &lt;BR /&gt;  cmxi1150   up       running      &lt;BR /&gt;    &lt;BR /&gt;    Quorum_Server_Status:&lt;BR /&gt;    NAME    STATUS       STATE               &lt;BR /&gt;    hdc0h00 up           running             &lt;BR /&gt;    &lt;BR /&gt;    Network_Parameters:&lt;BR /&gt;    INTERFACE STATUS  NAME         &lt;BR /&gt;    PRIMARY   up      eth0    &lt;BR /&gt;&lt;BR /&gt;My vg01 is not active (vgchange -a n vg01) and it is clustered (vgchange -c y vg01) &lt;BR /&gt;&lt;BR /&gt;When I add the vg to the cluster config file &lt;BR /&gt;(VOLUME_GROUP vg01), when running cmapplyconf -C myconf.ascii cmapplyconf segfaultswith the following message :&lt;BR /&gt; &lt;BR /&gt;Volume Group /dev/vg01 is not found on any nodes in the cluster&lt;BR /&gt;&lt;BR /&gt;Am I missing something ?&lt;BR /&gt;&lt;BR /&gt;Below the output a few commands that could help: &lt;BR /&gt;&lt;BR /&gt;1) Multipath&lt;BR /&gt;multipath -ll -v2 &lt;BR /&gt;3600508b40006baca0000c00002c80000&lt;BR /&gt;[size=5 GB][features="0"][hwhandler="0"]&lt;BR /&gt;\_ round-robin 0 [prio=8][active]&lt;BR /&gt; \_ 1:0:4:4 sdab 65:176 [active][ready]&lt;BR /&gt; \_ 1:0:5:4 sdaf 65:240 [active][ready]&lt;BR /&gt; \_ 0:0:2:4 sdd  8:48   [active][ready]&lt;BR /&gt; \_ 0:0:3:4 sdh  8:112  [active][ready]&lt;BR /&gt; \_ 0:0:4:4 sdl  8:176  [active][ready]&lt;BR /&gt; \_ 0:0:5:4 sdp  8:240  [active][ready]&lt;BR /&gt; \_ 1:0:2:4 sdt  65:48  [active][ready]&lt;BR /&gt; \_ 1:0:3:4 sdx  65:112 [active][ready]&lt;BR /&gt;&lt;BR /&gt;3600508b40006baca0000c00002c30000&lt;BR /&gt;[size=5 GB][features="0"][hwhandler="0"]&lt;BR /&gt;\_ round-robin 0 [prio=8][active]&lt;BR /&gt; \_ 1:0:4:3 sdaa 65:160 [active][ready]&lt;BR /&gt; \_ 1:0:5:3 sdae 65:224 [active][ready]&lt;BR /&gt; \_ 0:0:2:3 sdc  8:32   [active][ready]&lt;BR /&gt; \_ 0:0:3:3 sdg  8:96   [active][ready]&lt;BR /&gt; \_ 0:0:4:3 sdk  8:160  [active][ready]&lt;BR /&gt; \_ 0:0:5:3 sdo  8:224  [active][ready]&lt;BR /&gt; \_ 1:0:2:3 sds  65:32  [active][ready]&lt;BR /&gt; \_ 1:0:3:3 sdw  65:96  [active][ready]&lt;BR /&gt;&lt;BR /&gt;2) MDADM&lt;BR /&gt;&lt;BR /&gt;mdadm -D /dev/md1&lt;BR /&gt;/dev/md1:&lt;BR /&gt;        Version : 00.90.01&lt;BR /&gt;  Creation Time : Thu Aug 14 12:24:42 2008&lt;BR /&gt;     Raid Level : raid1&lt;BR /&gt;     Array Size : 5242816 (5.00 GiB 5.37 GB)&lt;BR /&gt;    Device Size : 5242816 (5.00 GiB 5.37 GB)&lt;BR /&gt;   Raid Devices : 2&lt;BR /&gt;  Total Devices : 2&lt;BR /&gt;Preferred Minor : 1&lt;BR /&gt;    Persistence : Superblock is persistent&lt;BR /&gt;&lt;BR /&gt;    Update Time : Fri Aug 22 14:26:12 2008&lt;BR /&gt;          State : clean&lt;BR /&gt; Active Devices : 2&lt;BR /&gt;Working Devices : 2&lt;BR /&gt; Failed Devices : 0&lt;BR /&gt;  Spare Devices : 0&lt;BR /&gt;&lt;BR /&gt;           UUID : e2c1ec78:adead4fd:1d3f013f:90cb3b5d&lt;BR /&gt;         Events : 0.30&lt;BR /&gt;&lt;BR /&gt;    Number   Major   Minor   RaidDevice State&lt;BR /&gt;       0     253        1        0      active sync   /dev/dm-1&lt;BR /&gt;       1     253        0        1      active sync   /dev/dm-0&lt;BR /&gt;&lt;BR /&gt;3) vgdisplay&lt;BR /&gt;vgdisplay (before vgchange -a n vg01 and vgchange -c y vg01)&lt;BR /&gt;&lt;BR /&gt; vgdisplay -v vg01&lt;BR /&gt;    Using volume group(s) on command line&lt;BR /&gt;    Finding volume group "vg01"&lt;BR /&gt;  --- Volume group ---&lt;BR /&gt;  VG Name               vg01&lt;BR /&gt;  System ID             &lt;BR /&gt;  Format                lvm2&lt;BR /&gt;  Metadata Areas        1&lt;BR /&gt;  Metadata Sequence No  19&lt;BR /&gt;  VG Access             read/write&lt;BR /&gt;  VG Status             resizable&lt;BR /&gt;  MAX LV                0&lt;BR /&gt;  Cur LV                1&lt;BR /&gt;  Open LV               0&lt;BR /&gt;  Max PV                0&lt;BR /&gt;  Cur PV                1&lt;BR /&gt;  Act PV                1&lt;BR /&gt;  VG Size               5.00 GB&lt;BR /&gt;  PE Size               4.00 MB&lt;BR /&gt;  Total PE              1279&lt;BR /&gt;  Alloc PE / Size       1024 / 4.00 GB&lt;BR /&gt;  Free  PE / Size       255 / 1020.00 MB&lt;BR /&gt;  VG UUID               8gvNmU-lPLb-0nHH-VlWh-xjKT-NzuZ-7GxHyi&lt;BR /&gt;   &lt;BR /&gt;  --- Logical volume ---&lt;BR /&gt;  LV Name                /dev/vg01/lvol0&lt;BR /&gt;  VG Name                vg01&lt;BR /&gt;  LV UUID                Z6yUqC-pYQP-PNex-Rd6D-GHkz-zT2f-kvtEle&lt;BR /&gt;  LV Write Access        read/write&lt;BR /&gt;  LV Status              NOT available&lt;BR /&gt;  LV Size                4.00 GB&lt;BR /&gt;  Current LE             1024&lt;BR /&gt;  Segments               1&lt;BR /&gt;  Allocation             inherit&lt;BR /&gt;  Read ahead sectors     0&lt;BR /&gt;   &lt;BR /&gt;  --- Physical volumes ---&lt;BR /&gt;  PV Name               /dev/md1     &lt;BR /&gt;  PV UUID               Y1ilXH-ur3g-ykiV-gNBC-gx4y-VnM2-601nfm&lt;BR /&gt;  PV Status             allocatable&lt;BR /&gt;  Total PE / Free PE    1279 / 255&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 22 Aug 2008 12:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256456#M57923</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-08-22T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256457#M57924</link>
      <description>You said:&lt;BR /&gt;"My vg01 is not active (vgchange -a n vg01) and it is clustered (vgchange -c y vg01)"&lt;BR /&gt;&lt;BR /&gt;If you're familiar with ServiceGuard on HP-UX, this can be a bit of a trap: the "vgchange -c y" command is *not* used with ServiceGuard on Linux. It is for RHEL AS native clustering support only.&lt;BR /&gt;&lt;BR /&gt;If you've set a VG to cluster mode without first setting up the _RedHat cluster_ locking daemons, you'll need these special instructions for undoing your mistake:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://kbase.redhat.com/faq/FAQ_96_11024.shtm" target="_blank"&gt;http://kbase.redhat.com/faq/FAQ_96_11024.shtm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"In order to fix this, edit the /etc/lvm/lvm.conf file and set &lt;BR /&gt;&lt;BR /&gt;locking_type = 0&lt;BR /&gt;&lt;BR /&gt;Then run the command &lt;BR /&gt;&lt;BR /&gt;vgchange -cn VolumeGroupName. &lt;BR /&gt;&lt;BR /&gt;After this, change the locking_type in the /etc/lvm/lvm.conf back to the original value."&lt;BR /&gt;&lt;BR /&gt;Because ServiceGuard/Linux must work on many Linux distributions and some of them does not have the native cluster support that RHEL does, ServiceGuard does its own VG locking in a different way.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 22 Aug 2008 19:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256457#M57924</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-08-22T19:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256458#M57925</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for our reply.&lt;BR /&gt;&lt;BR /&gt;Indeed, it's something I'm used to do on HP-UX.&lt;BR /&gt;&lt;BR /&gt;I'll try it and repost the result.&lt;BR /&gt;&lt;BR /&gt;Brem</description>
      <pubDate>Fri, 22 Aug 2008 19:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256458#M57925</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-08-22T19:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256459#M57926</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I may be trying to go the wrong way.&lt;BR /&gt;&lt;BR /&gt;Do the VG's belonging to the packages necessarly need to be defined in the global cluster conf file (in my case cmclconfig.ascii).&lt;BR /&gt;&lt;BR /&gt;This is something that we are used to do on our HP-UX MCSG setup.&lt;BR /&gt;&lt;BR /&gt;I've tried without vgchange'ing -c y vg01, it still segfaults.&lt;BR /&gt;&lt;BR /&gt;In any case, the vg's need to be inactive (vgchange -a n), but do they need to be put in exclusive mode (vgchange -a e vg01)?&lt;BR /&gt;&lt;BR /&gt;Brem</description>
      <pubDate>Fri, 22 Aug 2008 21:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256459#M57926</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-08-22T21:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256460#M57927</link>
      <description>No, you should not be using "vgchange -a e" either. &lt;BR /&gt;&lt;BR /&gt;(In HP-UX, "vgchange -a e" is a cluster-aware form of "vgchange -a y". If either is used, the volume group will be _activated_. When using the "-a e" form, the cluster locking system first confirms that no other cluster node is using that VG; if that confirmation cannot be obtained, the VG remains inactive on the node that runs the command.)&lt;BR /&gt;&lt;BR /&gt;Although ServiceGuard for Linux has the same cm* command syntax as the HP-UX version, the Linux LVM is very different from HP-UX LVM and there are some significant changes in SG/Linux because of this.&lt;BR /&gt;&lt;BR /&gt;Please refer to the "Managing ServiceGuard for Linux" manual when building the package LVM configuration. Don't just assume that anything you learned with HP-UX LVM works as-is.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B9903-90054/ch05s06.html#bdchhedc" target="_blank"&gt;http://docs.hp.com/en/B9903-90054/ch05s06.html#bdchhedc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Off the top of my head, the main differences are: &lt;BR /&gt;- the cluster VG locking is performed as a separate step using "vgchange --addtag" and "vgchange --deltag", instead of automatically with "vgchange -a e"&lt;BR /&gt;&lt;BR /&gt;- when replicating the cluster VG configuration from one node to another, there is no need to use vgexport/vgimport and move map files around: just using "vgscan" on the node that needs to pick up the new VG configuration is enough. (Note: while "vgscan" may be a scary operation on HP-UX in some situations, it's very safe in Linux.)  &lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sat, 23 Aug 2008 07:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256460#M57927</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-08-23T07:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256461#M57928</link>
      <description>Thanks again,&lt;BR /&gt;&lt;BR /&gt;Ok, understood.&lt;BR /&gt;&lt;BR /&gt;The tag thing doesn't really lock the VG, it's only serviceguard that won't activate it if the tag from another node in on.&lt;BR /&gt;&lt;BR /&gt;But nothing prevents you from manually activating the tagged VG on another node.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Sep 2008 10:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256461#M57928</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-09-01T10:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256462#M57929</link>
      <description>My remaining question is about the need to define the volume groups in the global cluster conf file .&lt;BR /&gt;&lt;BR /&gt;Is it necessary ?&lt;BR /&gt;&lt;BR /&gt;I could make it work without doing so</description>
      <pubDate>Mon, 01 Sep 2008 10:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256462#M57929</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-09-01T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: cmapplyconf segfault</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256463#M57930</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;vgscan is not even necessary on the other nodes, at least when combined with XDC.&lt;BR /&gt;I haven't tested without XDC.&lt;BR /&gt;&lt;BR /&gt;Declaring the volume groups (VOLUME_GROUP directive) in the global cluster ascii file doesn't seems either to be necessary, as it is with SG/HPUX.&lt;BR /&gt;&lt;BR /&gt;I guess it is due tho the fact that the VG's are not cluster aware (LVM2 is not).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2008 19:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cmapplyconf-segfault/m-p/4256463#M57930</guid>
      <dc:creator>Brem Belguebli</dc:creator>
      <dc:date>2008-09-15T19:41:01Z</dc:date>
    </item>
  </channel>
</rss>

