View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jan 25, 2008 5:30 pm 
Offline
Joined: Sat Nov 13, 2004 2:24 pm
Posts: 59
Hi,

It looks like my harddrive has died in my box. I'm running the latest and greatest R5F27. The root partion is in place and okay. The volume /vg is broken. To top it off, i'm about 3000KM from my box. However, my better half is a tech, and she's more then capable of swapping the hd, and getting the box powered back on. I have Webmin installed and SSH enabled.

Where do I begin to rebuild the box? From what i belive, i should have to:

1. rebuild the LVM - Is there a script?
2. Drop all the tables that contain Movie/TV information. Would it be easier database? I'm really not sure on this one. Could i use phpadmin?
3. Test and Reboot.

For some reason, I don't seen any reference on 'what to do if you hd crashes'.

Any help would be great
Pro


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 25, 2008 6:02 pm 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 425
Location: Charlotte, NC
I wish I could say there was an easy way to fix this - there isn't. First you will have to find out which drive in the cluster went bad (look in syslog). If it is a complete drive failure I am afraid you are hosed... You will have to completely rebuild the LVM group as you did before with a new drive.

I had this happen (actually twice) and luckily was able to coax the drive back to life (froze it) long enough to remove it from the LVM cluster (there are instructions for doing so - google "vgreduce"). If you cannot find it I have some cryptic notes I will post for you. Once removed, I was able to recover the rest of the data and rebuild with a new drive.

Post as much information as you can about your drives and LVM log data.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 25, 2008 7:26 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
See the disaster recovery pages on the wiki...
http://www.knoppmythwiki.org/index.php?page=WillNotBoot
http://www.knoppmythwiki.org/index.php? ... erRecovery
http://www.knoppmythwiki.org/index.php? ... hConvergDB
http://www.knoppmythwiki.org/index.php? ... kFullError

I need to spend some time linking those a bit better... Not all the information (like how to use the CD as a rescue disk) is in the most natural place.


Top
 Profile  
 
 Post subject: Disaster Recovery
PostPosted: Fri Jan 25, 2008 10:51 pm 
Offline
Joined: Sat Nov 13, 2004 2:24 pm
Posts: 59
Interesting enough, none of them really cover what happens if your /vg fails. I thought I had a fairly standard install of hda and hdb. b being the /vg volume.

I was lucky. I was able to get it to reboot and power back up, but I need to move the data to a new drive.
Pro


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 11:08 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Yep. None of them really cover that part, but there are other parts of what you'll need to do there. The LVM pages might also have something useful.

BTW - Documenting whatever recovery procedure you eventually come up with on the wiki would be a excellent way to give back to the community.


Top
 Profile  
 
 Post subject: HD Recovery
PostPosted: Sun Jan 27, 2008 12:05 am 
Offline
Joined: Sat Nov 13, 2004 2:24 pm
Posts: 59
Hi,

I will.. Actually, I noticed that S.m.a.r.t isn't really covered either. However, I'm a bit sketch on the linux tools. On the drive that is gone bad, i have 630 errors, but no critical errors, so i'm bit confused as what to document. I will update the wiki.

I guess the big thing that i'm not clear on, is the path to take if the entire volume gets destroyed. Do you just drop the all the video/tv tables? or just start from scratch?

Pro


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 27, 2008 12:14 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Because LVM is a JBOD scheme and tries to keep individual files on the same drive, you should be able to recover almost everything that's on the disk that hasn't gone bad. A step by step procedure for doing that would make a very nice wiki writeup.


Top
 Profile  
 
 Post subject: LVM Crash?
PostPosted: Fri Feb 01, 2008 3:33 pm 
Offline
Joined: Sat Nov 13, 2004 2:24 pm
Posts: 59
Well,

I was able to coax the drive back awake, but i wasn't able to coax my gf to install a new hd into the box.

So, now it appears that the drive is in read-only mode. I've reviewed the LVM how-to (there is a section on snapshots of LVM - could be useful to knopp users) and it doesn't appear that this is a normal..

vgdisplay shows this:

System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size 322.30 GB
PE Size 4.00 MB
Total PE 82509
Alloc PE / Size 82509 / 322.30 GB
Free PE / Size 0 / 0

mount shows:
/dev/mapper/vg-myth on /myth type ext3 (rw)

What am i missing??

pro


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 02, 2008 2:25 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
http://knoppmyth.net/phpBB2/viewtopic.php?t=16797 May help...


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 108 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu