Skip to contentSkip to conversation

Questions Degraded Array with LVM

DISCUSSION Matt E 2 participants 2 messages Jun 27, 2003 – Jun 30, 2003 MD RAID

lore
Share & tools
lore

Matt E

author
#0 lore raw

Hello All.

Currently, I have an LVM running on my system that is composed of an 80 gig drive and a 120 gig drive. I plan to install a 4 disk RAID-5 Array in my system. 1 of the disk will come from the LVM array.

I'd like to not loose any data doing this, if possible.

Here's what I want to do:

1) Install the 3 New 120 Gig Disks. Use mdadm to create a degraded RAID-5 array.

2) Put this array under LVM control.

3) Use LVM to create a file system on the array.

4) Copy the data from the old LVM array to the new RAID-5/LVM array.

5) Take down the old (80 + 120 GIG) array. Blank the 120 Gig drive from this LVM and then install it into the degraded array (filling the missing slot).

Does anyone know if this is the right way to do this? Does anyone know if there will be issues with LVM created on the degraded array (perhaps this aspect is off topic)?

Thanks in advance.

Cheers

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

#1 lore raw

Matt E on Fri 27/06 16:49 -0700:

Quoted 4 lines

4) Copy the data from the old LVM array to the new RAID-5/LVM array.

Does anyone know if this is the right way to do this?

probably using pvmove and resizefs is a better approach.