D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: nonlinear on July 25, 2017, 10:25:36 AM

Title: HDD failure in DNS-323?
Post by: nonlinear on July 25, 2017, 10:25:36 AM
Hello,

Yesterday when I logged into the DNS-323 to shut down the unit, I observed a message

Quote
The replacement hard drive does not have enough capacity to support the RAID 1 volume. Please insert a hard drive with more capacity."

I immediately shut down the machine.  Googling this error, it appears as though one of the HDDs has failed.  I turned on the machine briefly again to see if any of the lights on front were different color, and they were all shining blue.  When I logged in, however, it immediately went to the page which is shown in the screenshot below.

This is the first time this has happened to me and I'm not sure what the next steps are.  I am not even sure which disk is the damaged one.  Can anyone point me towards a guide that can walk me through the recovery steps?  Also, this might be a good time to upgrade from 1TB to 2TB disks - can anyone point me towards resources for that?

Thank you!  :D

(https://preview.ibb.co/m9h825/Screenshot.png)
Title: Re: HDD failure in DNS-323?
Post by: FurryNutz on July 25, 2017, 10:49:28 AM
Link>Welcome! (http://forums.dlink.com/index.php?topic=48135.0)


How long have you had these drives in the DNS?
Review this:
http://forums.dlink.com/index.php?topic=41395.0 (http://forums.dlink.com/index.php?topic=41395.0)

Title: Re: HDD failure in DNS-323?
Post by: ivan on July 25, 2017, 12:17:07 PM
Why oh why do people always shut down NAS boxes when they get an error message - that is the quickest way to lose all data.

Now to try and sort out your problem.

The good things:
1) it appears that you don't have auto rebuild enabled.  This is very good because since RAID 1 tries to mirror the drives you could end up with a lot of your data on the good drive going missing in an auto rebuild.
2) you have a RAID 1 setup, and assuming that only one disk is faulty, you still have all of your data intact.

The bad things:
1) you switched off the unit without checking the HD indicator LEDs or accessing the web interface to check what the problem was.
2) now you have to do the checking the hard way to find out which drive is faulty.

Hand checking:
1) obtain a SATA/USB adapter/caddy.
2) download a copy of the latest Seagate Seatools disk diagnostics program (either the bootable CD or USB stick is recommended although installing the program on a windows machine also works).
3) open the NAS and mark each drive with which slot it is in (this is important as the good drive MUST go back into the slot it came from if you don't want to lose any data).
4) take out one drive and insert it into the adapter/caddy.
5) boot up the computer with the disk tools, plug in the USB adapter/caddy and then follow the instructions to test the drive.
6) if the disk tools reports the drive as faulty you know which drive to replace (use a drive of the same capacity or larger).

After you replace the drive and power up the NAS it should tell you that the RAID array is degraded and you should rebuild it.  Do so and you should be back to a fully working unit.
Title: Re: HDD failure in DNS-323?
Post by: FurryNutz on July 25, 2017, 12:22:23 PM
Thank you Ivan for your help. You  are the man!!!
 ;D
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on July 25, 2017, 05:16:06 PM
Link>Welcome! (http://forums.dlink.com/index.php?topic=48135.0)

  • What Hardware version is your DNS? Look at the sticker behind or under the device.
  • Link>What Firmware (http://forums.dlink.com/index.php?topic=47512.0) version is currently loaded? Found on the DNSs web page under status.
  • What region are you located?

How long have you had these drives in the DNS?
Review this:
http://forums.dlink.com/index.php?topic=41395.0 (http://forums.dlink.com/index.php?topic=41395.0)

Thanks for your help!  This is hardware Version C, it's running firmware v. 1.10, and I'm in the southwest USA.  I believe the drives have been in the DNS since about 2011 or 2012.

Thanks!
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on July 25, 2017, 05:19:27 PM
Why oh why do people always shut down NAS boxes when they get an error message - that is the quickest way to lose all data.

Now to try and sort out your problem.

The good things:
1) it appears that you don't have auto rebuild enabled.  This is very good because since RAID 1 tries to mirror the drives you could end up with a lot of your data on the good drive going missing in an auto rebuild.
2) you have a RAID 1 setup, and assuming that only one disk is faulty, you still have all of your data intact.

The bad things:
1) you switched off the unit without checking the HD indicator LEDs or accessing the web interface to check what the problem was.
2) now you have to do the checking the hard way to find out which drive is faulty.

