You are not logged in.

#1 2010-02-04 13:38:57

kaizoku
Member
Registered: 2009-01-09
Posts: 62

[Solved] mdadm mixed raid?

Would it be possible to do mixed raid and non-raid partitions on a disk? I have a 1TB and a 160GB disk, however I want to raid them. but remaining 840GB will be non-raided that will be used as normal storage. Is this possible?

Last edited by kaizoku (2010-02-05 00:25:35)

Offline

#2 2010-02-04 19:02:39

ruffedgz
Member
From: Michigan
Registered: 2009-07-23
Posts: 54

Re: [Solved] mdadm mixed raid?

I don't see why you couldn't as long as you do a software RAID and not through a RAID controller or something.

I would read more about it here: http://wiki.archlinux.org/index.php/Ins … #Procedure

Once you partition your 1TB with 2 partitions (sda1 = 160GB, sda2 = 860GB) and the 160GB disk as one partition (sdb1 = 160GB), then you can do the 'mdadm' command to start the setup of your RAID but also preserve the 860GB partition for whatever.

FYI - If the 'sda' and 'sdb' partitions I gave above are just what it possibly might look like. They could be switched around so don't take those to be correct in your setup. If it is, then great big_smile

It seems like it can be done. Never done it in practice since I never had two drives with different sizes yet. If you try this, tell us how it went.


Arch linux i686 | Dell XPS m1530 | Intel Core 2 Duo 2 GHz | 3 GB RAM | 250GB HDD

Offline

#3 2010-02-04 19:34:53

obiwan
Member
Registered: 2010-02-04
Posts: 3

Re: [Solved] mdadm mixed raid?

Yes you can do this. Create a RAID type partition on the larger drive the same number of sectors as the one taking up the whole smaller drive, and then create regular partitions or LVM on the remainder.

Offline

#4 2010-02-04 21:34:36

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: [Solved] mdadm mixed raid?

I assume you're talking about RAID-1 here -- you didn't specify...

If you are, then what the others have said is correct... If not, let us know which RAID level you want to create.

Offline

#5 2010-02-05 00:24:29

kaizoku
Member
Registered: 2009-01-09
Posts: 62

Re: [Solved] mdadm mixed raid?

Yes RAID-1 for redundancy. Thanks for reply.

Offline

#6 2010-02-05 09:57:24

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

Re: [Solved] mdadm mixed raid?

This is the way I'd do it:
- use cfdisk to set your 160GB HDD to 1 partition with Linux Raid Autodetect.
- cfdisk your 1 TB HDD to 1 partition with 100 MB (/boot) type Linux, create a swap of your desired size (I don't use any), take 160GB as type Linux Raid Autodetect and take the rest as type Linux.
- use LVM to manage your newly created RAID array and your remaining space.

Offline

Board footer

Powered by FluxBB