Forum

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/13/d467848118/htdocs/templates/cleanout/vertex/responsive/responsive_mobile_menu.php on line 158
Welcome, Guest
Username: Password: Remember me

TOPIC:

2 or more iSCSI 9 years 8 months ago #386

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 727
There are several scenarios possible for disk replacement. Two examples are below. You review the documentation - specifically "maintenance operations" and "manual mode" which would allow you to perform maintenance operations with no VM downtime.

If your disks are connected via a RAID controller with hotswap:
- replace the disk with the host running
- create DRBD metadata on the new disk
- via DRBD - invalidate the new disk and overwrite it with the contents of the live disk

If your disks do not support hot swap:
- disable HA
- enter manual mode in iscsi-ha
- make sure the surviving host is primary
- power off - replace disk and then follow steps above
- exit manual mode
- enable HA

If your SDA has failed - you will likely be reinstalling XenServer from scratch.

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

2 or more iSCSI 9 years 8 months ago #387

ok... here i give u working configs for 2nd iscsi (all ather steps as mentioned in the ha-lizard how-to guide):

#vi /etc/drbd.conf
global { usage-count no; }
common { syncer { rate 100M; } }
resource iscsi1 {
protocol C;
net {
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus; cram-hmac-alg sha1;
shared-secret PUTyourSECREThere;
}
on pekxen5 {
device /dev/drbd1;
disk /dev/sdb1;
address 10.10.10.1:7789;
meta-disk internal;
}
on pekxen6 {
device /dev/drbd1;
disk /dev/sdb1;
address 10.10.10.2:7789;
meta-disk internal;
}
}
resource iscsi2 {
protocol C;
net {
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus; cram-hmac-alg sha1;
shared-secret PUTyourSECREThere;
}
on pekxen5 {
device /dev/drbd2;
disk /dev/sdc1;
address 10.10.10.1:7790;
meta-disk internal;
}
on pekxen6 {
device /dev/drbd2;
disk /dev/sdc1;
address 10.10.10.2:7790;
meta-disk internal;
}
}


#vi /etc/tgt/targets.conf
# </direct-store>
#</target>
############### BEGIN HALIZARD INSERTION ###############
<target iqn.2015.com.halizard:noSAN>
backing-store /dev/drbd1
backing-store /dev/drbd2
</target>
############### END HALIZARD INSERTION ###############

#vi /etc/lvm/lvm.conf
# Ignore /dev/xvd* devices to prevent deadlocking when live-snapshotting
# dom0-attached LVHD VDIs
filter = [ "r|/dev/xvd.|", "r|/dev/VG_Xen.*/*|", "r|/dev/sdb1|", "r|/dev/drb
d1|", "r|/dev/sdc1|", "r|/dev/drbd2|" ]


#vi /etc/iscsi-ha/iscsi-ha.conf

RBD_RESOURCES=iscsi1:iscsi2
ISCSI_TARGET_SERVICE=/etc/init.d/tgtd
DRBD_VIRTUAL_IP=10.10.10.3
DRBD_VIRTUAL_MASK=255.255.255.0
DRBD_INTERFACE=xenbr1
MONITOR_MAX_STARTS=5
MONITOR_DELAY=10
MONITOR_KILLALL=1
MONITOR_SCANRATE=5
ENABLE_LOGGING=1
MAIL_ON=1
MAIL_SUBJECT='HA-Lizard noSAN SYSTEM ALERT - FROM HOST: pekxen5'
MAIL_FROM=root@localhost
MAIL_TO=root@localhost
MAIL_SCREEN_TIME=30
#END CONFIG FILE
The following user(s) said Thank You: Bob

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

Last edit: by dimi.

2 or more iSCSI 9 years 5 months ago #450

Hello,

We have working system.
2 servers, HA-iscsi on local HDD sda3.
Additionaly we added two HDDs. One in each server for 2nd iSCSI device.

Configuration is done as per instruction from this post.
In XenCenter we can see second LUN and we can create new SR on new iscsi LUN.
BUT problem is with old SR. It is not accesible any more??
Hot to reatach old SR without loosing data.

br

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

2 or more iSCSI 9 years 5 months ago #451

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 727
Please post the following files:
- drbd.conf
- lvm.conf
- targets.conf

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

2 or more iSCSI 9 years 4 months ago #481

sc wrote: Hi Dimi,
We will post a working set of files later this week once we have had a chance to test them on our development environment.


Has a known good working set of reference files ever been posted.
without telling me to look at the setup documents because i have what are the proper commands to initialize DRBD

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

2 or more iSCSI 9 years 4 months ago #482

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 727
Post #387 has what you are looking for.

Direct Link:
halizard.com/forum/general-discussion/20...e-iscsi?start=18#387

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