Hiya,
I'm new to Centos but learning rapidly but I have been using FreeBSD. I'm trying to setup a HA NFS server using 2 machines. Both machines are running 4.3 updated to the latest via Yum.
I did yum groupinstall drbd-heartbeat and yum install kernel-module-drbd-kernel-module-drbd-2.6.9-34.EL to match my kernel.
The problem I have is that on 1 machine drbd works fine, but when I start drbd on the other I get an error:
Starting DRBD resources: [ d0 ioctl(,SET_DISK_CONFIG,) failed: Invalid argument Lower device is already mounted.
cmd /sbin/drbdsetup /dev/drbd0 disk /dev/hde1 internal -1 failed!
It is not mounted as far as I can tell - df -a only shows /dev/hda and fstab has no entry for /dev/hde1.
I have also tried deleting the partion with parted and recreating it. I have also tried using just /dev/hde.
The /etc/drbd.conf is:
resource drbd0 { protocol C;
on fs1.bathnetworks.local { device /dev/drbd0; disk /dev/hde1; address 10.0.0.1:7788; meta-disk internal; }
on shorty.bathnetworks.local { device /dev/drbd0; disk /dev/hdc1; address 10.0.0.2:7788; meta-disk internal; } }
fs1 is the machine I am having trouble with. Any help with fixing this would be appreciated.
Rob
On Sun, 2006-06-11 at 20:59 +0100, centos@bathnetworks.com wrote:
Hiya,
I'm new to Centos but learning rapidly but I have been using FreeBSD. I'm trying to setup a HA NFS server using 2 machines. Both machines are running 4.3 updated to the latest via Yum.
I did yum groupinstall drbd-heartbeat and yum install kernel-module-drbd-kernel-module-drbd-2.6.9-34.EL to match my kernel.
The problem I have is that on 1 machine drbd works fine, but when I start drbd on the other I get an error:
Starting DRBD resources: [ d0 ioctl(,SET_DISK_CONFIG,) failed: Invalid argument Lower device is already mounted.
cmd /sbin/drbdsetup /dev/drbd0 disk /dev/hde1 internal -1 failed!
It is not mounted as far as I can tell - df -a only shows /dev/hda and fstab has no entry for /dev/hde1.
I have also tried deleting the partion with parted and recreating it. I have also tried using just /dev/hde.
The /etc/drbd.conf is:
resource drbd0 { protocol C;
on fs1.bathnetworks.local { device /dev/drbd0; disk /dev/hde1; address 10.0.0.1:7788; meta-disk internal; }
on shorty.bathnetworks.local { device /dev/drbd0; disk /dev/hdc1; address 10.0.0.2:7788; meta-disk internal; } }
fs1 is the machine I am having trouble with. Any help with fixing this would be appreciated.
Rob
I think you are not understanding what drbd does.
It is network RAID1 ... you can't mount and use the DRBD device on both machines at the same time. It is designed so that if the first machine fails, the second machine / partition is used instead.
On Sun, 2006-06-11 at 20:59 +0100, centos@bathnetworks.com wrote:
Hiya,
I'm new to Centos but learning rapidly but I have been using FreeBSD. I'm trying to setup a HA NFS server using 2 machines. Both machines are running 4.3 updated to the latest via Yum.
I did yum groupinstall drbd-heartbeat and yum install kernel-module-drbd-kernel-module-drbd-2.6.9-34.EL to match my kernel.
The problem I have is that on 1 machine drbd works fine, but when I start drbd on the other I get an error:
Starting DRBD resources: [ d0 ioctl(,SET_DISK_CONFIG,) failed: Invalid argument Lower device is already mounted.
cmd /sbin/drbdsetup /dev/drbd0 disk /dev/hde1 internal -1 failed!
It is not mounted as far as I can tell - df -a only shows /dev/hda and fstab has no entry for /dev/hde1.
I have also tried deleting the partion with parted and recreating it. I have also tried using just /dev/hde.
The /etc/drbd.conf is:
resource drbd0 { protocol C;
on fs1.bathnetworks.local { device /dev/drbd0; disk /dev/hde1; address 10.0.0.1:7788; meta-disk internal; }
on shorty.bathnetworks.local { device /dev/drbd0; disk /dev/hdc1; address 10.0.0.2:7788; meta-disk internal; } }
fs1 is the machine I am having trouble with. Any help with fixing this would be appreciated.
Rob
I think you are not understanding what drbd does.
It is network RAID1 ... you can't mount and use the DRBD device on both machines at the same time. It is designed so that if the first machine fails, the second machine / partition is used instead.
Jonny,
Thanks for the info. I understand that point. However, with DRBD not running or mounted on shorty, Fs1 still gives the same error.
Rob
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, Jun 12, 2006 at 07:14:23AM +0100, centos@bathnetworks.com wrote:
On Sun, 2006-06-11 at 20:59 +0100, centos@bathnetworks.com wrote:
Starting DRBD resources: [ d0 ioctl(,SET_DISK_CONFIG,) failed: Invalid argument Lower device is already mounted.
I think you are not understanding what drbd does.
It is network RAID1 ... you can't mount and use the DRBD device on both machines at the same time. It is designed so that if the first machine fails, the second machine / partition is used instead.
Jonny,
Thanks for the info. I understand that point. However, with DRBD not running or mounted on shorty, Fs1 still gives the same error.
You are correct. The "lower device" in this message is the physical disk. Specifically, /dev/hde1 (as configured).
I have no idea why you are getting this message, but that Invalid Argument error doesn't look to good for me.
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, Jun 12, 2006 at 07:14:23AM +0100, centos@bathnetworks.com wrote:
On Sun, 2006-06-11 at 20:59 +0100, centos@bathnetworks.com wrote:
Starting DRBD resources: [ d0 ioctl(,SET_DISK_CONFIG,) failed: Invalid argument Lower device is already mounted.
I think you are not understanding what drbd does.
It is network RAID1 ... you can't mount and use the DRBD device on
both
machines at the same time. It is designed so that if the first
machine
fails, the second machine / partition is used instead.
Jonny,
Thanks for the info. I understand that point. However, with DRBD not running or mounted on shorty, Fs1 still gives the same error.
You are correct. The "lower device" in this message is the physical disk. Specifically, /dev/hde1 (as configured).
I have no idea why you are getting this message, but that Invalid Argument error doesn't look to good for me.
Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
Thanks Rodrigo,
I'm still having problems with this. I've currently got the machine running stand alone (no network connections). I have changed the hard drives just in case with no change. I have also moved drives around so that there is a diffent drive running as hdc instaed of hde, again the same error occours. Adding more (smaller) partitions gives the same result.
One thing I have found is that /dev/drbd0 was missing, but on the other, working machine it was created presumably when I installed drdb etc. Perhaps the installation was messedup in some way. The only other thing I can think of is that Centos is reporting the drive as being mounted when it isn't.
Rob