DRBD tip

January 13th, 2011 by dan

I’ve been experimenting with DRBD, which looks great.

One thing confused me though: Resizing a DRBD device.

If the instructions on 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)

Try a reboot! The backing block device size as reported to DRBD may not update if you resize the backing device using LVM2.
For what it’s worth, this is the procedure I have now got for resizing a DRBD device. Obviously replace device names, sizes shown as appropriate.
  1. pvcreate /dev/sdb2
  2. vgextend drbdvg /dev/sdb2
  3. lvextend -L +11G /dev/drbdvg/lvol0 /dev/sdb2
  4. reboot!
  5. On boot, DRBD appeared to automagically resize my DRBD device:  [    8.342750] block drbd0: drbd_bm_resize called with capacity == 20766720
  6. Wait for sync to complete
  7. Resize the filesystem you have on your DRBD device, using e.g: resize2fs.
That is all.

Posted in Uncategorized | No Comments »

Twitter Weekly Updates for 2010-10-24

October 24th, 2010 by dan
  • django-rosetta is rather ace for translations code.google.com/p/django-rosetta/ #

Powered by Twitter Tools.

Tags: tweets
Posted in Uncategorized | No Comments »

django-rosetta is rather ace f…

October 22nd, 2010 by dan

django-rosetta is rather ace for translations code.google.com/p/django-rosetta/

Tags: tweets
Posted in Uncategorized | No Comments »

@lewisking nice- how did you g…

October 16th, 2010 by dan

@lewisking nice- how did you get the effect?

Tags: tweets
Posted in Uncategorized | No Comments »

@small_twitting hello!

October 16th, 2010 by dan

@small_twitting hello!

Tags: tweets
Posted in Uncategorized | No Comments »

Great evening at the cambridge…

October 14th, 2010 by dan

Great evening at the cambridge #makespace meetup - thanks to all present.

Tags: tweets
Posted in Uncategorized | No Comments »

#fowa most awesome tshirt eve…

October 5th, 2010 by dan

#fowa most awesome tshirt ever. uncomfortable juxtaposition with trilby wearing Carson?

Tags: tweets
Posted in Uncategorized | No Comments »

@n_sonic Indeed. We don’t whoo…

October 4th, 2010 by dan

@n_sonic Indeed. We don’t whoop, we’re British. #fowa

Tags: tweets
Posted in Uncategorized | No Comments »

Twitter Weekly Updates for 2010-08-08

August 8th, 2010 by dan
  • celeryq.org looks rather awesome #
  • @welp get an android phone, iphones are so 2008 #

Powered by Twitter Tools.

Tags: tweets
Posted in Uncategorized | No Comments »

@welp get an android phone, ip…

August 5th, 2010 by dan

@welp get an android phone, iphones are so 2008

Tags: tweets
Posted in Uncategorized | No Comments »

« Older Entries

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.