When we boot Server into Rescue using GParted or Knoppix, we need to mount the Logical Volumes in order to fix whatever issue we have. However, we may receive “mount: unknown file system type LVM2_member”
# mount /dev/sda2 /mnt mount: unknown filesystem type 'LVM2_member'
Now, let’s scan our Logical Volumes using lvscan
# lvscan /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. inactive '/dev/centos/swap' [2.00 GiB] inherit inactive '/dev/centos/root' [77.00 GiB] inherit
From the output, it seems the Logical Volumes have not been activated. Therefore, in order to mount our LVM’s we need to activate it first.
# vgchange -ay 2 logical volume(s) in volume group "centos" now active
Now, our Logical Volume is ready to be mounted:
# lvscan ACTIVE '/dev/centos/swap' [2.00 GiB] inherit ACTIVE '/dev/centos/root' [77.00 GiB] inherit
# mount /dev/centos/root /mnt
It’s all Done. Enjoy.
2 thoughts on “How to mount Cloud / VPS Cloud in Rescue”
I would like to thnkx for the efforts you have put in writing this web site. I’m hoping the same high-grade site post from you in the upcoming as well. In fact your creative writing skills has encouraged me to get my own blog now. Really the blogging is spreading its wings rapidly. Your write up is a good example of it.
I appreciate, cause I found exactly what I was looking for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye