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

TOPIC:

Adding a third storage drive 4 years 10 months ago #1818

  • Alexander Hjelm
  • Alexander Hjelm's Avatar Topic Author
  • Offline
  • Posts: 20
Hi, im trying to add my third storage drive but it seems like something is wrong.
When i add it and have synced it up with drbd and i see it in sync on both servers (up to date) i try to restart my nodes and when they come back up they cant connect to eachother anymore and the pool is "gone" when i type ha-cfg status it reports nothing on the pool uuid line and i cant get it back up until i comment out my new changes i just made in all the config files and reboot it again.

/etc/iscsi-ha/iscsi-ha.conf
DRBD_RESOURCES=iscsi1:iscsi2:iscsi4


/etc/drbd.conf
resource iscsi4 {
protocol C;
net {
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus; cram-hmac-alg sha1;
shared-secret PUTyourSECREThere;
}
on nfnode01 {
device /dev/drbd4;
disk /dev/sdd;
address 10.10.10.1:7791;
meta-disk internal;
}
on nfnode02 {
device /dev/drbd4;
disk /dev/sdd;
address 10.10.10.2:7791;
meta-disk internal;
}
}


/etc/tgt/targets.conf
<backing-store /dev/drbd4>
lun 30
</backing-store>
</target>


/etc/lvm/master/lvm.conf and /etc/lvm/lvm.conf
filter = [ "r|/dev/sdb|", "r|/dev/drbd1|", "r|/dev/sdc|", "r|/dev/drbd2|", "r|/dev/sdd|", "r|/dev/drbd4|" ]


it syncs fine (says up to date on it), i can detach and attach it manualy without any issues.
Have anyone had this issue before?


I also want to thank you all that works with HA-Lizard, we have used it for 2.5 years now (since i created my account here) and it still works flawless for us.
Is it possible to make a donation to HA-Lizard directly? would need an invoice for it, send me a PM if possible.

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

Last edit: by Alexander Hjelm.

Adding a third storage drive 4 years 10 months ago #1820

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
Hi Alexander,

If you are trying to manage 3 storage devices, it looks like the configuration files are missing some data (or maybe you truncated the files for posting here only??)

drbd.conf should have 3 resource sections.

also, targets.conf should have a backing store for each of the storage devices.. working example is below

<target iqn.2015.com.halizard:noSAN>
<backing-store /dev/drbdresource1>
lun 10
</backing-store>

<backing-store /dev/drbdresource2>
lun 20
</backing-store>
</target>

<backing-store /dev/drbdresource3>
lun 30
</backing-store>
</target>

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

Adding a third storage drive 4 years 10 months ago #1821

  • Alexander Hjelm
  • Alexander Hjelm's Avatar Topic Author
  • Offline
  • Posts: 20
Hi Salvatore,

Yes that is correct, i truncated it for the forums.
I do already run 2 storage devices with success.


/etc/tgt/targets.conf

<target iqn.2015.com.halizard:noSAN>
<backing-store /dev/drbd1>
lun 10
</backing-store>

<backing-store /dev/drbd2>
lun 20
</backing-store>
</target>

<backing-store /dev/drbd4>
lun 30
</backing-store>
</target>




/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 nfnode01 {
device /dev/drbd1;
disk /dev/sdb;
address 10.10.10.1:7789;
meta-disk internal;
}
on nfnode02 {
device /dev/drbd1;
disk /dev/sdb;
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 nfnode01 {
device /dev/drbd2;
disk /dev/sdc;
address 10.10.10.1:7790;
meta-disk internal;
}
on nfnode02 {
device /dev/drbd2;
disk /dev/sdc;
address 10.10.10.2:7790;
meta-disk internal;
}
}

resource iscsi4 {
protocol C;
net {
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus; cram-hmac-alg sha1;
shared-secret PUTyourSECREThere;
}
on nfnode01 {
device /dev/drbd4;
disk /dev/sdd;
address 10.10.10.1:7791;
meta-disk internal;
}
on nfnode02 {
device /dev/drbd4;
disk /dev/sdd;
address 10.10.10.2:7791;
meta-disk internal;
}
}

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

Last edit: by Alexander Hjelm.

Adding a third storage drive 4 years 10 months ago #1822

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
All of the config files look OK. We need some debug in order to see what is going on.

Are you able to reproduce the issue and send a copy of /var/log/user.log. You can PM it to me by replying to the email I sent yesterday (assuming you received it).

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

  • Page:
  • 1