Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
DRBD can't use /dev/md4 because it's in use. It has a mounted filesystem using the entire device.
You have your resource stack out of order. You would share the drbd device created from the md4 device. However, /dev/md4 already has a file system so you must shrink it or use external metadata. I'd suggest you shrink it and use internal metadata.
What you have:
* There are various disk devices (not specified)
* Upon which is run raid providing /dev/md4
* Which contains an ext2 filesystem (/srv)
* Which is shared.
What you want:
* There are various disk devices (not specified)
* Upon which is run raid providing /dev/md4
* Which is the backing device for DRBD
* Which provides /dev/drbd1
* Which contains an ext2 filesystem (/srv)
* Which is shared.
Clear as mud?
Dan
From: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Martin Krammer, New Media Interactive
Sent: Monday, August 19, 2013 4:16 AM
To: drbd-user at lists.linbit.com
Subject: [DRBD-user] DRDB over Software RAID1 - Failure: (104) Can not open backing device
I have two webservers running debian 7 (stable) with software RAID1 and DRBD 8.3.11.
On both servers there are the following shares, which should be connected:
On stella: /dev/md4 919014380 204664 872126436 1% /srv
On laura: /dev/md4 442143360 153168996 266514700 37% /srv
Later, the data of laura should be syncronized on /dev/drdb1.
The conf-file looks like:
resource r1 {
on stella {
device /dev/drbd1;
disk /dev/md4;
address 192.168.1.1:7789;
meta-disk /dev/sdb3[0];
}
on laura {
device /dev/drbd1;
disk /dev/md4;
address 192.168.1.2:7789;
meta-disk /dev/sdb2[0];
}
}
If I try to attach...
root at stella:/srv# drbdadm attach r1
--== Thank you for participating in the global usage survey ==--
The server's response is:
node already registered
1: Failure: (104) Can not open backing device.
Command 'drbdsetup 1 disk /dev/md4 /dev/sdb3 0 --set-defaults --create-device --on-io-error=detach' terminated with exit code 10
Could anybody help me please?
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20130826/47e91cc1/attachment.htm>