-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
Submission type
- Bug report
systemd version the issue has been seen with
systemd-231-15.fc25
Used distribution
Fedora 25
In case of bug report: Expected behaviour you didn't see
systemd should not automatically mount LVM volumes in /etc/fstab when the LVM volumes are activated after system boot process completed.
This automatic mount feature will cause filesystem corruption in the worst case because user might not intend this behaviour.
systemd should mount all filesystem which listed at boot time according to the specified option. But systemd should not care the mount status after system boot process completed.
In case of bug report: Unexpected behaviour you saw
Currently, systemd will try to mount LVM volumes in /etc/fstab when the LVM volumes are activated after system boot process completed.
In case of bug report: Steps to reproduce the problem
-
Create LVM volumes.
-
Write /etc/fstab entries for the LVM volumes to mount them at boot time.
-
Reboot the system.
-
Confirm these volumes are mounted.
# mount
--- 8< --- <snip> --- 8< ---
/dev/mapper/vg03-lv02 on /mnt3b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv01 on /mnt3a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv03 on /mnt3c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv01 on /mnt2a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv02 on /mnt2b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv03 on /mnt2c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg01-lv01 on /mnt1a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg01-lv02 on /mnt1b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg01-lv03 on /mnt1c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
- Unmount the filesystem related the LVM volumes.
# umount /mnt1a /mnt1b /mnt1c
# mount
--- 8< --- <snip> --- 8< ---
/dev/mapper/vg03-lv02 on /mnt3b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv01 on /mnt3a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv03 on /mnt3c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv01 on /mnt2a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv02 on /mnt2b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv03 on /mnt2c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
- Deactivate the LVM volumes.
# vgchange -an vg01
device-enumerator: scan all dirs
device-enumerator: scanning /sys/bus
device-enumerator: scanning /sys/class
0 logical volume(s) in volume group "vg01" now active
# mount -a
mount: special device /dev/mapper/vg01-lv01 does not exist
mount: special device /dev/mapper/vg01-lv02 does not exist
mount: special device /dev/mapper/vg01-lv03 does not exist
- Activate the LVM volumes.
# vgchange -ay vg01
device-enumerator: scan all dirs
device-enumerator: scanning /sys/bus
device-enumerator: scanning /sys/class
3 logical volume(s) in volume group "vg01" now active
- Confirm the entries in /etc/fstab are mounted automatically.
# mount
--- 8< --- <snip> --- 8< ---
/dev/mapper/vg03-lv02 on /mnt3b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv01 on /mnt3a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv03 on /mnt3c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv01 on /mnt2a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv02 on /mnt2b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg02-lv03 on /mnt2c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg01-lv02 on /mnt1b type xfs (rw,relatime,seclabel,attr2,inode64,noquota) <--- This is automatically mounted.
/dev/mapper/vg01-lv01 on /mnt1a type xfs (rw,relatime,seclabel,attr2,inode64,noquota) <--- This is automatically mounted.
/dev/mapper/vg01-lv03 on /mnt1c type xfs (rw,relatime,seclabel,attr2,inode64,noquota) <--- This is automatically mounted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels