LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-17-2006, 07:21 PM   #1
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
Arrow a RHEL4 box crashed, about LVM


hello all:
A RHEL4 box crashed, the root partitions is LVM type,
I put the SCSI DISK on another RHEL4 box, as /dev/sdb:
Quote:
Disk /dev/sda: 73.5 GB, 73557090304 bytes
255 heads, 63 sectors/track, 8942 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 8942 71722192+ 8e Linux LVM

Disk /dev/sdb: 73.4 GB, 73407868928 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 8924 71577607+ 8e Linux LVM
now, how can I mount and chroot the /dev/sdb2 ?
thx for any idea .
 
Old 01-18-2006, 11:24 PM   #2
kurgan32
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
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.
 
Old 01-19-2006, 04:25 AM   #3
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 02-09-2006, 11:11 PM   #4
danapsimer
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
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?

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm crashed after Mainboard ended up in smoke mirco9 Linux - General 1 10-16-2005 02:47 AM
mozilla crashed my box tacca Linux - Software 2 10-24-2004 04:36 PM
LVM- 1 harddrive crashed =( daromer82 Linux - General 0 03-06-2004 07:14 PM
My RH 7.3 box went crashed satimis Linux - Software 1 08-11-2003 01:25 AM
My Box Crashed ToeShot Linux - General 6 08-04-2002 08:12 AM


All times are GMT -5. The time now is 04:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration