You are not logged in.

#1 2013-10-20 18:23:20

bagheera
Member
Registered: 2009-06-13
Posts: 84

mdadm raid1 2 on partitions followed by non raid member partitions

Hi, i have two drives with with diffrent size holding two partitions, sda1 32 gb, sda2 120 gb, sdb18 32 gb and sdb2 300gb. Can i make raid1 from sda1 and sdb1 to be used as root fs and left untouched sda2  as /home and sdb2 as /var?


arch linux user

Offline

#2 2013-10-21 18:51:34

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: mdadm raid1 2 on partitions followed by non raid member partitions

Yes, as long as the two RAID partitions have the exact same size.

But be aware that /var contains pretty important data - if you loose /var/lib/pacman/local your Arch system's package manager will be pretty screwed up.

Offline

#3 2013-10-21 21:22:37

bagheera
Member
Registered: 2009-06-13
Posts: 84

Re: mdadm raid1 2 on partitions followed by non raid member partitions

teekay wrote:

Yes, as long as the two RAID partitions have the exact same size.

But be aware that /var contains pretty important data - if you loose /var/lib/pacman/local your Arch system's package manager will be pretty screwed up.

Mount points were just as examples, but thanks for the warrning. Actually i am going to make raid on debian machine, since i have confirmation it is possible.


arch linux user

Offline

#4 2013-10-21 21:53:09

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: mdadm raid1 2 on partitions followed by non raid member partitions

Are you going to set up the raid on a debain machine to install Arch, or to install debian?  I am fairly certain that it is possible to do complex things like this with most installers.  You just have to do it either before booting from the iso, or switch to a TTY so that you can do the setup from there. 

But if you are planning on doing this for debian, you might want to seek advice there, as they will undoubtedly have more debian specific information.

FWIW, I think /var should be kept on the same partition as the rootfs.  Particularly in this case where it sounds as though you not only are going to have more than enough space (32GB), but also because that would put it on the raid where it could greatly benefit from the improved read times (and write times if it is on raid0).

Offline

Board footer

Powered by FluxBB