[systemd-devel] mount unit with special requirements

Michael Hirmke mh at mike.franken.de
Mon Sep 10 07:55:00 UTC 2018


Hi,

[...]
>>> Isn't that commonly done using LVM? If it were on a logical volume,
>>> you
>>> could fsfreeze /var/backup (to suspend writes during snapshotting),
>>> make a
>>> LVM snapshot, thaw, mount the read-only snapshot elsewhere and
>>> rsync off it.
>>
>> I never used LVM and this system does not use an LVM partitioning.

>fsfreeze should work without LVM. Of course you shouldn't be writing
>tons of data to the file system while it's frozen, therefore LVM
>snapshot + quick unfreeze would be more robust.

I'll have a look, perhaps it really can be useful in this scenario.

>>
>>> (I would just use `umount /var/backup`, however.)
>>
>> Can't do that as long as the mount unit is under systemd control.
>> A few seconds later systemd remounts it on its own.
>>

>"noauto" mount option?

This would prevent it from being mounted at startup, which is necessary.

>Martin

Thx and bye.
Michael.
-- 
Michael Hirmke


More information about the systemd-devel mailing list