Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

iSCSI shared storage 'unplugged' on reboot 6 years 10 months ago #1333

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
We've isolated the issue and should have a fix this week or next.

Please Log in or Create an account to join the conversation.

iSCSI shared storage 'unplugged' on reboot 6 years 10 months ago #1334

  • HoppySpadge
  • HoppySpadge's Avatar Topic Author
  • Offline
  • Posts: 4
Tks Salvatore...

Meanwhile gheppy I am using this rather ugly fix which works fine for my testing purposes (stopping entire cluster between times I get to work on it) - just make sure yu shutdown the Slave first and then the Master and on restarting: start the Master first then the slave. Otherwise the Slave will think the Master is dead and HA failover will kick in...

On both machines:

Turn off the sysV init startups:
chkconfig iscsi-ha-watchdog off
chkconfig iscsi-ha off

Then create a bash script to start iscsi-ha with a delay:
nano /usr/bin/hastart.sh

contents:
#!/bin/bash
#chill for a couple of minutes - what's the rush?!
sleep 120
service iscsi-ha start

Make the script executable
chmod +x  /usr/bin/hastart.sh

create a systemd unit file to run the script on startup:
nano /etc/systemd/system/hastart.service

contents:
[Unit]
Description=wait b4 starting iscsi-ha service
[Service]
ExecStart=/usr/bin/hastart.sh
[Install]
WantedBy=multi-user.target

Set it to start on boot:
systemctl enable hastart.service

This has worked thru several shutdowns and restarts as I intermittently work on this project.

H
The following user(s) said Thank You: gheppy

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2