Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi all,
I am new to drbd. I wanted to set up a test
environment. However, During the configuration, I got
this error :
[root at redhatA ~]# drbdadm up all
Failure: (114) Lower device is already claimed. This
usually means it is mounted.
Command 'drbdsetup /dev/drbd0 disk
/dev/VolGroup00/LogVol00 /dev/VolGroup00/LogVol00
flexible --set-defaults --create-device
--on-io-error=detach' terminated with exit code 10
The /etc/drbd.conf is
[root at redhatA ~]# cat /etc/drbd.conf
# drbd.conf
resource testResource {
protocol C;
startup {
wfc-timeout 300;
degr-wfc-timeout 120; # 2 minutes.
}
disk {
on-io-error detach;
}
net {
}
syncer {
rate 10M;
al-extents 257;
}
on redhatA {
device /dev/drbd0;
disk /dev/VolGroup00/LogVol00;
address 192.168.10.19:7788;
meta-disk internal;
}
on redhatB {
device /dev/drbd0;
disk /dev/VolGroup00/LogVol00;
address 192.168.10.20:7788;
meta-disk internal;
}
}
#
The fdisk, df and fstab as following
[root at redhatA ~]# fdisk -l
Disk /dev/sda: 18.3 GB, 18373206016 bytes
255 heads, 63 sectors/track, 2233 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/sda1 * 1 13 104391 83
Linux
/dev/sda2 14 2233 17832150 8e
Linux LVM
[root at redhatA ~]# df
Filesystem 1K-blocks Used Available
Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
16759644 3027388 12867184
20% /
/dev/sda1 101086 10925 84942
12% /boot
tmpfs 127852 0 127852
0% /dev/shm
[root at redhatA ~]#
[root at redhatA ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3
defaults 1 1
LABEL=/boot /boot ext3
defaults 1 2
devpts /dev/pts devpts
gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs
defaults 0 0
proc /proc proc
defaults 0 0
sysfs /sys sysfs
defaults 0 0
/dev/VolGroup00/LogVol01 swap swap
defaults 0 0
Is there anything wrong with my configuration file?
Thank you very much
Best Regards,
Hien
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs