[DRBD-user] DRBD LVM device-mapper error

Felix Frank ff at mpexnet.de
Wed Jan 11 14:09:55 CET 2012

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


Hi,

On 01/11/2012 01:24 PM, Yuan Luo wrote:
> dd if=/dev/null of=/dev/sda1 bs=1M count=1

don't you mean /dev/zero?

/dev/sda1 is unlikely to start in a boot sector, I'm not sure about LVM
metadata though. If this wiped it, I guess you're good(?)

*If* you ever do need to wipe a boot sector, be aware that its 512
byte(!) not 1M (that's 2048 boot sectors' worth of data).

Finally, manipulating the backing devices of a live DRBD is horribly bad
practice as far as I'm concerned.

HTH,
Felix



More information about the drbd-user mailing list