raid
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
raid [2009/11/16 14:25] – 172.26.0.166 | raid [2010/09/19 23:58] (current) – aorth | ||
---|---|---|---|
Line 2: | Line 2: | ||
We have two RAIDs on the HPC | We have two RAIDs on the HPC | ||
* Linux kernel software RAID | * Linux kernel software RAID | ||
- | * 3mware | + | * 3ware hardware RAID |
==== Drive numbering ==== | ==== Drive numbering ==== | ||
Line 50: | Line 50: | ||
| | ||
unused devices: < | unused devices: < | ||
- | |||
==== Repair RAID ==== | ==== Repair RAID ==== | ||
- | When a disk is failing | + | When a disk is failing you need to replace the drive. |
- | < | + | |
- | In that case you need to replace the drive. | + | |
< | < | ||
Personalities : [raid1] [raid0] | Personalities : [raid1] [raid0] | ||
Line 74: | Line 71: | ||
unused devices: < | unused devices: < | ||
- | Because it is ''/ | + | If ''/ |
< | < | ||
# mdadm /dev/md1 --fail /dev/hda3 --remove /dev/hda3 | # mdadm /dev/md1 --fail /dev/hda3 --remove /dev/hda3 | ||
# mdadm /dev/md3 --fail /dev/hda1 --remove /dev/hda1 | # mdadm /dev/md3 --fail /dev/hda1 --remove /dev/hda1 | ||
# mdadm /dev/md4 --fail /dev/hda6 --remove / | # mdadm /dev/md4 --fail /dev/hda6 --remove / | ||
+ | ''/ | ||
+ | < | ||
+ | # mdadm --stop / | ||
+ | <note warning> You must Shutdown the server before you physically remove the drive! </ | ||
Shut the server down and replace the faulty drive with a new one. After booting your drive letters may have shifted around, so just be sure to verify which is which before proceeding. | Shut the server down and replace the faulty drive with a new one. After booting your drive letters may have shifted around, so just be sure to verify which is which before proceeding. | ||
Clone the partition table from the good drive to the bad one: | Clone the partition table from the good drive to the bad one: | ||
Line 91: | Line 91: | ||
/dev/sdc: msdos partitions 1 | /dev/sdc: msdos partitions 1 | ||
</ | </ | ||
- | You can now add the new partitions back to the arrays: | + | Re-create the scratch partition (RAID0): |
+ | < | ||
+ | # mkfs.ext3 /dev/md2 | ||
+ | # mount /dev/md2 / | ||
+ | You can now add the new partitions back to the RAID1 arrays: | ||
< | < | ||
# mdadm /dev/md1 --add /dev/hdd3 | # mdadm /dev/md1 --add /dev/hdd3 | ||
# mdadm /dev/md3 --add /dev/hdd1 | # mdadm /dev/md3 --add /dev/hdd1 | ||
# mdadm /dev/md4 --add / | # mdadm /dev/md4 --add / | ||
- | + | After adding you can monitor the progress of the RAID rebuilds by looking in '' | |
- | Clearing any previous raid info on a disk (eg. reusing a disk from another decommissioned raid array) | + | < |
- | + | md3 : active raid1 hdd1[1] hda1[0] | |
- | # mdadm --zero-superblock | + | |
- | Adding a disk to an array | + | |
- | + | md1 : active raid1 hdd3[2] hda3[0] | |
- | # mdadm --add / | + | 26627648 blocks [2/1] [U_] |
- | + | [===================> | |
- | + | ||
- | === To Do list: === | + | md2 : inactive hda5[0] |
- | + | | |
- | + | | |
- | Prepare written instructions on how to repair disk arrays. | + | md4 : active raid1 hdd6[2] hda6[0] |
- | + | | |
- | What disks to we have? | + | |
- | + | ||
- | Add extra spare disks? | + | md0 : active raid1 hdd2[1] hda2[0] |
- | + | | |
- | How do you know which physical disk is broken to replace it? | + | |
- | + | unused devices: < | |
===== Hardware RAID ===== | ===== Hardware RAID ===== | ||
- | A 3ware 9500S SATA RAID card using the 3w-9xxx kernel module. | + | A 3ware 9500S-12 SATA RAID card using the 3w-9xxx kernel module. |
==== Physical Disk Layout ==== | ==== Physical Disk Layout ==== | ||
- | We have one RAID controller, ' | + | We have one RAID controller, ' |
| Port 8 | Port 9 | Port 10 | Port 11 | | | Port 8 | Port 9 | Port 10 | Port 11 | | ||
Line 131: | Line 134: | ||
==== Repairing ' | ==== Repairing ' | ||
- | There is a utility, tw_cli, which can be used to control/ | + | There is a utility, |
Study the output of '' | Study the output of '' | ||
Line 158: | Line 161: | ||
3w-9xxx: scsi1: AEN: ERROR (0x04: | 3w-9xxx: scsi1: AEN: ERROR (0x04: | ||
- | < | + | < |
Password: | Password: | ||
// | // |
raid.1258381506.txt.gz · Last modified: 2010/05/22 14:19 (external edit)