-----------------------------------------------------------------------------------
| ha-lizard noSAN Automated Installer for XenServer 7 |
| Copyright 2016 Salvatore Costantino |
| ha@pulsesupply.com |
| |
| |
| ha-lizard is free software: you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation, either version 3 of the License, or |
| (at your option) any later version. |
| |
| ha-lizard is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with ha-lizard. If not, see . |
-----------------------------------------------------------------------------------
###############################################################################
################## IMPORTANT - READ BELOW BEFORE PROCEEDING ###################
###############################################################################
--------------------------------------------------------------------------------
| Before proceeding, check that the following requirements have been satisfied |
--------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
| - This installer requires a 2-node XenServer pool. A master and a slave. |
| - Each host shall have a unique hostname set (localhost is not valid) |
| - A replication interface and associated IP address should be configured for each host before proceeding |
| - If you are not converting the default local storage into iSCSI-HA stotage, then |
| you should know the block device name to be used for storage before proceeding (ie. /dev/sdb) |
| - If you are converting the default local storage to iSCSI-HA storage ALL data will be lost. |
------------------------------------------------------------------------------------------------------------
Press to continue or control+c to exit now
awk found OK..
grep found OK..
ip found OK..
uuidgen found OK..
basename found OK..
wget found OK..
readlink found OK..
xe found OK..
tar found OK..
iptables found OK..
yum found OK..
dd found OK..
echo found OK..
cat found OK..
service found OK..
systemctl found OK..
hostname found OK..
curl found OK..
Checking if this host is a Pool Master or Slave
This host's pool status = slave:192.168.10.5
Checking for latest releases of HA-Lizard components
Found: iscsi-ha-2.1.5.tgz ha-lizard-2.1.4.tgz
---------------------------------------------------------
| Enter Replication IP for this host and press |
| (leave blank to select default value of 10.10.10.2) |
---------------------------------------------------------
Local replication interface address set to 10.10.10.2
----------------------------------------------------------
| Enter Replication IP for remote host and press |
| (leave blank to select default value of 10.10.10.1) |
----------------------------------------------------------
Remote replication interface address set to 10.10.10.1
---------------------------------------------------------------
| Enter Shared/Floating IP for pool storage and press |
| (leave blank to select default value of 10.10.10.3) |
---------------------------------------------------------------
Shared replication interface address set to 10.10.10.3
-------------------------------------------------------
| Enter the hostname for the Master and press |
| (!! Must be the configured hostname !!) |
-------------------------------------------------------
xct1
------------------------------------------------------
| Enter the hostname for the Slave and press |
| (!! Must be the configured hostname !!) |
------------------------------------------------------
xct2
The following interfaces were found on this host
inet 192.168.10.6/24 brd 192.168.10.255 scope global xenbr0
inet 10.10.10.2/24 brd 10.10.10.255 scope global xapi0
Select replication inerface
Enter 0 for interface xenbr1
Enter 1 for interface xenbr0
Enter 2 for interface xapi0
Enter 0 - 2 for the desired Replication Interface
2
Interface xapi0 selected
Local temp folder /tmp/halizard_tmp_ found
Downloading the latest stable version of HA-Lizard to /tmp/halizard_tmp_
Downloading the latest stable version of iSCSI-HA to /tmp/halizard_tmp_
Unpacking iSCSI-HA
Unpacking HA-Lizard
Updating Firewall Rules
Bad argument `1'
Try `iptables -h' or 'iptables --help' for more information.
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
Redirecting to /bin/systemctl restart iptables.service
Installing DRBD packages
Note: Forwarding request to 'systemctl disable drbd.service'.
Installing HA-Lizard High Availability Component
Warning: ha-lizard-watchdog.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: ha-lizard.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Installing iSCSI-HA Storage High Availability Component
Installing iSCSI Target Framework
----------------------------------------------------------
| Convert local storage to iSCSI-HA storage? |
----------------------------------------------------------
yes
Failed to locate SR for local storage
--------------------------------------------------------
| Error converting local SR to usable block device |
| Enter full path to backing block device to be |
| used for HA storage and press (ex. /dev/sdb) |
--------------------------------------------------------
/dev/sdb
Backing block device set to /dev/sdb
---------------------------------------------------------------------
| Enter LUN to be used for exposing iSCSI storage and press |
| (Leave blank to accept default value of 10) |
---------------------------------------------------------------------
LUN set to 10
Backing up LVM configuration file /etc/lvm/lvm.conf to /etc/lvm/lvm.conf.halizard_restore
Backing up LVM configuration file /etc/lvm/master/lvm.conf to /etc/lvm/master/lvm.conf.halizard_restore
--------------------------------------------------------------------
| Enter heuristic IP address used by HA-Lizard. |
| This can be any IP address reachable by this host |
| by traversing the XenServer management network and press |
--------------------------------------------------------------------
192.168.10.1
Heuristic IP set to 192.168.10.1
Press to continue installation
Successfully updated FENCE_ENABLED to value: 1
Successfully updated FENCE_HEURISTICS_IPS to value: 192.168.10.1
Successfully updated FENCE_MIN_HOSTS to value: 2
Successfully updated FENCE_QUORUM_REQUIRED to value: 1
Successfully updated FENCE_USE_IP_HEURISTICS to value: 1
Successfully updated MONITOR_DELAY to value: 15
Successfully updated MONITOR_MAX_STARTS to value: 20
Successfully updated XAPI_COUNT to value: 2
Successfully updated XAPI_DELAY to value: 10
Sending ARP update on replication interface
ARP: send_network_bridge_arp: Processing ARP update for interface [ xapi0 ]
ARP: send_network_bridge_arp: IP address list for [ xapi0 ] = [ 10.10.10.2 ]
ARP: send_network_bridge_arp: Updating ARP for device [ xapi0 ] IP [ 10.10.10.2 ]
ARPING 10.10.10.2 from 10.10.10.2 xapi0
Sent 1 probes (1 broadcast(s))
Received 0 response(s)
--------------------------------------------------------------------
| Initializing DRBD.. This host will wait until its peer connects. |
| Installation will resume after the DRBD peers connect |
--------------------------------------------------------------------
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0326196 s, 32.1 MB/s
initializing activity log
initializing bitmap (8192 KB) to all zero
Writing meta data...
New drbd meta data block successfully created.
Starting DRBD resources: [
create res: iscsi1
prepare disk: iscsi1
adjust disk: iscsi1
adjust net: iscsi1
]
..........
***************************************************************
DRBD's startup script waits for the peer node(s) to appear.
- If this node was already a degraded cluster before the
reboot, the timeout is 0 seconds. [degr-wfc-timeout]
- If the peer was available before the reboot, the timeout
is 0 seconds. [wfc-timeout]
(These values are for resource 'iscsi1'; 0 sec -> wait forever)
To abort waiting enter 'yes' [ 20]: yes
.
Starting ha-lizard (via systemctl): [ OK ]
Starting iscsi-ha (via systemctl): [ OK ]
--------------------------------------------------------------------------------------
| The final step is to create a new storage repository of type iSCSI from XenCenter |
| targeted to 10.10.10.3 to complete the noSAN installation. |
--------------------------------------------------------------------------------------