[PVE-User] Please help me I do not know more to do with the Cluster Proxmox

Francesco Gabriele francesco.gabriele at gmail.com
Tue Jul 3 12:25:05 CEST 2012


Hi all,

I'm trying to configure the cluster but I'm not having problems, these
are the steps I performed:

Hardware 2 Server HP380G7 with iL0 V3
Storage Fibre Channell HP P2000 G3 FC


1) Configuration multipath.conf
defaults {
        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    failover
        prio_callout            "/bin/true"
        path_checker            tur
        rr_min_io               100
        rr_weight               uniform
        failback                immediate
        no_path_retry           12
        user_friendly_names     yes
}

devnode_blacklist {
        devnode         "^(ram|sda|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode         "^hd[a-z]"
        devnode         "^cciss!c[0-9]d[0-9]*"
}

devices {

device {
       vendor                  "HP"
       product                 "P2000 G3 FC"
       path_grouping_policy    group_by_prio
       path_checker            tur
       path_selector           "round-robin 0"
       prio_callout            "/sbin/mpath_prio_alua /dev/%n"
       rr_weight               uniform
       failback                immediate
       hardware_handler        "0"
       no_path_retry           18
       rr_min_io               100
}

}

2) Configuration LVM
pvcreate /dev/mapper/mpath1
vgcreate vg_name /dev/mapper/mpath1
Configuration on all nodes with the option duei shared


3) Configuration Cluster
pvecm create sfarm-kvm

4) Configuration Cluster.conf
<?xml version="1.0"?>
<cluster config_version="4" name="sfarm-kvm">
  <cman keyfile="/var/lib/pve-cluster/corosync.authkey" two_node="1"
expected_votes="1"></cman>

<clusternodes>
<clusternode name="sfarm-kvm1sc" nodeid="1" votes="1">
        <fence>
                <method name="1">
                        <device name="sfarm-kvm1sc" action="reboot"/>
                </method>
        </fence>
</clusternode>
<clusternode name="sfarm-kvm2sc" nodeid="2" votes="1">
        <fence>
                 <method name="1">
                        <device name="sfarm-kvm2sc" action="reboot"/>
                 </method>
        </fence>
</clusternode>
</clusternodes>

<fencedevices>
        <fencedevice agent="fence_ilo" ipaddr="10.104.27.120"
login="hpilologin"  name="sfarm-kvm1sc"  passwd="hpilopword"/>
        <fencedevice agent="fence_ilo" ipaddr="10.104.27.121"
login="hpilologin"  name="sfarm-kvm2sc"  passwd="hpilopword"/>
</fencedevices>

</cluster>

5)Configuration User iLO
username hpilologin passwd hpilopword group admin

6) Edit /etc/default/redhat-cluster-pve
# CLUSTERNAME=""
# NODENAME=""
# USE_CCS="yes"
# CLUSTER_JOIN_TIMEOUT=300
# CLUSTER_JOIN_OPTIONS=""
# CLUSTER_SHUTDOWN_TIMEOUT=60
# RGMGR_OPTIONS=""
FENCE_JOIN="yes"

7) Status Fence
# fence_tool ls
fence domain
member count  2
victim count  0
victim now    0
master nodeid 2
wait state    none
members       1 2


Now if I try to test the Fence I get this error:
root at sfarm-kvm1sc ~ # fence_ilo -l hpilologin -p hpilopword -a
10.104.27.120 -o status -v
Unable to connect/login to fencing device

Or tried this way but it should not be:
fence_ilo_mp -l hpilologin -p hpilopword -a 10.104.27.120 -o status -v

If I do a connection test ssh seems to work:

root at sfarm-kvm1sc ~ # ssh hpilologin at 10.104.27.120
hpilologin at 10.104.27.120's password:
User:hpilologin logged-in to ILOCZ22160L83.(10.104.27.120)
iLO 3 Advanced 1.28 at  Jan 13 2012
Server Name: 10.104.27.120
Server Power: On

</>hpiLO->

Thanks in advance


----
Francesco Gabriele

Blog - www.ubuntuserver.it
Linux users     #5484 Frank (IT)
Asterisk users #852 Frankies (IT)



More information about the pve-user mailing list