[root@HA-XS-Master tmp]# ./halizard_nosan_installer_1_4_7 ################################################################################# # # # ha-lizard noSAN Automated Installer # # Copyright 2015 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 yes 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.. hostname found OK.. curl found OK.. --------------------------------------------------------------------------------------------- | Installation requires that the XenServer switch network backend be changed to bridge mode | | type to change the network switch and automatically reboot or enter to exit | --------------------------------------------------------------------------------------------- yes The host must be rebooted before attempting to run the installer again Cleaning up old ifcfg files Disabling openvswitch daemon Configure system for bridge networking You *MUST* now reboot your system [root@HA-XS-Master tmp]# Broadcast message from root (Mon Jul 29 18:35:35 2019): The system is going down for reboot NOW! login as: root root@192.168.1.33's password: Last login: Mon Jul 29 12:54:10 2019 from 192.168.1.120 XenServer dom0 configuration is tuned for maximum performance and reliability. Configuration changes which are not explicitly documented or approved by Citrix Technical Support, may not have been tested and are therefore not supported. In addition, configuration changes may not persist after installation of a hotfix or upgrade, and could also cause a hotfix or upgrade to fail. Third party tools, which require modification to dom0 configuration, or installation into dom0, may cease to function correctly after upgrade or hotfix installation. Please consult Citrix Technical Support for advice regarding specific tools. Type "xsconsole" for access to the management console. [root@HA-XS-Master ~]# ./halizard_nosan_installer_1_4_7 -bash: ./halizard_nosan_installer_1_4_7: No such file or directory [root@HA-XS-Master ~]# cd /tmp [root@HA-XS-Master tmp]# ./halizard_nosan_installer_1_4_7 ################################################################################# # # # ha-lizard noSAN Automated Installer # # Copyright 2015 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.. hostname found OK.. curl found OK.. Checking if this host is a Pool Master or Slave This host's pool status = master Checking for latest releases of HA-Lizard components Found: iscsi-ha-2.2.0.tgz ha-lizard-2.2.1.tgz --------------------------------------------------------- | Enter Replication IP for this host and press | | (leave blank to select default value of 10.10.10.1) | --------------------------------------------------------- Local replication interface address set to 10.10.10.1 ---------------------------------------------------------- | Enter Replication IP for remote host and press | | (leave blank to select default value of 10.10.10.2) | ---------------------------------------------------------- Remote replication interface address set to 10.10.10.2 --------------------------------------------------------------- | 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 !!) | ------------------------------------------------------- HA-XS-Master ------------------------------------------------------ | Enter the hostname for the Slave and press | | (!! Must be the configured hostname !!) | ------------------------------------------------------ HA-XS-Slave The following interfaces were found on this host inet 10.10.10.1/24 brd 10.10.10.255 scope global xapi1 inet 192.168.1.33/24 brd 192.168.1.255 scope global xenbr0 Select replication inerface Enter 0 for interface xapi1 Enter 1 for interface xenbr0 Enter 0 - 1 for the desired Replication Interface 0 Interface xapi1 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 iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] iptables: Applying firewall rules: [ OK ] Installing DRBD packages drbd-utils Successfully Installed! Installing HA-Lizard High Availability Component /tmp/halizard_tmp_/ha-lizard-2.2.1/ha-lizard.init: line 5: /etc/ha-lizard/ha-lizard.conf: No such file or directory Installing iSCSI-HA Storage High Availability Component Installing iSCSI Target Framework Cannot find a valid baseurl for repo: base error reading information on service tgtd: No such file or directory ---------------------------------------------------------- | Convert local storage to iSCSI-HA storage? | ---------------------------------------------------------- yes Hostname detected = HA-XS-Master Local Storage SR UUID discovered = d8ecc33d-f3e9-d93d-3ab3-033ce3ff0117 Local Storage PBD UUID discovered = e2580750-0ab3-42d9-7c8e-74f8be26aa87 Press Enter to Continue Unplugging PBD e2580750-0ab3-42d9-7c8e-74f8be26aa87 Destroying PBD e2580750-0ab3-42d9-7c8e-74f8be26aa87 Removing Storage d8ecc33d-f3e9-d93d-3ab3-033ce3ff0117 Local storage repository has been successfully removed Backing block device set to /dev/sda3 --------------------------------------------------------------------- | Enter LUN to be used for exposing iSCSI storage and press | | (Leave blank to accept default value of 10) | --------------------------------------------------------------------- LUN set to 10 ./halizard_nosan_installer_1_4_7: line 845: /etc/tgt/targets.conf: No such file or directory Backing up LVM configuration file /etc/lvm/lvm.conf to /etc/lvm/lvm.conf.halizard_restore Reading all physical volumes. This may take a while... No volume groups found -------------------------------------------------------------------- | 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.1.1 Heuristic IP set to 192.168.1.1 Press to continue installation Successfully updated FENCE_ENABLED to value: 1 Successfully updated FENCE_HEURISTICS_IPS to value: 192.168.1.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 -------------------------------------------------------------------- | 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.00513491 seconds, 204 MB/s You want me to create a v08 style flexible-size internal meta data block. There appears to be a v08 flexible-size internal meta data block already in place on /dev/sda3 at byte offset 7992972214272 Do you really want to overwrite the existing v08 meta-data? [need to type 'yes' to confirm] yes Writing meta data... initializing activity log NOT initializing bitmap 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. - In case 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 will expire after 0 seconds. [wfc-timeout] (These values are for resource 'iscsi1'; 0 sec -> wait forever) To abort waiting enter 'yes' [ 264]: . Synchronizing storage with peer/slave hostStarting ha-lizar[ OK ] Starting ha-lizard-watchdog: [ OK ] /etc/iscsi-ha/scripts/fw_init: line 65: systemctl: command not found XAPI and firewall are required to start [FAILED] -------------------------------------------------------------------------------------- | 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. | -------------------------------------------------------------------------------------- [root@HA-XS-Master tmp]#