Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi, you should not resize the FS on the devices used as physical disks for the DRBD device. You should go the storage stack from bottom UP (see the graphic on http://www.drbd.org/ as reference). 1) resize the LV's - the "DISK DRIVER/DISK" Part of the graphic refereenced above (lvresize -L+1G ) 2) resize the DRBD device - the "DRBD" Part of the graphic refereenced above (see manual) 3) resize the fs on the DRBD device - the "FILE SYSTEM" Part of the graphic refereenced above (resize2fs /dev/drbdX) And most importantly: Cretae a full backup first ! :) With your procedure you can't start DRBD again because probably the internal meta data of DRBD is overwritten with FS data (resize2fs wil use the full device and does not know of DRBD meta data) - BAD. Robert ml at bortal.de schrieb: > Hello List, > > i would like to resize my drbd disk. I have the following requirements: > - meta-disk: internal > - Filesystem is ext3 > - all on top of a lvm partition > - if possible, i would like to resize it online > > I tried: > MyBox:~# lvextend -v -L+1G /dev/MyBox/data > Finding volume group MyBox > Archiving volume group "MyBox" metadata (seqno 20). > Extending logical volume data to 7.00 GB > Creating volume group backup "/etc/lvm/backup/MyBox" (seqno21). > Found volume group "MyBox" > Found volume group "MyBox" > Loading gate--imos--1-data table > Suspending MyBox-data (253:5) > Found volume group "MyBox" > Resuming MyBox-data (253:5) > Logical volume data successfully resized > > > MyBox:~# resize2fs /dev/MyBox/data 7G > resize2fs 1.40-WIP (14-Nov-2006) > resize2fs: Device or resource busy while trying to open > /dev/MyBox/data > Couldn't find valid filesystem superblock. > > > IF i stop drbd, then the device is not busy anymore and i can resize > the fs. But then i wont be able to start drbd again in order to do > online resizing. > > Any tips or hints would be great! > > > Thanks, > Mario > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user