2017-09-21 12:26 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0013548CentOS-7systemdpublic2017-07-14 08:54
Reporterleo.baltus@npo.nl 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Platformx86_64OSCentosOS Version7
Product Version7.3.1611 
Target VersionFixed in Version 
Summary0013548: systemd unmounts /boot when duplicate uuid are found
DescriptionWhen restoring from backup, we mounted a snapshot OS disk, which obviously has all the same properties as the current mounted disk.
We mounted it by using
vgimportclone
vgchange -a y $newvg
mount -o nouuid /dev/$newvg/home /mnt
<do restore of selected files>
umount /mnt
vgexport $newvg
vgchange -an $newvg
Now I am done restoring, I get rid of the disk:

/bin/sh -c echo 1 > /sys/block/sdb/device/delete

systemd responds:
systemd[1]: Unmounting /boot.../boot

so I mounted manually:
mount /boot

systemd says:
systemd[1]: Unit boot.mount is bound to inactive unit dev-disk-by\x2duuid-6029c120\x2d3f24\x2d4323\x2d81a7\x2d9b55b6231672.device. Stopping, too.
systemd[1]: Unmounting /boot...
Steps To Reproducesee above
Additional InformationI guess this is a corner case, but it could be avoided if both uuid and devicename is considered when marking a device as inactive. This is a classic Bios system, no EFI involved.

rpm -q systemd
systemd-219-30.el7_3.9.x86_64

systemctl --version
systemd 219
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN
TagsNo tags attached.
abrt_hash
URL
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2017-07-14 08:54 leo.baltus@npo.nl New Issue
+Issue History