You are not logged in.

#1 2014-04-21 20:09:42

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

[Solved] Move Software RAID 5 Array From NAS To Arch

Edit: I probably never had a problem at all, the error in dmesg probably just scared me, because after I disconnected it I noticed that /dev/d127 was 8.1 TB, the exact size of my RAID array node in my NAS which was /dev/md0, I just overlooked it. I reconnected it to my pc and mounted /dev/md127 to /mnt/raid and got this wonderful sight!

[bran@ra ~]$ ls /mnt/raid
data  lost+found  meta  sys
 [bran@ra ~]$ ls /mnt/raid/data/
data      ftproot  module  _NAS_Media         _NAS_Piczza_  _NAS_Recycle_RAID  _P2P_DownLoad_  stackable  _SYS_TMP  TV       USBHDD
download  htdocs   Movies  _NAS_NFS_Exports_  NAS_Public    nzbget-downloads   PLEX_CONFIG     sys        tmp       USBCopy

I bought a Thecus N4520 a few months ago and it's ok but programs crash a lot and they're hard to debug, apps have to be updated manually and the whole thing is moderately underpowered. I'm trying to move the software RAID 5 array from the NAS to my desktop, the kernel seems to detect that there is a RAID array but all these drives aren't part of it. I'm pretty new to RAID and I'm just getting my feet wet with it.


When I try to assemble the RAID array, it just tells me that it isn't an md array. How can I get it to build my array?

 [bran@ra ~]$ sudo mdadm --assemble /dev/sdb /dev/sdc /dev/sdd /dev/sde
mdadm: device /dev/sdb exists but is not an md array.

Found this little chunk of info in dmesg, it says that the md devices have unknown partition tables.

[    3.262225] md: raid1 personality registered for level 1
[    3.262483] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.10
[    3.262508] iTCO_wdt: Found a Patsburg TCO device (Version=2, TCOBASE=0x0460)
[    3.262585] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[    3.262933] md/raid1:md126: active with 4 out of 4 mirrors
[    3.262961] md126: detected capacity change from 0 to 536850432
[    3.263272] RAID1 conf printout:
[    3.263274]  --- wd:4 rd:4
[    3.263276]  disk 0, wo:0, o:1, dev:sdc3
[    3.263276]  disk 1, wo:0, o:1, dev:sdb3
[    3.263277]  disk 2, wo:0, o:1, dev:sdd3
[    3.263278]  disk 3, wo:0, o:1, dev:sde3
[    3.263501] md: bind<sde4>
[    3.264810] md: bind<sdb2>
[    3.268262] async_tx: api initialized (async)
[    3.272632] md: raid6 personality registered for level 6
[    3.272636] md: raid5 personality registered for level 5
[    3.272637] md: raid4 personality registered for level 4
[    3.272905] md/raid:md127: device sdb2 operational as raid disk 1
[    3.272908] md/raid:md127: device sde2 operational as raid disk 3
[    3.272910] md/raid:md127: device sdd2 operational as raid disk 2
[    3.272911] md/raid:md127: device sdc2 operational as raid disk 0
[    3.273211] md/raid:md127: allocated 0kB
[    3.273241] md/raid:md127: raid level 5 active with 4 out of 4 devices, algorithm 2
[    3.273243] RAID conf printout:
[    3.273244]  --- level:5 rd:4 wd:4
[    3.273245]  disk 0, o:1, dev:sdc2
[    3.273246]  disk 1, o:1, dev:sdb2
[    3.273247]  disk 2, o:1, dev:sdd2
[    3.273248]  disk 3, o:1, dev:sde2
[    3.273273] md127: detected capacity change from 0 to 8929230716928
[    3.273322] RAID conf printout:
[    3.273326]  --- level:5 rd:4 wd:4
[    3.273329]  disk 0, o:1, dev:sdc2
[    3.273331]  disk 1, o:1, dev:sdb2
[    3.273332]  disk 2, o:1, dev:sdd2
[    3.273360]  disk 3, o:1, dev:sde2
[    3.283617]  md126: unknown partition table
[    3.309239]  md127: unknown partition table
[    3.312660] md: bind<sdb4>
[    3.318291] md/raid1:md124: not clean -- starting background reconstruction
[    3.318296] md/raid1:md124: active with 4 out of 4 mirrors
[    3.318333] md124: detected capacity change from 0 to 10736291840
[    3.318385] RAID1 conf printout:
[    3.318391]  --- wd:4 rd:4
[    3.318395]  disk 0, wo:0, o:1, dev:sdc4
[    3.318398]  disk 1, wo:0, o:1, dev:sdb4
[    3.318402]  disk 2, wo:0, o:1, dev:sdd4
[    3.318405]  disk 3, wo:0, o:1, dev:sde4
[    3.319890]  md124: unknown partition table
[    3.323462] md: bind<sde1>
[    3.338094] md/raid1:md125: active with 4 out of 4 mirrors
[    3.338225] md125: detected capacity change from 0 to 2146414592
[    3.338253] RAID1 conf printout:
[    3.338258]  --- wd:4 rd:4
[    3.338262]  disk 0, wo:0, o:1, dev:sdc1
[    3.338266]  disk 1, wo:0, o:1, dev:sdb1
[    3.338268]  disk 2, wo:0, o:1, dev:sdd1
[    3.338271]  disk 3, wo:0, o:1, dev:sde1

Here's my full dmesg

mdadm.conf

# The designation "partitions" will scan all partitions found in /proc/partitions
DEVICE partitions

ARRAY /dev/md127 metadata=1.2 name=(none):0 UUID=d1d14afc:23490940:a0f7f996:d7b87dfb
ARRAY /dev/md126 metadata=1.2 name=(none):50 UUID=d43d5dd6:9446766e:1a7486f4:b811e16d
ARRAY /dev/md125 metadata=1.2 name=(none):10 UUID=f502437a:d27d335a:d11578d5:6e119d58
ARRAY /dev/md124 metadata=1.2 name=(none):70 UUID=ea980643:5c1b79e8:64f1b4cb:2462799b

Last edited by brando56894 (2014-04-21 22:51:01)

Offline

Board footer

Powered by FluxBB