linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Flexible storga: LVM setup on top of mdadm sets. Good idea or not?
@ 2007-07-22 16:50 js
  2007-07-22 18:57 ` Stuart D. Gathman
  0 siblings, 1 reply; 10+ messages in thread
From: js @ 2007-07-22 16:50 UTC (permalink / raw)
  To: linux-lvm

Hi list,

I'm looking into making a home brewed nas setup. This is not a 
production, highly critical environment.

The result needs to be 1 continuous physical storage space.
Expandable without reformating, removing data, etc,..
Acceptable redundancy.
I don't mind 50% loss of data capacity because of raid 1.  Storage is 
(relatively) cheap.

I don't have this material to test.  So it's more like a theoretical setup.

I was thinking of creating sets of mdadm RAID 1 setups and unify these 
raid 1 devices with lvm2 into 1 big logical volume which is resizeable.
For example:
I have 4 identical 250 GB sata2 disks.

I use mdadm to create:

/dev/md0 raid1 consisting out of /dev/sda1 and /dev/sdb1.
/dev/md1 raid1 consisting out of /dev/sdc1 and /dev/sdd1.

Then I would like to:

create LVM physical volumes out of /dev/md0 and /dev/md1.
create a LVM volume group named storage consisting out of LVM physical 
device /dev/md0 and /dev/md1
create a LVM logical volume that covers the maximum size of the LVM 
volume group which should be around 500GB.
create a filesystem on this LVM logical volume such as ext3.

Now when I need more storage:

I add 2 250GB sata2 disks.
I create a new raid1 /dev/md2 consisting out of /dev/sde1 and /dev/sdf1
Create a LVM physical volume out of /dev/md2.
Add the /dev/md2 LVM physical volume to the LVM volume group.
expand the LVM logical volume so it becomes around 750GB in size.
resize the EXT3 filesystem.


Now my question to you is.  Is this completely bunkers?  Or is it 
reasonable?
Any tips, tricks, advice, comments welcome.

Thanks,

js

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-21 14:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 16:50 [linux-lvm] Flexible storga: LVM setup on top of mdadm sets. Good idea or not? js
2007-07-22 18:57 ` Stuart D. Gathman
2007-07-23  7:23   ` Luca Berra
2007-07-23 16:43     ` Stuart D. Gathman
2007-07-24  8:48       ` Luca Berra
2007-07-24  1:44     ` Stuart D. Gathman
2007-07-24  9:13       ` Bryn M. Reeves
2007-08-21  0:33     ` Stuart D. Gathman
2007-08-21  6:52       ` Luca Berra
2007-08-21 14:11         ` Stuart D. Gathman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).