LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-02-2009, 01:14 AM   #1
almcneill
Member
 
Registered: Jan 2006
Posts: 67

Rep: Reputation: 15
New drives and LVM


Not sure about posting in this forum, as this kinda covers both hardware and software. So if this is in the wrong forum, I apologize in advance.


Setting the scenario

1. Linux server setup with say 4 hard drives (maxed out on drives), using LVM to create one large ext3 drive for storage on a network.

2. Each of the drives are lets say 100 GB each.

3. 2 months down the road, a new drive is purchased, its a 150 GB drive, I want to swap it out with one of the 100 GB drives (an overtime upgrade of drives as my finances allow).


Answers needed

1. I know that I cannot simply pull a drive out and swap it with the new one, I understand enough about LVM to know that that would "break" the volume, not to mention data loss. So, is there a solution to doing this transition upgrade of a drive without having to do a temporary "outside" storage unit for the data on the LVM.

2. Or, is there a different solution rather than using LVM, which would be more compatible to what I am looking to do?

I do not have this set up yet, I am gathering as much info as I can first, as to be able to set up a server that will operate properly.


Thanks in advance for any advice, Anthony
 
Old 07-02-2009, 05:53 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
Quote:
Originally Posted by almcneill View Post
Not sure about posting in this forum, as this kinda covers both hardware and software. So if this is in the wrong forum, I apologize in advance.


Setting the scenario

1. Linux server setup with say 4 hard drives (maxed out on drives), using LVM to create one large ext3 drive for storage on a network.

2. Each of the drives are lets say 100 GB each.

3. 2 months down the road, a new drive is purchased, its a 150 GB drive, I want to swap it out with one of the 100 GB drives (an overtime upgrade of drives as my finances allow).


Answers needed

1. I know that I cannot simply pull a drive out and swap it with the new one, I understand enough about LVM to know that that would "break" the volume, not to mention data loss. So, is there a solution to doing this transition upgrade of a drive without having to do a temporary "outside" storage unit for the data on the LVM.
You are right. The proper way to do this is to add the 150GB hdd to the VG and then do a pvmove. This will move the
PV blocks from the 100G disk you do not want to the 150GB. After this do a vgreduce which will remove the pv from the volume group. Now you are all set to throw out the 100G HDD. But yes, the procedure is different and not as you wanted
you wanted : buy 150GB -> throw 100G -> put 150 GB
whereas this : buy 150 GB -> add 150GB -> move the PV blocks -> throw away the 100G

Quote:
2. Or, is there a different solution rather than using LVM, which would be more compatible to what I am looking to do?

I do not have this set up yet, I am gathering as much info as I can first, as to be able to set up a server that will operate properly.


Thanks in advance for any advice, Anthony
Since data is more precious, I am afraid there is no other safe method. But you can try RAID 5. It can recover 1disk crash. So you can simply remove the 100G disk and re-build they array [pains takingly long] and then add the 150G disk in the place of 100 GB disk. I am _not_ very sure (as I have not worked toomuch at an expert level in RAID) if you can replace the failed disk with a different capacity disk.
 
Old 07-02-2009, 10:13 PM   #3
almcneill
Member
 
Registered: Jan 2006
Posts: 67

Original Poster
Rep: Reputation: 15
Thank you for the reply, your answer actually seems pretty painless and very helpful. I used the example that I did just as an example, the server that I am going to be setting up actually has the ability to "hot swap" 7 drives. So, my plan is to just always leave one bay open for upgrading drives. I think that that should be a safe move.

Thanks again for your help. VERY MUCH appreciated.
 
  


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 drives not showing up starcastic Linux - Hardware 5 10-01-2008 11:33 AM
how to merge two hard drives by LVM arshzia Linux - Software 3 08-12-2008 06:49 AM
2 Drives in LVM- Not What I want Fixed_it Linux - Newbie 2 01-31-2007 12:22 PM
How do I replace two old drives (LVM in use) with a new one? vaaccess Linux - Newbie 3 01-09-2007 07:18 AM
LVM with external USB drives pompeyjohn Linux - Hardware 0 10-01-2005 02:56 AM


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