Thicket data repository for the EEG
at main 3.6 kB view raw
1{ 2 "id": "https://www.tunbury.org/2020/10/05/hard-disk-failure", 3 "title": "Hard disk failure", 4 "link": "https://www.tunbury.org/2020/10/05/hard-disk-failure/", 5 "updated": "2020-10-05T12:41:29", 6 "published": "2020-10-05T12:41:29", 7 "summary": "Check the status with sudo mdadm --detail /dev/md0", 8 "content": "<p>Check the status with <code>sudo mdadm --detail /dev/md0</code></p>\n\n<div><div><pre><code>/dev/md0:\n Version : 1.2\n Creation Time : Wed Sep 2 21:55:39 2015\n Raid Level : raid5\n Array Size : 878509056 (837.81 GiB 899.59 GB)\n Used Dev Size : 292836352 (279.27 GiB 299.86 GB)\n Raid Devices : 4\n Total Devices : 4\n Persistence : Superblock is persistent\n\n Update Time : Sun Oct 4 07:35:23 2020\n State : clean, degraded \n Active Devices : 3\n Working Devices : 3\n Failed Devices : 1\n Spare Devices : 0\n\n Layout : left-symmetric\n Chunk Size : 512K\n\nConsistency Policy : resync\n\n Name : plum:0 (local to host plum)\n UUID : 4a462153:dde89a43:0a4dd678:451bb2b4\n Events : 24024\n\n Number Major Minor RaidDevice State\n 0 8 17 0 active sync /dev/sdb1\n 1 8 33 1 active sync /dev/sdc1\n 5 8 49 2 active sync /dev/sdd1\n - 0 0 3 removed\n\n 4 8 65 - faulty /dev/sde1\n</code></pre></div></div>\n\n<p>Check which disks are which <code>sudo lshw -class disk</code>.</p>\n\n\n\n \n \n Mount\n Model\n Description\n \n \n \n \n /dev/sdb\n ST9300603SS\n Seagate Savvio 10 K.3 St9300603ss\n \n \n  \n MBE2073RC\n Fujitsu MBE2073RC 73.5GB SAS Hard Drive\n \n \n  \n MBE2073RC\n Fujitsu MBE2073RC 73.5GB SAS Hard Drive\n \n \n /dev/sdc\n ST9300603SS\n Seagate Savvio 10 K.3 St9300603ss\n \n \n /dev/sdd\n ST300MM0006\n Seagate Enterprise Performance 10K HDD ST300MM0006 300 GB\n \n \n /dev/sde\n ST9300603SS\n Seagate Savvio 10 K.3 St9300603ss\n \n \n\n\n<p>The boot drive is a hardware RAID1 using the two 73GB disks. <code>/var</code> made up of the 300GB disks in a software RAID5 configuration.</p>\n\n<p>The ST9300603SS is still available on Amazon but the newer 10k.5 generation equivalent the ST9300605SS is on a same day delivery and it’s cheaper as well!</p>\n\n<p>Remove the disk</p>\n\n<div><div><pre><code>mdadm -r /dev/md0 /dev/sde1\n</code></pre></div></div>\n\n<p>This server does support hot plug but there were some zombie processes which I wanted to clear out and operationally a five minute outage would be fine.</p>\n\n<p>Shutdown the server and replace the disk. New disk (slot 2) during boot:</p>\n\n<p><img alt=\"\" src=\"https://www.tunbury.org/images/perc-bios.jpg\"></p>\n\n<p>After the reboot copy the partition table from one of the existing disks over to the new disk.</p>\n\n<div><div><pre><code>sfdisk -d /dev/sdb | sfdisk /dev/sde\n</code></pre></div></div>\n\n<p>Add the new disk into the array</p>\n\n<div><div><pre><code>mdadm /dev/md0 -a /dev/sde1\n</code></pre></div></div>\n\n<p>Monitor the rebuild process</p>\n\n<div><div><pre><code>watch -n 60 cat /proc/mdstat\n</code></pre></div></div>", 9 "content_type": "html", 10 "author": { 11 "name": "Mark Elvers", 12 "email": "mark.elvers@tunbury.org", 13 "uri": null 14 }, 15 "categories": [ 16 "ubuntu" 17 ], 18 "source": "https://www.tunbury.org/atom.xml" 19}