Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LVM + RAID follow up



On Tue, 2006-11-07 at 15:32 -0500, Derek Atkins wrote:

> 
> Do you?  If I assume that the RAID5 is all one partition, then if the
> partition size increases I can just run resize2fs to increase the size
> of the file system.  The only question is the RAID5 parts, will it
> be able to build a filesystem out of a 3x400GB + 3x800GB partition?

You could try to do everything at the RAID level, but that seems 
more complicated and error-prone. I don't know if you can mix 
volumes of different sizes within a RAID device; I doubt it, and 
if it is possible, I imagine it would be messy. 

At the LVM level, you have a Volume Group (VG) which is comparable 
to a RAID metadevice; it's made up of one or more Physical Volumes 
(PV), each of which could be a single disk or a RAID set. The PVs 
can be of different sizes, which takes care of the upgrade path. 

If you're replacing an old disk, you can add the new disk, move 
the contents of the old disk to the new one, and remove the old 
disk from the VG, in a few simple steps:

    # Add a new RAID device /dev/md4
    vgextend FooVG /dev/md4

    # Move everything from /dev/md2 to /dev/md4
    pvmove -v /dev/md2 /dev/md4

    # Remove /dev/md2 from the VG
    vgreduce FooVG /dev/md2


-- 
John Abreau / Executive Director, Boston Linux & Unix
IM: jabr at jabber.blu.org / abreauj at AIM / abreauj at Yahoo / zusa_it_mgr at Skype
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.blu.org/pipermail/discuss/attachments/20061107/15b9738d/attachment.sig>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org