[systemd-devel] mount unit with special requirements

Mantas Mikulėnas grawity at gmail.com
Mon Sep 10 08:13:52 UTC 2018


On Sat, Sep 8, 2018 at 8:56 PM Michael Hirmke <mh at mike.franken.de> wrote:

> Hi *,
>
> [...]
> >> - The partition has to be mounted on boot.
> >> - It has to be unmounted before the nightly copy job, so that an fsck
> >>   can be performed.
> >> - After that it has to be mounted read only, so that during the copy
> >>   job no other machine can write to it.
> >> - After finishing the copy job, the partition has to be remounted read
> >>   write again.
> >>
>
> >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.
>

You asked for an easier way.


>
> [...]
> >> jobs fails with messages like "Specified filename /dev/sdf1 has no
> >> mountpoint." when *stopping* var-backup.mount.
> >>
>
> >Can you be more specific about the messages you get? The closest I found
> to
> >yours was "Specified filename * is not a mountpoint" from the `fuser`
> >command ? which is not called by systemd nor umount as far as I could
> grep.
>
> "Specified filename /dev/sdf1 has no mountpoint." is *exactly* what I
> get when calling "systemctl stop var-backup.mount" - but only
> occasionally as I wrote.
>

This message does not exist in systemd's source code (and for that matter,
not in any of the other usual suspects: util-linux, psmisc, coreutils.)

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180910/0d90c337/attachment.html>


More information about the systemd-devel mailing list