Hi everyone,

I successfully installed 2.1.3 heartbeat with 0.6.4 pacemaker on a Gentoo system. I basically have FileSystem ressources (OCF agent) I share with apache, vsftp and samba (lsb agent). Due to a low hardening attempt on this setup, I re-mount FileSystems (first mounted from a third-party NFS server) with the "bind" and "ro" option which are seen by some of these services. So, I have 2 types of FS ressources: the NFS "original" ones and "remount/bind" FS ones. Ok, first the setup behave exactly as expected (mount order, collocation constraints, etc).

A problem occurs when the group containing all FS ressources become a clone type ressource. Even when I set this clone FS group to run only on one node with only one instance (clone_max=1, clone_node_max=1), the FS agent can't mount the "remount/bind" ressources. Other NFS "original" FS are correctly mounted.

I've done tests with an cleaned CIB with only these FS ressources and no constraint, and still the same problem with "remount/bind" FS ressources.


Thanks for your help if you have an idea on what I should look for. ^^


Here is my ressource.xml, feel free to ask for more information. Only the beginning is interesting, as it concerns the problematic clone FS group.

  <resources>
    <clone id="clone_FS">
      <instance_attributes>
        <attributes>
          <nvpair name="clone_max" value="2"/>
          <nvpair name="clone_node_max" value="1"/>
          <nvpair name="ordered" value="TRUE"/>
          <nvpair name="interleave" value="FALSE"/>
        </attributes>
      </instance_attributes>
      <group id="filesystems">
<primitive id="FS_drivers_mnt" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_drivers_mnt_ia">
            <attributes>
<nvpair id="FS_drivers_mnt_dev" name="device" value="filer1.somedomain.com:/vol/vol0/drivers"/> <nvpair id="FS_drivers_mnt_dir" name="directory" value="/mnt/filer1/drivers"/>
              <nvpair id="FS_drivers_mnt_type" name="fstype" value="nfs"/>
<nvpair id="FS_drivers_mnt_opt" name="options" value="nosuid,rsize=8192,wsize=8192,nfsvers=3,soft"/>
            </attributes>
          </instance_attributes>
       </primitive>
<primitive id="FS_drivers_bind" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_drivers_bind_ia">
            <attributes>
<nvpair id="FS_drivers_bind_dev" name="device" value="/mnt/filer1/drivers"/> <nvpair id="FS_drivers_bind_dir" name="directory" value="/var/ftp/labtech/labtech_drivers"/>
              <nvpair id="FS_drivers_bind_type" name="fstype" value=""/>
<nvpair id="FS_drivers_bind_opt" name="options" value="ro,bind"/>
            </attributes>
          </instance_attributes>
       </primitive>
<primitive id="FS_soft_mnt" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_soft_mnt_ia">
            <attributes>
<nvpair id="FS_soft_mnt_dev" name="device" value="filer2.somedomain.com:/vol/labtech_soft"/> <nvpair id="FS_soft_mnt_dir" name="directory" value="/mnt/filer2/labtech_soft"/>
              <nvpair id="FS_soft_mnt_type" name="fstype" value="nfs"/>
<nvpair id="FS_soft_mnt_opt" name="options" value="nosuid,rsize=8192,wsize=8192,nfsvers=3,soft"/>
            </attributes>
          </instance_attributes>
       </primitive>
<primitive id="FS_soft_bind" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_soft_bind_ia">
            <attributes>
<nvpair id="FS_soft_bind_dev" name="device" value="/mnt/filer2/labtech_soft"/> <nvpair id="FS_soft_bind_dir" name="directory" value="/var/ftp/labtech/labtech_soft"/>
              <nvpair id="FS_soft_bind_type" name="fstype" value=""/>
<nvpair id="FS_soft_bind_opt" name="options" value="ro,bind"/>
            </attributes>
          </instance_attributes>
       </primitive>
<primitive id="FS_public_mnt" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_public_mnt_ia">
            <attributes>
<nvpair id="FS_public_mnt_dev" name="device" value="filer2.somedomain.com:/vol/labtech_public"/> <nvpair id="FS_public_mnt_dir" name="directory" value="/mnt/filer2/labtech_public"/>
              <nvpair id="FS_public_mnt_type" name="fstype" value="nfs"/>
<nvpair id="FS_public_mnt_opt" name="options" value="nosuid,rsize=8192,wsize=8192,nfsvers=3,soft"/>
            </attributes>
          </instance_attributes>
       </primitive>
<primitive id="FS_public_bind" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_public_bind_ia">
            <attributes>
<nvpair id="FS_public_bind_dev" name="device" value="/mnt/filer2/labtech_public"/> <nvpair id="FS_public_bind_dir" name="directory" value="/var/ftp/labtech/labtech_public"/>
              <nvpair id="FS_public_bind_type" name="fstype" value=""/>
              <nvpair id="FS_public_bind_opt" name="options" value="bind"/>
            </attributes>
          </instance_attributes>
       </primitive>
<primitive id="FS_rdp_mnt" class="ocf" type="Filesystem" provider="heartbeat">
          <instance_attributes id="FS_rdp_mnt_ia">
            <attributes>
<nvpair id="FS_rdp_mnt_dev" name="device" value="filer4.somedomain.com:/vol/rdp"/> <nvpair id="FS_rdp_mnt_dir" name="directory" value="/mnt/filer4/rdp"/>
              <nvpair id="FS_rdp_mnt_type" name="fstype" value="nfs"/>
<nvpair id="FS_rdp_mnt_opt" name="options" value="nosuid,rsize=8192,wsize=8192,nfsvers=3,soft"/>
            </attributes>
          </instance_attributes>
        </primitive>
      </group>
    </clone>

      <group id="fort-knox">
<primitive id="FK_IP" class="ocf" type="IPaddr" provider="heartbeat">
          <instance_attributes id="FK_IP_ia">
            <attributes>
              <nvpair id="FK_IP_val" name="ip" value="10.231.226.90"/>
            </attributes>
          </instance_attributes>
        </primitive>
        <primitive id="gen_smb" class="lsb" type="samba">
          <operations>
<op id="op_gen_smb_mon" name="monitor" interval="5s" timeout="3s"/>
          </operations>
        </primitive>
        <primitive id="FK_ftp" class="lsb" type="vsftpd.labtech">
          <operations>
<op id="op_FK_ftp_mon" name="monitor" interval="5s" timeout="3s"/>
          </operations>
        </primitive>
      </group>
      <group id="linux-rep">
<primitive id="LR_IP" class="ocf" type="IPaddr" provider="heartbeat">
          <instance_attributes id="LR_IP_ia">
            <attributes>
              <nvpair id="LR_IP_val" name="ip" value="10.231.226.15"/>
            </attributes>
          </instance_attributes>
        </primitive>
        <primitive id="LR_ftp" class="lsb" type="vsftpd.linux-rep">
          <operations>
<op id="op_LR_ftp_mon" name="monitor" interval="5s" timeout="3s"/>
          </operations>
        </primitive>
      </group>
      <group id="LR_FK_general">
        <primitive id="LR_FK_GEN_apache" class="lsb" type="apache2">
          <operations>
<op id="op_LR_FK_GEN_apache_mon" name="monitor" interval="5s" timeout="3s"/>
          </operations>
        </primitive>
      </group>
  </resources>


So basically, if I get rid of the clone section and leave the rest of the group "filesystems" untouched, it works like a charm...


Best Regards

Florent.

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to