-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
needs-reporter-feedback ❓There's an unanswered question, the reporter needs to answerThere's an unanswered question, the reporter needs to answerpid1
Description
Submission type
- Bug report
systemd version the issue has been seen with
systemd-231-15.fc25
Used distribution
Fedora25
Expected behaviour you didn't see
All LVM volumes are mounted successfully after they are activated.
Unexpected behaviour you saw
Some volumes are not mounted after they are activated.
Steps to reproduce the problem
- Attach 3 scsi disks and create 3 VGs using 3 disk as 1 VG per 1 disk. Then 1 VG has 3 LVs.
For example,
# lvs
device-enumerator: scan all dirs
device-enumerator: scanning /sys/bus
device-enumerator: scanning /sys/class
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root fedora -wi-ao---- 15.00g
swap fedora -wi-ao---- 2.00g
lv01 vg01 -wi-ao---- 2.00g
lv02 vg01 -wi-ao---- 2.00g
lv03 vg01 -wi-ao---- 2.00g
lv01 vg02 -wi-ao---- 2.00g
lv02 vg02 -wi-ao---- 2.00g
lv03 vg02 -wi-ao---- 2.00g
lv01 vg03 -wi-ao---- 2.00g
lv02 vg03 -wi-ao---- 2.00g
lv03 vg03 -wi-ao---- 2.00g
- Write mount entry in /etc/fstab
/dev/mapper/vg01-lv01 /mnt1a xfs defaults 0 0
/dev/mapper/vg01-lv02 /mnt1b xfs defaults 0 0
/dev/mapper/vg01-lv03 /mnt1c xfs defaults 0 0
/dev/mapper/vg02-lv01 /mnt2a xfs defaults 0 0
/dev/mapper/vg02-lv02 /mnt2b xfs defaults 0 0
/dev/mapper/vg02-lv03 /mnt2c xfs defaults 0 0
/dev/mapper/vg03-lv01 /mnt3a xfs defaults 0 0
/dev/mapper/vg03-lv02 /mnt3b xfs defaults 0 0
/dev/mapper/vg03-lv03 /mnt3c xfs defaults 0 0
- Reboot the system and confirm the listed volumes are mounted after reboot.
# mount
--- 8< --- 8< ---
/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)
/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/vg03-lv01 on /mnt3a type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv02 on /mnt3b type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/dev/mapper/vg03-lv03 on /mnt3c type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
- Run loop.sh described below and check all mount entries in step 3 are mounted.
loop.sh
#!/bin/bash
count=0
while true
do
echo "vgchange -ay"
vgchange -ay vg01; vgchange -ay vg02 ; vgchange -ay vg03
df |grep mnt
sleep 5
echo "umount"
umount /mnt1a
umount /mnt1b
umount /mnt1c
umount /mnt2a
umount /mnt2b
umount /mnt2c
umount /mnt3a
umount /mnt3b
umount /mnt3c
echo "vgchange -an"
vgchange -an vg01
vgchange -an vg02
vgchange -an vg03
echo "Test: " $count " times"
((count++))
sleep 5
done
** NOTE 1 ** The issue occurs after system startup. The issue doesn't occur at system startup.
** NOTE 2 ** The automatic mount behavior in systemd is expected as mentioned in #6066.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-reporter-feedback ❓There's an unanswered question, the reporter needs to answerThere's an unanswered question, the reporter needs to answerpid1