This is a fresh install + online updates, where I’ve write some scripts to create a snapshot of MySQL file system each 4 hours.
All work’s fine for few days and fews snapshots already taken.
Now I’ve restarted this linux and the systemctl always timeout when it mounting this FS and this **** (sorry , I hate systemctl) “enter” in emergency mode but don’t give me the prompt to take any action. (always , for some reason it enter in emergency mode, I need to boot with DVD or rescue disc and use they emergency mode)
So , after reboot with my rescue DVD , I’ve comment at /etc/fstab the mount of this FS to able boot this linux.
After boot successfully , without mount this FS and I execute a “vgchange -ay” , take close of 10 minutes to LVM “check” the snapshots…
You could try to add x-systemd.device-timeout=10m to mount options in fstab (make it 15m to be sure). This should cause mount to wait enough time for device to appear. Or add nofail - in this case it will skip if device still is not available after timeout and continue boot.
At the end there should be some timeout - you do not want your system to wait indefinitely if device is not present.
I say that, because as far I remember, with SystemV the things works and at the end the system always boot…
This FS for example (database FS), as far I remember, with SystemV behave it will take the time is need to mount and if fail they just continue , since it isn’t the root.
At least you are able to connect the host remotely and check what happen.
With Systemd , for my point of view and felling as old linux user (desktop and server), appear to be fragile, if anything go weird they stop at emergency mode and stop the boot.
If this is a sever/machine which you expected to run 24x7 and able to suffer a hard reset sometime (any reason) , with systemd you can (and at my opinion, you will) be forced to open the machine console frequently to discovery a fsck take longer and it just stop into emergency mode.
At my environment (two opensuse VMs) there is one aggravation , which is the emergency mode do not work.
It give me the message is entering in emergency mode and “freeze” , don’t give the prompt to type any command and the message entering into emergency mode start to repeat indefinitely .
This behave (don’t give me the prompt) do not occur at first time I was “obligated” to use systemd (opensuse distro upgrades) , then after some update or configuration of my environment , this start occur…
I think the primary difference is not so much sysvinit or systemd, but the fact that in the past LVM was started synchronously during boot (i.e. boot process waited until “vgchange -ay” completes) while now activation happens concurrently in response to new devices. I think it’s worth to raise this issues on both LVM and systemd lists to at least make them aware of such conditions.
which is the emergency mode do not work.
Yes, this bug is almost one year old but for some reason openSUSE maintainer is unwilling to release update for 13.1.