LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mounting LVM disks via rescue disk (bad superblock) (https://www.linuxquestions.org/questions/linux-server-73/mounting-lvm-disks-via-rescue-disk-bad-superblock-688556/)

dfezz1 12-05-2008 10:22 AM

mounting LVM disks via rescue disk (bad superblock)
 
Hi,

I have a server that kernal panic-ed on reboot and has a bad super block.

I need to run fsck on the RootVG, but can't see or mount the filesystems, once I boot using the rescue disk.

I have a non-LVM /boot partition and I am using grub loader.
RHEL4.6
Dell R900
Perc-6i raid controller


So my real question is how to mount the root file system from the rescue disk, when using LVM

Thanks
-DFEZZ1

PTrenholme 12-05-2008 12:31 PM

Do a pvscan to see what you have on your attached drives, and then a vgchange -a y to activate the logical volumes.

You should then find the logical volumes in /dev/mapper/....

Note: NEVER RUN fcsk ON A PARTITION CONTAINING A VOLUME GROUP. Doing so will destroy the whole volume group. You can run fsck on /dev/mapper/VG/LV if necessary, but not on, for example, /dev/sda1.

dfezz1 12-06-2008 08:29 PM

Thanks
 
Thanks a lot for the info!!!!
I'll put it to good use this and next time

Thanks


All times are GMT -5. The time now is 11:09 PM.