LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-07-2007, 11:43 PM   #1
vaaccess
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Rep: Reputation: 0
How do I replace two old drives (LVM in use) with a new one?


I read the DD commands, but can't figure out how to make it work in my scenario.

I have the following:
/dev/hda1 (boot partition)
/dev/hda2 (part of LVM VolGroup00)
/dev/hdb1 (part of LVM VolGroup00) ***According to SMART this drive will die in 24 hours.

New drive is currently sitting as /dev/hdc1 (bootable partition of same size as hda1 and /dev/hdc2 is the remaining space.

hda is about 70GB
hdb is about 30GB
hdc is 300GB

I want to replace the two original drives with the new 300GB drive and don't really care if LVM is in use, though I'm not sure it would make sense to leave it on in my scenario...(This is Fedora Core 6, BTW)

Any help would be GREATLY appreciated.

Last edited by vaaccess; 01-07-2007 at 11:46 PM.
 
Old 01-08-2007, 12:23 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The procedure is covered in the LVM Howto in section 13.5.2.
http://www.tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
 
Old 01-08-2007, 12:33 AM   #3
vaaccess
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal
The procedure is covered in the LVM Howto in section 13.5.2.
http://www.tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
Actually, that just tells me how to remove my /dev/hdb1 drive...I want to replace both my hda and hdb drives. Since hda has the boot partition, I don't see how this would work.

Furthermore, and I guess I should have mentioned this, but when I try to:
pvmove /dev/hdb1 /dev/hdc2
I get an error. "device-mapper: reload ioctl failed: Invalid Argument"

So, I was thinking a bit-by-bit copy might be better, but the more I've read it doesn't look like using dd is an option beacuse of LVM.
 
Old 01-09-2007, 07:18 AM   #4
vaaccess
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
So, in lieu of being able to move everything over, which it doesn't appear that I can, is there a generally accepted list of configuration files that I should capture so that when I rebuild the system from scratch I can use them to more quickly get my system up and running? I already have my html files on another box. Here's the listing of files that I also snagged:
.htaccess, access.db, domaintable.db, dovecot.conf, hosts, httpd.conf, local-host-names, magic, mailgertable.db, php.ini, sendmail.cf, sendmail.mc, virtusertable, virtusertable.db

I'm sure some of those I don't really need and I'm probably missing some as well. I also run gallery2, but will probably rebuild that one from scratch since I'm concerned pieces of it are sitting on the bad drive and if I tried to suck all that from the dying drive it would kill it...

Any thoughts on how I can get my system up and running on the new drive and/or what files I need to grab before it is dead are greatly appreciated.

Thanks.
 
  


Reply

Tags
hd, lvm, replace


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 drives not showing up starcastic Linux - Hardware 5 10-01-2008 11:33 AM
LVM - SATA and IDE drives Jongi Linux - General 6 09-07-2006 03:15 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 07:15 PM
LVM with external USB drives pompeyjohn Linux - Hardware 0 10-01-2005 02:56 AM
RAID/LVM setup with existing drives juu801 Linux - General 3 07-06-2005 01:35 AM


All times are GMT -5. The time now is 12:02 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