Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi,
I am trying to create a drbd device with xfs filesystem
I used to do
#mkfs.xfs /dev/drbd/4
It was ok with the third
But now i cannot do the same because of an error message
#cannot open /dev/drbd/4 : Read-only file system
even if i do before that,
# samba stop
# umount 'all drbd devices'
I installed heartbeat, and DRBD is working in kernel,
---------------------------------------
my drbd.conf is ...
#
# drbd.conf
resource r0 {
protocol C;
incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ;
halt -f";
startup {
degr-wfc-timeout 120; # 2 minutes.
}
disk {
on-io-error detach;
}
syncer {
rate 100M;
group 1;
al-extents 257;
}
on SVR-LINUX1 {
device /dev/drbd/1;
disk /dev/hda8;
address 10.100.1.11:7788;
meta-disk internal;
}
on SVR-LINUX2 {
device /dev/drbd/1;
disk /dev/hda8;
address 10.100.1.21:7788;
meta-disk internal;
}
}
resource ext {
protocol C;
incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ;
halt -f";
startup {
degr-wfc-timeout 120; # 2 minutes.
}
disk {
on-io-error detach;
}
syncer {
rate 1M;
group 1;
al-extents 257;
}
on SVR-LINUX3 {
device /dev/drbd/2;
disk /dev/hda8;
address 10.64.1.3:7788;
meta-disk internal;
}
on SVR-LINUX2 {
device /dev/drbd/2;
disk /dev/hdb1;
address 10.64.1.2:7788;
meta-disk internal;
}
}
resource xfs {
protocol C;
incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ;
halt -f";
startup {
degr-wfc-timeout 120; # 2 minutes.
}
disk {
on-io-error detach;
}
syncer {
rate 1M;
group 3;
al-extents 257;
}
on SVR-LINUX3 {
device /dev/drbd/3;
disk /dev/hda9;
address 10.64.1.3:7789;
meta-disk internal;
}
on SVR-LINUX2 {
device /dev/drbd/3;
disk /dev/hdb5;
address 10.64.1.2:7789;
meta-disk internal;
}
}
------------------------------------------------
/etc/ha.d/haresources is
SVR-LINUX1 IPaddr::10.64.1.4/17/eth1 \
drbddisk::r0 \
Filesystem::/dev/drbd/0::/drbd::ext3::usrquota \
bascule_cluster WinPopup:://etc/hosts smb cups httpd quotaondrbd
SVR-LINUX3 IPaddr::10.64.1.5/17/eth0 \
drbddisk::ext \
Filesystem::/dev/drbd/1::/drbd3ext::ext3::usrquota \
drbddisk::xfs \
Filesystem::/dev/drbd/2::/drbd3xfs::xfs::usrquota \
bascule_cluster WinPopup:://etc/hosts quotaondrbd smb cups httpd
----------------------------------
Thanks a lot for your help !!!! !!!
-----------------------
Lionel HAY
DDAF pyrenees Atlantiques
Boulevard Tourasse
64000 PAU
FRANCE
Tel : 0559021254