Tag archives: mdraid

Thursday, 19th April 2012 - 12:54:30

bin/bash

I have been messing around with the home server. A disk has died.

Handy summary of all the mdraid devices in your machine:

driveinfo.sh:
#!/bin/bash
for q in `find /dev/ -name md\* | sort`; do echo $q:; mdadm --detail $q | grep -E "/dev/s|Array Size|Raid Level"; echo; done > driveinfo.txt;
grep "/dev/sd" driveinfo.txt | awk '{print $7}' | xargs hdparm -i | grep -E 'dev|Model' | awk '{print $1" "$6}' >> driveinfo.txt;
mail -s "mdraid info" [your email] < driveinfo.txt

This machine is a modifed intel server. Because it does not have the hotswap chassis installed with nice numbering and fixed IDs, its hard to keep track of the drives (there are 10). The idea of this is to send the info across via email so that I can look at it on my mobile or other computer while the server is down.

Saturday 30th August 2008 - 19:02:16

Chip

Oh Yeah! New Drives and New U320 Cable.

Target 0 Negotiation Settings
User: 320.000MB/s transfers (160.000MHz RDSTRM|DT|IU|QAS, 16bit)
Goal: 320.000MB/s transfers (160.000MHz RDSTRM|DT|IU|QAS, 16bit)
Curr: 320.000MB/s transfers (160.000MHz RDSTRM|DT|IU|QAS, 16bit)
Channel A Target 0 Lun 0 Settings
Commands Queued 40885
Commands Active 0
Command Openings 4
Max Tagged Openings 4
Device Queue Frozen Count 0
Target 1 Negotiation Settings
User: 320.000MB/s transfers (160.000MHz RDSTRM|DT|IU|QAS, 16bit)
Goal: 320.000MB/s transfers (160.000MHz RDSTRM|DT|IU|QAS, 16bit)
Curr: 320.000MB/s transfers (160.000MHz RDSTRM|DT|IU|QAS, 16bit)
Channel A Target 1 Lun 0 Settings
Commands Queued 43304
Commands Active 0
Command Openings 4
Max Tagged Openings 4
Device Queue Frozen Count 0

1TB Mirror of j0r

# mdadm --detail /dev/md5
/dev/md5:
Version : 00.90.03
Creation Time : Sat Aug 30 19:10:28 2008
Raid Level : raid1
Array Size : 976759936 (931.51 GiB 1000.20 GB)
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 5
Persistence : Superblock is persistent

Update Time : Sat Aug 30 19:10:28 2008
State : clean, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Rebuild Status : 10% complete

UUID : a09dbd93:faf5d9d1:abf542e5:d7389fec
Events : 0.1

Number Major Minor RaidDevice State
0 8 81 0 active sync /dev/sdf1
1 8 97 1 active sync /dev/sdg1

Friday 29th August 2008 - 21:52:47

Chip

So, what am I supposed to do when I fill 1TB of drives? Yell

...

That's right! Get more. Laughing 2TB more. Well 1. It's going to be mirrored.

I've also got myself a new U320 cable so that I don't have to stretch it over the top of the CPUs. In fact. I think I will move the U320 boot mirror to another lower bay. Photos Later.

I'm currently brewing an APA with a 3Kg ESB APA kit, a BMBS Lager & Draught infusion pack and extra cascade. I'm also using US-05 yeast which is better for APAs. Should be yummy. The last one was!