Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Software raid on top of lvm logical volume
@ 2004-10-27 22:02 Eric Monjoin
  2004-10-28  1:17 ` Theo Van Dinter
  0 siblings, 1 reply; 21+ messages in thread
From: Eric Monjoin @ 2004-10-27 22:02 UTC (permalink / raw)
  To: linux-lvm

Hi,

I would like to know if it's possible (works perfectly) to create a 
software mirror (md0) on top of  2 LVM logical volumes :

Physical Devices : /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, 
/dev/sdf1, /dev/sdg1
pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1
vgcreate -s 32 vgdata1 /dev/sdb1 /dev/sdc1 /dev/sdd1
lvcreate -l xxx vgdata1 lvdata1
vgcreate -s 32 vgdata2 /dev/sde1 /dev/sdf1 /dev/sdg1
lvcreate -l xxx vgdata2 lvdata2

/etc/raidtab :
raiddev /dev/md0
    raid-level                     1
    nr-raid-disks                2
    nr-spare-disks              0
    chunk-size                    32
    persistant-superblock   1
    device                          /dev/vgdata1
    raid-disk                       0
    device                          /dev/vgdata2
    raid-disk                       1

Tks


Eric Monjoin
IT Architect
IBM france

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [linux-lvm] Re: Software raid on top of lvm logical volume
@ 2004-11-02  0:33 Kai Leibrandt
  0 siblings, 0 replies; 21+ messages in thread
From: Kai Leibrandt @ 2004-11-02  0:33 UTC (permalink / raw)
  To: linux-lvm

Solaris' LVM is able to do this all in one manager too, in fact, all volumes 
start life as single raid0 slices, which you then add stripes (keeping it a 
raid0 volume, as Solaris calls it) or mirrors to (to create a raid1 volume). 
Also, for snapshots, you can actually choose where to put the background 
storage for the snapshot, so you can just stick it on a mounted volume that 
has enough space. This is great because you can use all of your physical 
extents of your PV even when using snapshots, instead of reserving some 
space for snapshots in your VG...
Also, admin of volumes under Solaris is really very straight forward, I only 
wish it were so easy with Linux/LVM/md (though it is still not very 
difficult of course), especially when creating a new mirror from a volume, 
adding new pv's etc...
For those who are interested, http://docs.sun.com/db/doc/817-5776 is a good 
read...

Kai.

>From: "Erik Ohrnberger" <Erik@echohome.org>
>Reply-To: Erik@echohome.org,LVM general discussion and development 
><linux-lvm@redhat.com>
>To: "LVM general discussion and development" <linux-lvm@redhat.com>
>Subject: Re: [linux-lvm] Re: Software raid on top of lvm logical volume
>Date: Mon, 1 Nov 2004 11:51:33 -0500 (EST)
>
>This solution would seem to be as the holy grail in that it would give you
>the best of all worlds: resizable RAID storage.  Or am I wrong about this
>assumption?
>
>On Mon, November 1, 2004 11:01, Michael T. Babcock said:
> > Peter T. Breuer wrote:
> >
> >>>i do not believe you would have any advantage in stacking md above lvm
> >>>anyway.
> >>>
> >>>
> >>
> >>That is right. In fact it sounds downright risky to me.
> >>
> >>
> >
> > I've actually considered a few times how one might be able to merge the
> > md functionality into LVM2 (device-mapper) for having software-RAID part
> > of the logical volume system (since a software-RAID partition is a
> > logical volume of another type anyway).
> >
> > It would require some significant effort, but it seems doable.
> > --
> > Michael T. Babcock
> > http://mikebabcock.ca
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
>
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@redhat.com
>https://www.redhat.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.com/

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

end of thread, other threads:[~2004-11-02 15:47 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 22:02 [linux-lvm] Software raid on top of lvm logical volume Eric Monjoin
2004-10-28  1:17 ` Theo Van Dinter
2004-10-28  6:01   ` Eric Monjoin
2004-10-28  6:35     ` Luca Berra
2004-10-28 19:17       ` [linux-lvm] " Peter T. Breuer
2004-11-01 16:01         ` Michael T. Babcock
2004-11-01 16:51           ` Erik Ohrnberger
2004-11-01 22:03             ` Clint Byrum
2004-11-01 22:07               ` Theo Van Dinter
2004-11-02 15:46             ` Michael T. Babcock
2004-10-28 18:54   ` [linux-lvm] " Michael T. Babcock
2004-10-30 16:55     ` [linux-lvm] " Peter T. Breuer
2004-10-30 17:10     ` [linux-lvm] What is the best way to configure LVM + RAID? Erik Ohrnberger
2004-10-31 17:34       ` [linux-lvm] " Peter T. Breuer
2004-10-30 17:27     ` [linux-lvm] Software raid on top of lvm logical volume Theo Van Dinter
2004-10-30 19:22       ` [linux-lvm] LVM DISK DIE "KieZz"
2004-10-31 16:48     ` [linux-lvm] Software raid on top of lvm logical volume Markus Baertschi
2004-11-01  6:46       ` Scott Serr
2004-11-01 15:38       ` Michael T. Babcock
2004-11-01 17:02         ` [linux-lvm] " Peter T. Breuer
  -- strict thread matches above, loose matches on Subject: below --
2004-11-02  0:33 Kai Leibrandt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox