On 2019-04-29 13:31, Andrei Borzenkov wrote:
29.04.2019 20:20, Austin S. Hemmelgarn пишет:
As of today there is no provision for automatic mounting of incomplete
multi-device btrfs in degraded mode. Actually, with systemd it is flat
impossible to mount incomplete btrfs because standard framework only
proceeds to mount it after all devices have been seen.
Do you talk about the mount during boot or about mounting in general?
Both,
Sorry for chiming in, but the quoted part was mine, and I was speaking
about automatic mount during boot. Manual mount using "mount" command
after boot is of course possible (and does not involve systemd in any
way). There is systemd-mount tool which will likely have the same issue.
Based on my own experience, it still has issues in some cases, even if
mounted manually. In the past, I've had systemd _unmount_ degraded
BTRFS volumes I had just manually mounted because it thought they
shouldn't be mounted (because devices were missing, therefore the device
ready ioctl was returning false). Only ever seems to happen for volumes
in `/etc/fstab` or managed as native mount units, but still an issue.