Using LVM in Linux Rescue Mode


So, the OS disk at  one of RHEL boxen on my vm farm is toasted and I need to check the health of the remaining disks, which are using LVM2. Booting to rescue mode with RHEL disk, I found out that I can’t right away use LVM related tool:

sh-3.2# vgscan
sh: vgscan: command not found

So what we need to do is to start the command with “lvm” prefix

sh-3.2# lvm vgscan
  Reading all physical volumes. This may take a while. . .
  Found volume group 'VG00' using metadata type lvm2 
sh-3.2#
Advertisements

One Comment Add yours

  1. Satheesh says:

    Thanks! I was switching through my rescue ISO images not knowing why vgscan was not found (even /sbon/vgscan).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s