[DRBD-user] Unable to resize a block device after it has been shrinked with 0.7.21

Cyril Bouthors cyril at bouthors.org
Fri Sep 15 22:47:04 CEST 2006

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


I'm able to shrink a DRBD block device:

root at nfsb3:~# dd if=/dev/zero of=/dev/md0 bs=1M
dd: writing `/dev/md0': No space left on device
2001+0 records in
2000+0 records out
2097152000 bytes transferred in 80.382527 seconds (26089650 bytes/sec)
root at nfsb3:~# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 s0 n0 ].
root at nfsb3:~# drbdsetup /dev/drbd0 resize -d 1500M
root at nfsb3:~#

drbd0: Creating state block
drbd0: resync bitmap: bits=479232 words=14976
drbd0: size = 1872 MB (1916928 KB)
              ^^^^^^^
drbd0: 1916928 KB now marked out-of-sync by on disk bit-map.
drbd0: Assuming that all blocks are out of sync (aka FullSync)
drbd0: 1916928 KB now marked out-of-sync by on disk bit-map.
drbd0: drbdsetup [5104]: cstate Unconfigured --> StandAlone
drbd0: drbdsetup [5117]: cstate StandAlone --> Unconnected
drbd0: drbd0_receiver [5118]: cstate Unconnected --> WFConnection
drbd0: resync bitmap: bits=384000 words=12000
drbd0: size = 1500 MB (1536000 KB)
              ^^^^^^^
drbd0: 1536000 KB now marked out-of-sync by on disk bit-map.

But I'm not able to resize it up:

root at nfsb3:~# drbdsetup /dev/drbd0 resize -d 1600M
root at nfsb3:~#                                ^^^^^

drbd0: Requested disk size is too big (1638400 > 1536000)

I don't think it's normal.
-- 
Cyril Bouthors
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20060915/82aa4d03/attachment.pgp>


More information about the drbd-user mailing list