Create soft-raid with raidtools on RedHat 9

Because I’m familiar with mdadm, that I should write the note with raidtools as log. With the reference: The Software-RAID HOWTO: RAID setup, the step for raid-0 is listing:

1. Format the prepared disk, for example sdc and sdd, with whole disk for a partition:

1
2
# fdisk /dev/sdc
# fdisk /dev/sdd

2. Setup /etc/raidtab for md0 with 2 disk:

1
2
3
4
5
6
7
8
9
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/sdc1
raid-disk 0
device /dev/sdd1
raid-disk 1

3. Create the raid disk: # mkraid /dev/md0

4. Format the raid disk:# fdisk /dev/md0

5. Make a journal system (eg: ext3): # mke2fs -j /dev/md0

OK, that’s all. Enjoy it. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *