[rhelv6-list] md and mdadm issue

Bryan Hepworth bryan.hepworth at newcastle.ac.uk
Thu Oct 10 21:17:35 UTC 2013


Hi all

I recently had an issue with my md1200 with a Linux software raid. Originally I split it into 2 10TB partitions with Disk Manager.

They received device numbers /dev/md126 and /dev/md127 - recently there was a bit of a power issue, and a DOA replacement drive, which has now been replaced. Unfortunately there now appears to be a couple of different device numbers, /dev/md0 and /dev/md1 and the new drive /dev/sdp as below: -

unused devices: <none>
[root at inscribe2 mail]# lsscsi -g
[0:0:32:0]   enclosu DP       BACKPLANE        1.07  -         /dev/sg0
[0:2:0:0]    disk    DELL     PERC H700        2.10  /dev/sda   /dev/sg1
[0:2:1:0]    disk    DELL     PERC H700        2.10  /dev/sdb   /dev/sg2
[1:0:0:0]    cd/dvd  TEAC     DVD-ROM DV-28SW  R.2A  /dev/sr0   /dev/sg3
[5:0:0:0]    tape    IBM      ULT3580-HH4      A233  /dev/st0   /dev/sg4
[5:0:0:1]    mediumx IBM      3573-TL          9.50  /dev/sch0  /dev/sg5
[5:0:1:0]    disk    WD       WD2000FYYG       D1B3  /dev/sdc   /dev/sg6
[5:0:2:0]    disk    WD       WD2000FYYG       D1BC  /dev/sdd   /dev/sg7
[5:0:3:0]    disk    WD       WD2000FYYG       D1BC  /dev/sde   /dev/sg8
[5:0:4:0]    disk    WD       WD2000FYYG       D1BC  /dev/sdf   /dev/sg9
[5:0:5:0]    disk    WD       WD2000FYYG       D1B3  /dev/sdg   /dev/sg10
[5:0:6:0]    disk    WD       WD2000FYYG       D1B3  /dev/sdh   /dev/sg11
[5:0:7:0]    disk    WD       WD2000FYYG       D1B3  /dev/sdi   /dev/sg12
[5:0:8:0]    disk    WD       WD2000FYYG       D1B3  /dev/sdj   /dev/sg13
[5:0:9:0]    disk    WD       WD2000FYYG       D1B3  /dev/sdk   /dev/sg14
[5:0:10:0]   disk    WD       WD2000FYYG       D1BB  /dev/sdl   /dev/sg15
[5:0:11:0]   disk    WD       WD2000FYYG       D1BB  /dev/sdm   /dev/sg16
[5:0:12:0]   enclosu DELL     MD1200           1.01  -         /dev/sg17
[5:0:13:0]   disk    WD       WD2001FYYG-01SL3 VR07  /dev/sdp   /dev/sg22
[6:0:0:0]    tape    IBM      ULT3580-HH4      A233  /dev/st1   /dev/sg18
[6:0:1:0]    disk    DELL     MD32xx           0770  /dev/sdn   /dev/sg19
[6:0:1:1]    disk    DELL     MD32xx           0770  /dev/sdo   /dev/sg20
[6:0:1:31]   disk    DELL     Universal Xport  0770  -         /dev/sg21

[root at inscribe2 mail]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md1 : inactive sdg1[0]
      1953510977 blocks super 1.2

md0 : inactive sdf1[1] sdc1[6] sdd1[4] sde1[2]
      7814043908 blocks super 1.2

md127 : active raid5 sdi1[4] sdh1[6] sdk1[2] sdj1[3] sdl1[1] sdm1[0]
      9767552000 blocks super 1.2 level 5, 512k chunk, algorithm 2 [6/6] [UUUUUU]
      bitmap: 1/15 pages [4KB], 65536KB chunk

unused devices: <none>
[root at inscribe2 mail]#

How do I go about moving the drives back into /dev/md126 ? would I be right in thinking I issue mdadm --assemble --verbose /dev/md126 /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdp
Any pointers gratefully received on the process.

Thanks

Bryan

Bryan Hepworth
Computing Officer
Institute of Genetic Medicine
Newcastle University
International Centre for Life
Newcastle
NE1 3BZ






More information about the rhelv6-list mailing list