Hand checking:
1) obtain a SATA/USB adapter/caddy.
2) download a copy of the latest Seagate Seatools disk diagnostics program (either the bootable CD or USB stick is recommended although installing the program on a windows machine also works).
3) open the NAS and mark each drive with which slot it is in (this is important as the good drive MUST go back into the slot it came from if you don't want to lose any data).
4) take out one drive and insert it into the adapter/caddy.
5) boot up the computer with the disk tools, plug in the USB adapter/caddy and then follow the instructions to test the drive.
6) if the disk tools reports the drive as faulty you know which drive to replace (use a drive of the same capacity or larger).

After you replace the drive and power up the NAS it should tell you that the RAID array is degraded and you should rebuild it.  Do so and you should be back to a fully working unit.

Thank you ivan, this is really helpful!  I'm sorry I turned off the DNS, I thought I might be able to get the same information when I rebooted it but I guess not.  I will have to order a SATA/USB adapter.

If I want to upgrade to 2TB drives at this time, I suppose I need to modify the above instructions.  I should buy 2 SATA/USB, then transfer the good data from 1TB to 2TB drive (I guess just with both drives plugged into my laptop?), and then rebuild the RAID as above - is that the best way?
Title: Re: HDD failure in DNS-323?
Post by: ivan on July 26, 2017, 12:36:49 AM
If you want to upgrade to larger disks you just need to get the larger disks, put them in the NAS and use it to format them as RAID 1 (you must do this because, like all small NAS boxes, the 323 uses a software RAID).

Follow my instructions to find the good disk (the only difference is you don't need to mark which slot because they are not going back into the box).  The good disk becomes your backup but it is formatted with the Linux Ext2/3 file system that windows can't read and will mess up if it tries.  There are a couple of programs and an IFS that might work (depends on which version of windows) or, the simple way, boot your computer using a live Linux DVD (we actually use a Linux computer that has removable disk carriers to do this work), plug in the USB adapter/caddy mounted good drive and transfer everything over the network. 

NOTE doing it this way is not fast, there are several points that will slow thing down, but it does save your data and get you up and running again.
 
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on July 26, 2017, 09:50:48 AM
When I took out the drives, I pulled to hard on one of the drive ejector levers at the back, and broke it.  Also, the front plastic cover button has been broken for a few years (so I just run it without the front cover).  All of this is fine, but it's making me question whether I should just upgrade this whole box since it is quite old now.

Can anyone recommend a more recent unit that is not too expensive?  This is just a home file server, so I don't need anything fancy.  I mean the DNS-323 works for what I need so I might just keep using it anyhow, just wondering if I should consider upgrading.
Title: Re: HDD failure in DNS-323?
Post by: FurryNutz on July 26, 2017, 09:54:10 AM
Can you get the drives out of the case at all?

You might find a 327L moderately in expensive to use. It's a two bay unit.

The last of the DNS is the 340L. I'm enjoying my 345.  ;)
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on July 26, 2017, 10:05:37 AM
Can you get the drives out of the case at all?

I'm not sure, got them out but haven't tried inserting them again.  It's only one side that's broken.  I think I could get it out pushing with a screwdriver or similar through the new hole in the back, or trying to grip from the front with a needle nose - rough, I know.  :)  I'll have to give it a try when I get home.
Title: Re: HDD failure in DNS-323?
Post by: ivan on July 27, 2017, 02:43:32 AM
I have seen some 323 boxes in worse condition that are still happily working.

A point, if you do keep the unit.  Don't use a screwdriver to push the drive out, use a wood or plastic dowel, that way you are much less likely to damage anything.   
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on August 02, 2017, 09:23:25 AM
Hello everyone,

So I obtained a SATA/USB adapter and checked both disks using the Seagate Seatools software.  Both drives passed all 3 of the tests I tried - short drive self test, short generic, long generic.  So Seatools is not reporting any errors for either disk!  Can anyone tell me what the next steps might be?  Is there some possibility that the problem is with the DNS-323 or its software, and not my disks?

