Anonymous : |
אין משהו יותר פשוט ? |
DoK : |
למיטב הבנתי המועטה מאוד השימוש ב-raid0 מכפיל את מהירות העברת הנתונים הודות לפיצול נבון של כל קובץ על שני הדיסקים (ולכן גם נראה לי על פניו הגיוני להשתמש בשני דיסקים שמחוברים לפורטים נפרדים בלוח). |
קוד: |
Mandrake Linux Software RAID Install Howto This short howto explains the steps needed to create Linux Software RAID partitions during install. You should have two identical hard drives hooked up to your system. It doesn't matter whether they are IDE, SCSI or SATA as long as the Mandrake installer can see them. Boot from your normal boot media and follow the install until you get to the disk partitioning screen. If you want to create a RAID-1 mirror, skip the nexti two paragraphs - you don't need a separate /boot partition Create a small (~100Mb) /boot partition on the first hard disk, and a /boot.bak partition on the second drive. Both partitions should be 'Primary' partitions. It doesn't really matter what filesystem you choose to use although it may be easier to use ext2/3 if you want to use a 'mini-linux' boot floppy for rescue purposes. NB: Both partitions need to be exactly the same size. It may be easier to switch to 'Expert Mode' in the partitioner so you can type sizes instead of using a slider bar. Next, create a swap partion on each disk (again, both partitions should be the same size and type 'Primary'). As a side note, if you create more than one swap partition, the Linux kernel does its own striping over them to improve swap performance. Now we need to create our other partitions. Create each partition (/, /usr, /home etc) as you would normally on the first disk, however you need to set the filesystem/partition type to 'Linux RAID'. Now create an identical set of partitions on the second disk, again making sure to set the type to 'Linux RAID' Note that if you are setting up a RAID-0 stripe, the final partition size will be double the size of the individual partitions on each disk, wheras a RAID-1 partition will be the same size. Once you have created the RAID partitions, go back to the first disk, select the first RAID partition on the first disk, and hit 'Add to RAID'. Then add the same partition on the other disk to the same RAID (usually md0 is the first meta-device). You will be asked for the type or RAID partition to create (RAID-1 or RAID-0) - select the one you want. Now you do the same (select partition and add to RAID) for the other partitions you created. You should only have two partitions per RAID partition. Once you have finished creating your RAID meta-devices, you can now move to the 'RAID' disk partition screen and assigin mount points and filesystem types. While you are here, make sure that your RAID meta-devices are consistant in size with regards to the base partition sizes and RAID level (IE: A RAID-1 meta-device from two 10GB partitions will still be 10GB, wheras it will be 20GB for a RAID-0. After setting your meta-devices up, you can now proceed to format them and continue to the rest of the install Updated: 15th July 2004. Copyright © Mark Watts 2003-2004 Valid XHTML 1.1! Valid CSS! Creative Commons License This work is licensed under a Creative Commons License. |