<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Sep 8, 2018 at 8:56 PM Michael Hirmke <<a href="mailto:mh@mike.franken.de">mh@mike.franken.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi *,<br>
<br>
[...]<br>
>> - The partition has to be mounted on boot.<br>
>> - It has to be unmounted before the nightly copy job, so that an fsck<br>
>> can be performed.<br>
>> - After that it has to be mounted read only, so that during the copy<br>
>> job no other machine can write to it.<br>
>> - After finishing the copy job, the partition has to be remounted read<br>
>> write again.<br>
>><br>
<br>
>Isn't that commonly done using LVM? If it were on a logical volume, you<br>
>could fsfreeze /var/backup (to suspend writes during snapshotting), make a<br>
>LVM snapshot, thaw, mount the read-only snapshot elsewhere and rsync off it.<br>
<br>
I never used LVM and this system does not use an LVM partitioning.<br></blockquote><div><br></div><div>You asked for an easier way.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[...]<br>
>> jobs fails with messages like "Specified filename /dev/sdf1 has no<br>
>> mountpoint." when *stopping* var-backup.mount.<br>
>><br>
<br>
>Can you be more specific about the messages you get? The closest I found to<br>
>yours was "Specified filename * is not a mountpoint" from the `fuser`<br>
>command ? which is not called by systemd nor umount as far as I could grep.<br>
<br>
"Specified filename /dev/sdf1 has no mountpoint." is *exactly* what I<br>
get when calling "systemctl stop var-backup.mount" - but only<br>
occasionally as I wrote.<br></blockquote><div><br></div><div>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.)</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>