On 19/08/12 19:01, Daniel Baumann wrote:
> i do neither use nor about lvm, however, something like this in e.g.
> /lib/udev/rules.d/99-btrfs.rules should come close to it:
>
> ---snip---
> SUBSYSTEM!="block", GOTO="btrfs_end"
> ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member", GOTO="btrfs_lvm_end"
> RUN+="/sbin/modprobe btrfs"
> RUN+="/sbin/btrfs device scan $env{DEVNAME}"
>
> LABEL="btfs_lvm_end"
> ---snap---
>
Should the first line of that read
SUBSYSTEM!="block", GOTO="btrfs_lvm_end"
and the last line should be
LABEL="btrfs_lvm_end"
?
I will test it when I can reboot the machine again, and let you know the
results
There are various reasons for using logical volumes as the raw device
for btrfs RAID1, the most compelling reasons
a) pvmove the LV to another device without downtime if necessary
b) raw partitions can be extended, but they can't be moved to a
different starting cylinder without downtime, LVM doesn't have such problems
c) btrfs doesn't feature encryption yet, it is currently recommended to
encrypt the raw device somehow
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]