I had the same problem when trying to merge partitions and grow a filesystem. It was really quite scary to see the /home remounted while in the middle of re-partitioning and re-sizing (I had to spend some time diffing the result against a backup to make sure it was OK). I don't really have an answer - I somehow muddled through. But from reading man systemd.mount, it seems temporarily changing the fstab entry to noauto might help. I suspect it would take a reboot or some kind of systemd command to make such a change stick. I'm not that happy to see umount fail to behave it the old expected manner - perhaps it is no longer the umount we expect it to be and should be renamed. I'm not interested in another systemd bashing session (if you don't like it, contribute to an alternative, or lobby elsewhere). But it would be good to get some pointers in how to do admin in a systemd environment. Does anyone know of a HOWTO for doing standard system maintenance tasks, such as re-sizing filesystems, in a systemd environment? On Sat, 25 Oct 2014, Ruediger Meier wrote:
Hi,
just noticed that systemd automatically mounts devices again allthough I've manually umounted them.
Here is what I did
$ mount | grep local /dev/mapper/vg0-local on /mnt/local type ext4 (rw,relatime,data=ordered)
## umount and disable that lvm device $ umount /mnt/local $ lvchange -an vg0/local
systemd[1]: Stopping File System Check on /dev/vg0/local... systemd[1]: Stopped File System Check on /dev/vg0/local.
## enable device again $ lvchange -ay vg0/local
systemd[1]: Found device /dev/mapper/vg0-local. systemd[1]: Found device /dev/disk/by-uuid/177a415d-174d-4c30-8897-5502c0419ef8. systemd[1]: Found device /dev/disk/by-id/dm-uuid-LVM-uF33oY4c9yu00EPAP42a8A2XZCfQTRRPGfiv0cNZRwPKIRJnOboscsc1z60174dd. systemd[1]: Found device /dev/disk/by-id/dm-name-vg0-local. systemd[1]: Found device /dev/dm-0. systemd[1]: Found device /sys/devices/virtual/block/dm-0. systemd[1]: Starting File System Check on /dev/vg0/local... systemd-fsck[6386]: /dev/mapper/vg0-local: clean, 648240/3276800 files, 9308645/13107200 blocks systemd[1]: Started File System Check on /dev/vg0/local. systemd[1]: Mounting /mnt/local... kernel: [ 5542.579700] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: acl,user_xattr systemd[1]: Mounted /mnt/local.
$ mount | grep local /dev/mapper/vg0-local on /mnt/local type ext4 (rw,relatime,data=ordered)
So what kind of automount is this? How to disable this odd behaviour? Is this a known bug?
cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org