Article 5AQSD /dev/sda2 root swap partition deleted accidentally while increasing the partition space of /dev/mapper/rhel-root space

/dev/sda2 root swap partition deleted accidentally while increasing the partition space of /dev/mapper/rhel-root space

by
bomabay123
from LinuxQuestions.org on (#5AQSD)
On my Oracle virtualbox 6.1 i have installed RHEL 7.9
i have created /dev/sda1 - 210mb for boot, 2. /dev/sda2 - 4gb for root swap and 3. /dev/mapper/rhel-root for the root space. my root space vdi was around 16 gb and total vdi space was 20GB. when i try to create more space in rhel-root through fdisk by accidentlly /dev/sda2 deleted.
Now when i power start from oracle virtualbox it is lending to dracut# prompt and issue warning /dev/sda2 root swap and /dev/mapper/rhel-root space missing.

now can anyone help me, how to recover the /dev/sda2 root swap and to resolve this issue ?

thread issue date 23/11/2020latest?d=yIl2AUoC8zA latest?i=lyfVKebzl54:ZvxYI3LzhM0:F7zBnMy latest?i=lyfVKebzl54:ZvxYI3LzhM0:V_sGLiP latest?d=qj6IDK7rITs latest?i=lyfVKebzl54:ZvxYI3LzhM0:gIN9vFwlyfVKebzl54
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments