Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> Linux >> RHEL >> 7 >> How to fix unable to to boot due to lvm swap volume removed




## e.g. remove swap LVM Volume /dev/rhel/swap
## vg=rhel, lv=swap

swapoff /dev/rhel/swap

lvremove /dev/rhel/swap


## comment out mounting of /dev/rhel/swap in /etc/fstab

## when you boot, you may enter emergency boot
## with dracut# prompt and get error message /dev/rhel/swap missing

 
## Fix by editing /boot/grub2/grub.cfg and
## remove the entry from the kernel boot option rd.lvm.lv=rhel/swap

vi /etc/default/grub

/boot/grub2/grub.cfg
...
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet audit=1"
GRUB_DISABLE_RECOVERY="true"
...


reboot




[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]