How to mount Cloud / VPS Cloud in Rescue

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.

Mohammed has written 29 articles

2 thoughts on “How to mount Cloud / VPS Cloud in Rescue

  1. sirgliofrei says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>