Thanks again for your help, it's much appreciated!  :)
Title: Re: HDD failure in DNS-323?
Post by: ivan on August 02, 2017, 01:48:47 PM
OK, generally we accept the results of the disk tools tests (the one exception where we don't is where the drive gets very hot very quickly).

A little information.  The RAID on these NAS units (and almost all small consumer units) is a software RAID.  That means there are ways of corrupting the basic RAID information (changing a few bites is all that is needed).  The usual reason for corrupt RAID information is a short term spike on the mains power that gets carried over to the NAS box (all our clients NAS boxes are on UPSs and those in the industrial situation have additional filters).

The next thing you should do is to take one drive and put it back in the USB/SATA adapter, download a Live Linux DVD and burn that to a DVD (assuming you don't have a Linux based PC available, if you do use that).  Boot your computer using the Linux DVD, plug in the USB mounted disk and check that all your data is there and available..  If it is, good, if not check the other drive.

Now you have choices.
1) copy all your data to another drive/s (I have people that have used a set of large capacity USB sticks for that).  Then replace the drives back in the NAS and format them as a RAID 1 array and restore your data.
2) get a pair of larger capacity disks, put them in the NAS anf format as RAID 1.  Then copy your data (using Linux) from one of the disks to the NAS over the network.   
3) get a new NAS with larger disks, format as RAID 1 and then copy your data as 2).
 
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on August 02, 2017, 01:57:46 PM
Thanks Ivan, this has been very helpful!
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on August 02, 2017, 05:05:45 PM
OK so I booted up using the Ubuntu live usb, was able to build the array in linux and check the contents of both disks.  It seems things are there on both disks.  One thing I did notice (remember) is that I actually already have 2 TB disks (LOL).  So I don't need to upgrade the HDDs as 2TB is the maximum size.  I can't believe I forgot that, but I purchased these in like 2011 and had forgotten (and didn't check apparently).

BTW, I noticed that I only have about 83gb free out of 2TB on each disk - any chance this could be the source of my problem? Should I allow more free space on these disks?

At any rate, it looks like I need to locate another 2+ TB drive and follow Ivan's option #1 above. thanks again Ivan!

Title: Re: HDD failure in DNS-323?
Post by: nonlinear on August 03, 2017, 08:16:17 PM
Hello, what is the best way to copy and verify files between drives?  Should I use

rsync -gloptrucv

Or is there some other method that would work better?  One thing about rsync is that I don't know how long this will take for 2TB, or where the transfer is in the process.  However, as I understand it, if I must stop the transfer part way through, I can just reissue this command later and it will only copy those files where the check sums do not match.
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on August 14, 2017, 05:07:25 PM
Hello, I am sorry to keep replying in this thread because I realize no one has responded to my last few posts.  However, I have run into a problem.  It's going to take days to transfer data from my external HDD over the network to my newly reformatted RAID 1.  Unfortunately, I have to take my computer to work each day so it will not work to make the transfer at one time.

I have a much faster machine at work however.  Can anyone tell me if it would be OK to remove one drive from the DNS, bring it to work and transfer all files from external to the RAID drive, and then reinsert it back into the DNS?  Would this work, or would it cause some problem?

Thanks in advance for any advice.
Title: Re: HDD failure in DNS-323?
Post by: FurryNutz on August 15, 2017, 09:41:20 AM
No, You can't break the RAID configuration.

Title: Re: HDD failure in DNS-323?
Post by: nonlinear on August 15, 2017, 10:01:24 AM
No, You can't break the RAID configuration.

OK thanks!  I appreciate it.
Title: Re: HDD failure in DNS-323?
Post by: FurryNutz on August 15, 2017, 10:57:09 AM
 ;)
Title: Re: HDD failure in DNS-323?
Post by: nonlinear on September 12, 2017, 09:44:54 AM
Hello everyone,

I've just logged in to my DNS-323 to shut down, and have another message that the RAID is degraded.  I've been traveling overseas the last weeks, and the box has been powered off since I last used it (and I did not previously see this degraded message).  I did not see any colored lights on the box, so it's again unclear what drive may or may not be affected.

At this point I'm not sure what to do.  Does anyone have any advice?  I'm not sure I want to go through the entire weeks long process again, only to have this problem happen again.  I guess at this point I should purchase a new NAS and new drives(?).  Any advice would be appreciated - leaving tomorrow for another overseas trip, and will likely be out of good internet contact.  So please don't take it personally if I do not respond promptly.   :)
Title: Re: HDD failure in DNS-323?
Post by: ivan on September 19, 2017, 01:27:54 PM
Since the unit was powered off in, presumably, full working condition and when powered back on you get the degraded message I think, for your peace of mind, it would be better to get a new unit and drives.

This is the reason we recommend these units to our clients - start to get problems, replace whole unit including drives and restore data from the backup.  I know I am looking at this from my business experience where loss of data can be critical but you have to ask yourself 'how important is your data and time.

Since you have a backup of your data and if you decide to replace the unit and drives it should be possible to do some quick tests on the old drives and maybe recycle them to some other use.