DRBD tip
Thursday, January 13th, 2011I’ve been experimenting with DRBD, which looks great.
One thing confused me though: Resizing a DRBD device.
If the instructions on http://www.drbd.org/users-guide/s-resizing.html#s-growing-online are not working for you, and you get messages like this:
[ 1578.883204] block drbd0: Requested disk size is too big (19922944 > 10383360)
- pvcreate /dev/sdb2
- vgextend drbdvg /dev/sdb2
- lvextend -L +11G /dev/drbdvg/lvol0 /dev/sdb2
- reboot!
- On boot, DRBD appeared to automagically resize my DRBD device: [ 8.342750] block drbd0: drbd_bm_resize called with capacity == 20766720
- Wait for sync to complete
- Resize the filesystem you have on your DRBD device, using e.g: resize2fs.