The root partition on my wifes laptop was getting full.
root, home and swap is in a lvm, using one luks encrypted pv, for which I give key on boot.
Outside lvm there is EFI and boot partitions, and this partition I now change from Windows to swap.
The windows partition have not been used for five years, so I decided to use it for swap, instead for the current swap lv in the lvm.
Yes i know swap will after this change be unencrypted, but not important.
Easy, I thought, firing up diskdrake, let it in the lvm remove the swap, and extend root.
And the windows partition I deleted and let it create it anew as swap.
diskdrake asked me if to write fstab, i answered yes.
I know diskdrake have failed me before when removing swap in lvm, so I checked fstab and find it is correct.
But, failures:
Upon boot it times out after a couple minutes saying the swap can not be found, and i see it was trying the old location.
Dropping to dracut shell.
Rebooting to Grub where I see it use the parameter resume= pointing to old swap location. So I delete that whole resume= entry and let it boot, but it again fail trying the old location.
It fails me to find where, except fstab (which is correct) the path to swap is recorded.
And how to correct it.
After correcting that, I guess one need to run dracut -f to fix the kernel command line parameter resume= ?
(and open yet another bug for diskdrake)
Painfully I remember someone telling me before and I may have been exactly here before... Still this seem like in empty slot in my brain
Currently that machine is booted using sysresccd live USB and I have opened and mounted that Mageia root partition.
So what should I do now?
(Yes it would have been much easier to instead change the windows partition to an luks encrypted pv and add it to lvm, but user would then need to enter key twice each boot, or be automated in some way I lack skill in totally)
EDIT: I got hit there too - did not solve it but worked around instead by reverting the deletion and adding a pv. Nothing was encrypted anyway.
EDIT2: Workaround: I manually using the live system created a tiny 100MB lv of exact same name as the one I removed before, so now system boots and works. I did not format it (mkswap) so it is really not used as swap. It do use the other swap outside lvm, and that one is in fstab, so system report 16GB swap. Now I wish to know how to make system forget about that tiny "swap" and later remove it after making sure hibernation-resume also use the new swap.