[DRBD-user] How to shrink a filesystem safely with DRBD

trickytools jd at trickytools.com
Sat Sep 17 11:17:00 CEST 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

I had to activate drbd on top of an existing filesystem (ext3).
I reduced the filesystem size  to make drbd able to store its internal data.

After some test I got the following message:

"drbd1: attempt to access beyond end of device"

According to the mailing list archive it seems the size of the ext3 fs and
the size of drbd differ.
I understand what is the size of the ext3 fs, but what is the size
considered by drbd, the partition size ?

Here are the commands I used (/dev/sda3 partition size is initially equal to
10Go):

# umount /dev/sda3
# e2fsck -f /dev/sda3
# resize2fs /dev/sda3 9800M
# e2fsck -f /dev/sda3
# drbdadm attach myresource
# drbdadm connect myresource
# drbdadm primary myresource
# drbdadm invalidate myresource
# mount /dev/drbd1 ....


Thansk,

Jerome





More information about the drbd-user mailing list