.config:387: trying to assign nonexistent symbol BLK_DEV_ENBD
CONFIG_BLK_DEV_ENBD=m
tesuji-root> cat /usr/src/linux-2.6.5-1.358/include/config/blk/dev/enbd/module.h #define CONFIG_BLK_DEV_ENBD_MODULE 1I also created a drivers/block/Kconfig entry. This looks useful. The build system recognized that ENBD was new, and asked y/m/n about it. The actual entry I added to Kconfig was:
config BLK_DEV_ENBD tristate "Extended Network Block Device support" ---help--- Saying Y or M here will enable support for the exporting block devices across a network. Use devices /dev/nda, /dev/ndb, and so on.
> As someone who is using LBDs in production, I'd like to know what the > risk exposure is for data loss at this point. If there are really > numerous flaws such as the ones you patched, are we at great risk? That's a good question. I'm sure it depends on the filesystem you are using. I see _lots_ of LBD problems in ext3 and reiserfs. I haven't looked too closely at other filesystems, but xfs looks to be mostly correct (the only xfs LBD bug I found was in a debugging function that might not even be compiled by default). I assume that the first patch that I sent impacts all filesystems, but not being a filesystem expert I am not sure of the implications for data safety. My best guess is that you are probably OK with xfs, especially if it has been working up till now. If using ext3 or reiserfs, you would have probably already seen data corruption.
Does anybody have any suggestions on what I can use to coalesce partitions together from 3 PC's? I didn't have much luck over the weekend on my tests. Testing Summary on 3 PCs with 2 2TB real partitions each: local 2TB + LVM(2 devices) : OK GNBD 2TB(4 imports 2 PCs) + LVM(6 devices) : FAIL(mkfs xfs) GNBD 2TB(2 imports 2 PCs) + LVM(2 devices) : FAIL(dd ok, mkfs xfs fails) GNBD 2TB(2 imports 2 PCs) + MD(2 devices) : FAIL(dd ok, mkfs xfs fails) GNBD 2TB(2 imports same PC) + LVM(2 devices) : FAIL(mkfs xfs) GNBD 2TB(2 imports same PC) + MD(2 devices) : FAIL(dd 100000 ct ok, mkfs xfs fails, mkfs ext3 fails) GNBD 4TB(1 import linear array) + LVM(1 device) : FAIL(mkfs xfs) GNBD 4TB(1 import linear array) : FAIL(dd 5000 ct ok, mkfs xfs fails) GNBD 2TB(1 import) + LVM(1 device) : OK(dd,mkfs xfs on LVM device) GNBD 2TB(1 import) : OK(dd,mkfs xfs on gnbd device) Testing Summary on 1 PC with 2 2TB partitions and 1 PC with 4 .37GB partitions: local 2TB + LVM(2 devices) : OK GNBD .37GB(4 imports 2 PCs) + LVM(6 devices) : not tested GNBD .37GB(2 imports same PC) + LVM(2 devices) : FAIL(dd ok, mkfs xfs fails, mkfs xfs waiting for fsync(), mkfs reiserfs ok, mount reiserfs fails) GNBD .37GB(2 imports same PC) + MD(2 devices) : OK(dd,mkfs xfs on MD device, mkfs reiserfs ok, mount reiserfs fails) GNBD .74GB(1 import linear array) + LVM(1 device): FAIL(mkfs xfs fails, dd ok) GNBD .74GB(1 import linear array) : OK(dd,mkfs xfs on gnbd device) GNBD .37GB(1 import) + LVM(1 device) : OK(dd,mkfs xfs on LVM device) GNBD .37GB(1 import) : OK(dd,mkfs xfs on gnbd device)
You can e-mail the author with questions or comments: