[DRBD-user] DRBD and ISCSI problem
Marcio Demetrio Bacci
marciobacci at gmail.com
Mon Feb 25 16:03:05 CET 2019
Hi,
I have a problem between DRBD and iscsi disk mapping.
The problem is the following:
When I restart my Debian 9 server my DRBD service don't start, I believe
because the iscsi doesn't ready.
This is my log messages in /var//log/syslog:
Feb 21 12:03:25 bkp kernel: [ 10.459216] scsi host11: iSCSI Initiator
over TCP/IP
Feb 21 12:03:25 bkp kernel: [ 10.470175] connection1:0: detected conn
error (1020)
Feb 21 12:03:25 bkp kernel: [ 10.473609] scsi 11:0:0:0: Direct-Access
EQLOGIC 100E-00 10.0 PQ: 0 ANSI: 5
Feb 21 12:03:25 bkp kernel: [ 10.550700] sd 11:0:0:0: [sdb] 32212254720
512-byte logical blocks: (16.5 TB/15.0 TiB)
Feb 21 12:03:25 bkp kernel: [ 10.550747] sd 11:0:0:0: Attached scsi
generic sg1 type 0
Feb 21 12:03:25 bkp kernel: [ 10.551021] sd 11:0:0:0: [sdb] Write Protect
is off
Feb 21 12:03:25 bkp kernel: [ 10.551120] sd 11:0:0:0: [sdb] Write cache:
disabled, read cache: enabled, doesn't support DPO or FUA
Feb 21 12:03:25 bkp kernel: [ 10.583534] sd 11:0:0:0: [sdb] Attached SCSI
disk
Bellow, is my resourse file in /etc/drbd.d/hd-bacula.res
resource hd-bacula {
on bkp {
device /dev/drbd0;
disk /dev/lun-hd-bacula;
address 192.168.10.47:7790;
meta-disk internal;
}
on bkp2 {
device /dev/drbd0;
disk /dev/lun-hd-bacula-2;
address 192.168.10.1:7790;
meta-disk internal;
}
}
And /etc/drbd.d/global_common.conf
global {
usage-count yes;
# minor-count dialog-refresh disable-ip-verification
}
common {
protocol C;
handlers {
# These are EXAMPLE handlers only.
# They may have severe implications,
# like hard resetting the node under certain circumstances.
# Be careful when chosing your poison.
# pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh;
/usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ;
reboot -f";
# pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh;
/usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ;
reboot -f";
# local-io-error "/usr/lib/drbd/notify-io-error.sh;
/usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ;
halt -f";
# fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
# split-brain "/usr/lib/drbd/notify-split-brain.sh root";
# out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";
# before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm.sh -p
15 -- -c 16k";
# after-resync-target /usr/lib/drbd/unsnapshot-resync-target-lvm.sh;
}
startup {
# wfc-timeout degr-wfc-timeout outdated-wfc-timeout wait-after-sb
become-primary-on bkp;
wfc-timeout 90;
}
options {
# cpu-mask on-no-data-accessible
}
disk {
# size on-io-error fencing disk-barrier disk-flushes
# disk-drain md-flushes resync-rate resync-after al-extents
# c-plan-ahead c-delay-target c-fill-target c-max-rate
# c-min-rate disk-timeout
}
net {
# protocol timeout max-epoch-size max-buffers unplug-watermark
# connect-int ping-int sndbuf-size rcvbuf-size ko-count
# allow-two-primaries cram-hmac-alg shared-secret after-sb-0pri
# after-sb-1pri after-sb-2pri always-asbp rr-conflict
# ping-timeout data-integrity-alg tcp-cork on-congestion
# congestion-fill congestion-extents csums-alg verify-alg
# use-rle
data-integrity-alg sha1;
cram-hmac-alg sha1;
shared-secret "dont forget me again";
}
syncer {
# rate after al-extents use-rle cpu-mask verify-alg csums-alg
rate 1000M;
}
}
Can anybody help me ?
Regards,
Márcio Bacci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20190225/d870b158/attachment-0001.htm>
More information about the drbd-user
mailing list