SOLVED!
Here’s the summary of what has happened:
-
Suddenly, none of my qubes were able to start after booting QubesOS. Only dom0 was left working.
-
This apparently was the case because these qubes had been set to “inactive” (see
$ sudo lvscan -all
) by LVM. Activating them manually (using$ sudo lvchange -ay qubes_dom0
) failed. -
This apparently had happened because LVM had added the flag “m” (“MISSING”) to 1 of the PVs (LVM’s Physical Volumes). (See column “Attr” after
$ sudo pvs
.) But the PV was not really “missing”, it was just marked as such. -
This might have happened due to a physical shock to the machine (I don’t see any other possible reason).
SOLUTION:
-
The PV had been wrongly marked as “missing” in LVM metadata file of the VG (Virtual Group).
-
Manually create a backup with
vgcfgbackup
to ‘/etc/lvm/backup/’ (by default), open it with a text editor and delete the erroneous “MISSING” flag, save it. (See page 19 of the PDF at: https://mbroz.fedorapeople.org/talks/LinuxAlt2009_2/lvmrecovery.pdf) -
Load the corrected metadata file using ‘vgcfgrestore’.
-
Use
$ sudo lvchange -ay qubes_dom0
to re-activate all qubes. -
Reboot and find your qubes working again.
Thanks to all the kind souls for helping, giving pointers and advice!