This helps to overcome the situation where the hardware of one of the drives fails due to a manufacturing fault (and don’t think “this won’t happen to me” like yours truly did). Note: We use the “far” plan because this causes the physical data layout on the disks to NOT be the same. “-p f2” – Uses the “far” rotation plan see note below for more info and “2” tells that the array will keep two copies of the data.“–level=10” – Uses the Linux raid10 (if a traditional raid is required, for what ever reason, you would have to create two arrays and join them).“–chunk=256” – The size of bytes the raid stripes are broken to, and this size is recommended for new/large disks (the 2T drives used to make this guide were without a doubt in that category). Note: I have observed that it is possible to make the array without changing the partition type, but because this is the way described all over the net I’m going to follow suit (again when using the entire block device this is unnecessary). We are using the “fdisk” program here, but if your going to use disks larger then 2T you are going to need to use a partitioning program that supports GPT partitioning like parted. While in Linux/GNU, we could use the entire block device for storage needs, we will use partitions because it makes it easier to use disk rescue tools in case the system has gone bonkers. IMHO disks from 2T and beyond will always fall into this category, so be aware. Moreover, if your going to use large drives, as larger disks have a higher data density on the platter’s surface, the chance for failure is higher. This is because when a disk fails, there is a higher chance of a neighboring disk failure and then you have a “two disk” failure on your hands. While I’m not going to go into all of the options available (this is very well documented in the RAID wikipedia entry), I do feel that it is noteworthy to say that you should always opt for at least RAID 6 or even higher (we will be using Linux RAID10). The first step in avoiding a trap is knowing of it’s existence (Thufir Hawat from Dune).Ĭhoosing the disks is a vital step that should not be taken lightly, and you would be wise to capitalize on yours truly’s experience and heed this warning: RELATED: Which Type of RAID Should You Use For Your Servers? Choosing the disks that make the array Depending on the type of RAID you want to create you will need at least two disks on your system and in this guide we are using 6 drives. Doing so allowed me to use sda1 as part of the RAID array, so adjust accordingly to your setup.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |