Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hello all,
I have drbd-8.2.6 working on dual-primary configuration, mirroring /dev/hdb1
from shd1 with /dev/hdc1 from shd2 using internal metadata setup.
hdb on shd1 have 40GB total capacity with 2 slices (hdb1, hdb2), each slice
20GB
hdc on shd2 have 80GB total capacity with 2 slices (hdc1, hdc2), each slice
40GB
How can i see /dev/drbd0 size? Which command should i use?
fdisk is reporting 19.3GB for /dev/drbd0 but in drbd.conf i configured a
smaller size for it (18GB). Is this normal?
[root at shd1 ~]# fdisk -l /dev/drbd0
Disk /dev/drbd0: 19.3 GB, 19327352832 bytes
[root at shd1 ~]#
[root at shd2 ~]# fdisk -l /dev/drbd0
Disk /dev/drbd0: 19.3 GB, 19327352832 bytes
[root at shd2 ~]#
On booth machines, in drbd.conf i have:
disk {
on-io-error detach;
size 18G;
}
on shd1 {
device /dev/drbd0;
disk /dev/hdb1;
address 192.168.113.6:7789;
meta-disk internal;
}
on shd2 {
device /dev/drbd0;
disk /dev/hdc1;
address 192.168.113.7:7789;
meta-disk internal;
}
Questions:
1. which size is correct for drbd0 device: 18GB or 19.3GB?
2. which directive is valid to be used inside disk {} section of drbd.conf:
"size" or "disk-size"?
Regards,
Alx