D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-340L => Topic started by: niconux59 on February 08, 2018, 09:17:42 AM

Title: How can my RAID 5 array get visible again ?
Post by: niconux59 on February 08, 2018, 09:17:42 AM
Hi all,

I'm having an issue : the NAS has lost my RAID array (RAID 5 over 3 disks) but I know it is OK as I still can connect on the box in SSH and scan the disks :

Quote
/ # mdadm --examine --scan
ARRAY /dev/md0 level=raid1 num-devices=3 UUID=ebdd7a6b:9e1cbf5c:79f0c3a3:96a18951
ARRAY /dev/md/1 level=raid5 metadata=1 num-devices=3 UUID=603e7452:dd806ac8:1c3daac7:9671e5ca name=1

but the system don't see my data array :

Quote
/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md0 : active raid1 sdc1[2] sdb1[1] sda1[0]
      524224 blocks [3/3] [UUU]
     
unused devices: <none>

I have been able to assemble the array by recreating a /dev/md1 node (that is not created anymore at boot whereas /dev/md0 is) :

Quote
/ # mknod /dev/md1 b 9 1
/ # mdadm --assemble --run --force --update=resync /dev/md1 /dev/sda2 /dev/sdb2 /dev/sdc2
mdadm: /dev/md1 has been started with 3 drives.
/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md1 : active raid5 sdb2[0] sda2[2] sdc2[1]
      5855285760 blocks super 1.0 level 5, 64k chunk, algorithm 2 [3/3] [UUU]
     
md0 : active raid1 sdc1[2] sdb1[1] sda1[0]
      524224 blocks [3/3] [UUU]
     
unused devices: <none>

So I can mount my array, say on /mnt/test and access all my datas :

Quote
/ # mkdir /mnt/test
/ # mount /dev/md1 /mnt/test
/ # whatever_I_want on /mnt/test

But the box web interface is still saying "No Volume Found" ...

Where is it stored in the config that the array is mount at boot ?

I forgot to give some details :

Thanks in advance
Title: Re: How can my RAID 5 array get visible again ?
Post by: FurryNutz on February 08, 2018, 09:26:02 AM
I recommend that you phone contact your regional D-Link support office and ask for help and information regarding this. We find that phone contact has better immediate results over using email. If in the USA, there is 24/7 online chat support.
Let us know how it goes please.