Hi, I ma trying configure drbd in debian sarge i ahve configured the /etc/drbd.conf file as suggested in NFS how to when i try to run the following command #drbdadm up all Lower device (/dev/sda2) is already mounted Command '/sbin/drbdsetup /dev/drbd0 disk /dev/sda2 internal -1 --on-io-error=detach' terminated with exit code 20 I have not done anything on creating new partition for this is it necessary to create new partition for drbd or we can use internal option. My configuration as follows on test { device /dev/drbd0; disk /dev/sda2; address 172.2.5.213:7788; meta-disk internal; # meta-disk is either 'internal' or '/dev/ice/name [idx]' # # You can use a single block device to store meta-data # of multiple DRBD's. # E.g. use meta-disk /dev/hde6[0]; and meta-disk /dev/hde6[1]; # for two different resources. In this case the meta-disk # would need to be at least 256 MB in size. # # 'internal' means, that the last 128 MB of the lower device # are used to store the meta-data. # You must not give an index with 'internal'. } on test1 { device /dev/drbd0; disk /dev/sda2; address 172.2.5.232:7788; meta-disk internal; } } i really need some help here thanks for your help
You don't have any resource string in drbd.conf. The one from the tutorial looks like this: Code: resource r0 { protocol C; incon-degr-cmd "halt -f"; startup { degr-wfc-timeout 120; # 2 minutes. } disk { on-io-error detach; } net { } syncer { rate 10M; group 1; al-extents 257; } on server1 { # ** EDIT ** the hostname of server 1 (uname -n) device /dev/drbd0; # disk /dev/sda8; # ** EDIT ** data partition on server 1 address 192.168.0.172:7788; # ** EDIT ** IP address on server 1 meta-disk /dev/sda7[0]; # ** EDIT ** 128MB partition for DRBD on server 1 } on server2 { # ** EDIT ** the hostname of server 2 (uname -n) device /dev/drbd0; # disk /dev/sda8; # ** EDIT ** data partition on server 2 address 192.168.0.173:7788; # ** EDIT ** IP address on server 2 meta-disk /dev/sda7[0]; # ** EDIT ** 128MB partition for DRBD on server 2 } }