Forum
Welcome, Guest
Username: Password: Remember me

TOPIC:

2 or more iSCSI 4 years 8 months ago #1193

Hi, are there any step by step guide to add drives then make them into a new iSCSI?

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

2 or more iSCSI 4 years 8 months ago #1194

The procedure would be the same as building a new system which requires an update to the DRBD, TGT and LVM configurations.

You can follow the steps in the reference design guides:

halizard.com/images/pdf/iscsi-ha_2-node_...Server_6.x_final.pdf

halizard.com/images/pdf/iscsi-ha_2-node_...Server_7.x_final.pdf

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

2 or more iSCSI 4 years 8 months ago #1195

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

/etc/tgt/targets.conf

############### BEGIN HALIZARD INSERTION ###############
<target iqn.2015.com.halizard:noSAN>
backing-store /dev/drbd1
lun 10
backing-store /dev/drbd2
lun 20
</target>
############### END HALIZARD INSERTION ###############


/etc/iscsi-ha/iscsi-ha.conf

DRBD_RESOURCES=iscsi1:iscsi2


Would this be the correct config to add another storage?
How would i go to restart it after i add it?

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

Last edit: by Alexander Hjelm.

2 or more iSCSI 4 years 8 months ago #1196

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 703
You must also create a new drbd resouce in /etc/drbd.conf

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

2 or more iSCSI 4 years 8 months ago #1197

Hi, i did that like this, forgott to post it in my other post.


/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;
}
}



This and a reboot on both nodes should do it?

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

Last edit: by Alexander Hjelm.

2 or more iSCSI 4 years 8 months ago #1198

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 703
Yes. reboot would do it.

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