[systemd-devel] systemd 210 - mount/umount/remount

Michael Hirmke garten at mike.franken.de
Tue Oct 18 18:01:00 UTC 2016


Hi Karel,

>On Fri, Oct 14, 2016 at 12:06:00PM +0200, Michael Hirmke wrote:
>> Hi *,
>>
>> I've read the man pages and some more documentation about the mount
>> behaviour of systemd, but I couldn't find a definitive answer to my
>> questions.
>> I have a backup script, that copies all files to backup to a hard disk
>> partition, then duplicates the partition to one on a second disk, which
>> in turn is changed every day. Before duplicating, the script tries to
>> umount the partition on the original disk, does an fsck and then mounts
>> the partition read only. When duplicating is finished, the original
>> partition is remounted read write again.

>Not sure if you copy individual files or all partition (dd(1) or so),
>but would be enough to use fsfreeze(8) to avoid umount/mount?

I copy individual files with rsync.
Therefore I want to make sure, the original partition is clean.

>I guess you can call fsck on duplicated partition on the second disk.

No, because when copying individual files I never can be sure, that
everything goes right.

>IMHO fsfreeze is less invasive than umount. Or use LVM snapshots ;-)

I know :)
But that is not what I need.


>    Karel

Thx and bye.
Michael.
-- 
Michael Hirmke


More information about the systemd-devel mailing list