[linux-lvm] Re: raid 1 on a single disk
ashwin chaugule
ashwin.chaugule at gmail.com
Sat Nov 13 10:41:08 UTC 2004
yes i know its silly ... im doing what im told to do :p
ok so, i also do know, its performance is going to suck !
but i was under the impression that RAID 1 works on more that one disks only.
so you mean to say that, the linux RAID / md tools support raid 1 on
multiple partitiions of the same disk ?
Regards,
Ashwin
On Sat, 13 Nov 2004 11:33:25 +0100, Peter T. Breuer <ptb at lab.it.uc3m.es> wrote:
> ashwin chaugule <ashwin.chaugule at gmail.com> wrote:
> > Im trying to get RAID 1 working on a single disk. Can anyone
> > tell me if thats possible ?
>
> Yes, of course it is.
>
> > Do I have to use LVM for that ?
>
> No.
>
> > So, far this is what i've understood ...
> > Now.. I have a separate disk on which I want RAID 1.
> > so I create one PV on that disk (/dev/hdd)
>
> No you don't. LVM is not involved.
>
> > create a logical vol grp.
>
>
> No you don't. LVM is not involved.
>
>
> > add 4 LV's , for four filesystems of the same type ...
>
> No you don't. LVM is not involved.
>
> > then in /etc/raidtab or whatever ..
> > say that i have 4 disks and for each disk specify each LV partition ..
>
> No you don't, since LVM is not involved.
>
> > then mkraid /dev/md0 ...
> >
> > Is this correct if I want data to be mirrored across all 4 partitions
> > , using RAID 1 on a single disk ?
>
> So, you are talking about a mirror with 4 components, all of them
> partitions on the same disk?
>
> Well, that's silly, but nothing stops you doing it. Just maek a raidtab
> for the mirror and name the partitions as raid-disk components there.
> The RAID howto or faq should tell you all you need to know, as should
> the mananpage for the conf file or mdadm, or whatever ...
>
> Peter
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
--
Ashwin Chaugule
Embedded Systems Engineer
Aftek Infosys ltd.
[Embedded Division]
More information about the linux-lvm
mailing list