Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to set up a NAS/share with SAMBA on Debian(squeeze) with Webmin, and i want a setup like this:

  • 2x40GB(IDE), in RAID1 for distro/debian.
  • 4x40gb(SATA), in RAID5 for storage/NAS

This is just experimental setup until i get a few SATA TB HDDs, but how am i suppose to set up the RAID, and should i use LVM?

share|improve this question

1 Answer 1

Please see my answer here on how to create a raid1 array using mdadm which you can boot from (well you won't strictly speaking boot from the raid itself): Creating a partitioned raid1 array for booting a debian squeeze system

Given you have sdc to f with 1 partition covering the whole disk creating a raid5 is even simpler, example:

mdadm --create /dev/md1 --level=5 --raid-devices=4 /dev/sd[cdef]1

Or with a spare, you need 5 disks in this example, but you can create a raid5 with just 3 disks:

mdadm --create /dev/md1 --level=5 --raid-devices=4 --spare-devices=1 /dev/sd[cdefg]1

Syntax may not be exactly correct since I didn't try it out.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.