On 19/08/12 21:32, Daniel Baumann wrote:
> On 08/19/2012 09:09 PM, Daniel Pocock wrote:
>> Should the first line of that read
>>
>> SUBSYSTEM!="block", GOTO="btrfs_lvm_end"
>>
>> and the last line should be
>>
>> LABEL="btrfs_lvm_end"
>
> yes,
>
>> I will test it when I can reboot the machine again, and let you know the
>> results
>
I tweaked it some more, the following variation works and I can mount
the raid1 without having to run the scan manually:
cat > /lib/udev/rules.d/99-btrfs.rules << EOF
SUBSYSTEM!="block", GOTO="btrfs_lvm_end"
ENV{DM_UUID}!="LVM-?*", GOTO="btrfs_lvm_end"
RUN+="/sbin/modprobe btrfs"
RUN+="/sbin/btrfs device scan $env{DEVNAME}"
LABEL="btrfs_lvm_end"
EOF
Do you believe this will be sufficient to use such a RAID1 btrfs volume
on top of LVM as a root filesystem too? I would like to test such a
config later this week.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]