a RHEL4 box crashed, about LVM
A RHEL4 box crashed, the root partitions is LVM type,
I put the SCSI DISK on another RHEL4 box, as /dev/sdb:
thx for any idea .
First, if you mount /dev/sdb2 you aren't going to get very far with rescuing your data. The file system is actually on /dev/VolGroup**/LogVol**. There are important steps to take when sticking a drive setup with LVM into another machine with LVM. I would first say that you need to check to make sure that you don't have two disks with the same Volume Group name, check this with "lvm lvs" this will display all volume groups and the logical volumes contained in them. If the Volume Group names are different, you would want to mount it by using "mount /dev/VolGroup**/LogVol** /mnt/somedir" you should then be able to get the data you need off of it. If your Volume Group names are the same on both disks, you will have to rename the Volume Group name on your second disk. If you have any questions or doubts, PLEASE do not do anything untill you have removed all doubt. I hope this helps get you sarted in the right direction, please post back with any questions or comments.
thanks very much, kurgan32.
I put the /dev/sdb2 return the box himself and power on,
this time, system started and stop at a line <B>...Control+D...</B>.
I enter root password and login, so I success rescue the data.
I'am learning about LVM.
Thx again, kurgan32.
kurgan32, great advise. I have a similar problem only this is a removeable laptop HD and I want to access it from my desktop system. I have an enclosure for it. Unfortunately I used the same volumne group name ( 'vg' LOL ) on both systems. How do you rename the volume group on the USB connected drive without touching the one on the local disks?
|All times are GMT -5. The time now is 07:50 AM.|