DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-06-09 07:23:54

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Can a drive removed from DNS323 (RAID 1) be read externally?

Hi all,

I am currently running a RAID 1 configuration on my DNS-323.

If the NAS stops functioning, can i simply take out the HDD and plug it into my desktop which runs windows and read the data directly?

Another question: How can i switch from RAID1 to JBOD without destroying the data in one of the HDD?

Thanks in advance!

Offline

 

#2 2010-06-09 15:17:50

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

uplinkhack wrote:

Hi all,

I am currently running a RAID 1 configuration on my DNS-323.

If the NAS stops functioning, can i simply take out the HDD and plug it into my desktop which runs windows and read the data directly?

No - the NAS uses an ext2 or ext3 format which cannot be read by Windows - you may be able to get access through the use of a file system driver such as ext2ifs, however, some users have experienced difficulties using these methods.

Another question: How can i switch from RAID1 to JBOD without destroying the data in one of the HDD?

Thanks in advance!

To the best of my knowledge, you can't - you need to back up, make the change & restore.

A perhaps important point - JBOD - Just a Bunch Of Disks - is a term with different interpretations, and D-Link's interpretation is one where two disks are concatenated to form a single volume.  If your interpretation is the one where each disk remains a single entity (which D-Link calls standard volumes) then it is possible to go from RAID1 to standard volumes without destroying data.

Offline

 

#3 2010-06-09 16:24:29

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

Thanks for the fast reply. How about if I have a Linux system? Can I plug and play externally?

I just upgraded from 1.05 to 1.08. Now i see the standard drives option. It appears that as long as I want to move away to other configurations (whether RAID or not), it'd ask to reformat the disks.

Another thing happened. I took out both disks and put them back after firmware update. Now it says the RAID 1 needs a rebuild (it is now 'degrade'). Why is it not able to regain it's RAID status? I had to rebuild my data and hopefully everything turns out fine.

Last edited by uplinkhack (2010-06-09 17:05:14)

Offline

 

#4 2010-06-09 23:12:48

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

If you have a linux system, it should be possible to connect the drives, mount the volume and gain access to the data - provided that you know how to do so.

When you make any change to the disk configuration in the DNS-323, it WILL prompt you to reformat the drives, and WILL destroy the data is you follow the prompts.  There is however, a trick, that will allow a RAID1 array to be changed to standard volumes with the formatting of one drive, leaving the data intact on the second.

With regard your mishap - there is a very high probability, that had you done the upgrade with the drives in place, you would not have ended up with a degraded array, however, the simple truth is any disruption to the function of a RAID array can cause it to become degraded with the possible loss of data.

Last edited by fordem (2010-06-09 23:14:16)

Offline

 

#5 2010-06-10 06:42:09

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

thanks for the reply again.

Would you care to explain how i can change from RAID1 to standard volume by formatting only a single drive? (or should i open another thread for discussion?)

I took out the disk before upgrading the firmware for fear that in the process my data would be wiped out. But in any case, the RAID was successfully rebuild(ed) so my data is back in its original state.

I have also backed up all data in another computer, so my next step would be to switch from RAID1 to Standard drive.

Last edited by uplinkhack (2010-06-10 06:45:17)

Offline

 

#6 2010-06-10 14:51:33

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

Remove either one of the two RAID1 disks and power the unit on, login and select TOOLS>RAID, set the RAID type to standard volumes and allow the unit to format the disk that is inside it.  Once this is complete, power the unit off and re-insert the disk that was removed and power it back up - the unit should at this point show you both disks as separate volumes.

Offline

 

#7 2010-06-10 16:11:39

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

thanks! will try it out.

Offline

 

#8 2010-06-11 22:01:05

sulan
Member
Registered: 2010-04-02
Posts: 17

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

Another somewhat similar question is whether it is possible to use RAID1 in a DNS-323 with 3 disks in a rotating fashion? 2 disks are in the DNS and once a week one of the disks are replaced with the 3rd one (and the 2nd taken to off-site backup storage).

If think the actual question is what happens if an up-to-date disk is placed next to an older version (that might lack some data) in a RAID1 system?

Offline

 

#9 2010-06-12 06:48:33

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

fordem wrote:

Remove either one of the two RAID1 disks and power the unit on, login and select TOOLS>RAID, set the RAID type to standard volumes and allow the unit to format the disk that is inside it.  Once this is complete, power the unit off and re-insert the disk that was removed and power it back up - the unit should at this point show you both disks as separate volumes.

Tried it out and works perfectly fine. Thanks!

Offline

 

#10 2010-06-12 06:50:31

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

sulan wrote:

Another somewhat similar question is whether it is possible to use RAID1 in a DNS-323 with 3 disks in a rotating fashion? 2 disks are in the DNS and once a week one of the disks are replaced with the 3rd one (and the 2nd taken to off-site backup storage).

If think the actual question is what happens if an up-to-date disk is placed next to an older version (that might lack some data) in a RAID1 system?

From my experience handling the DNS-323, it seems that once a disk is removed from the drive bay, the RAID will go into degraded mode. The next time you insert a disk, it rebuilds the data (whether it rebuilds EVERYTHING or only the updated portions, i have no idea), meaning in practice your 3 disk rotation will work.

Offline

 

#11 2010-06-12 18:20:05

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

uplinkhack wrote:

sulan wrote:

Another somewhat similar question is whether it is possible to use RAID1 in a DNS-323 with 3 disks in a rotating fashion? 2 disks are in the DNS and once a week one of the disks are replaced with the 3rd one (and the 2nd taken to off-site backup storage).

If think the actual question is what happens if an up-to-date disk is placed next to an older version (that might lack some data) in a RAID1 system?

From my experience handling the DNS-323, it seems that once a disk is removed from the drive bay, the RAID will go into degraded mode. The next time you insert a disk, it rebuilds the data (whether it rebuilds EVERYTHING or only the updated portions, i have no idea), meaning in practice your 3 disk rotation will work.

It will rebuild everything - however you'll find the results quite unpredictable - meaning whilst it will work in theory, in practice your 3 disk rotation will fail.  I suggest you use the RAID only as it was intended for disk redundancy.

Offline

 

#12 2010-06-14 18:28:35

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

i don't understand. why would something that would work in theory fail if RAID works? what do you mean by redundancy but not backup?

Offline

 

#13 2010-06-14 18:47:53

sulan
Member
Registered: 2010-04-02
Posts: 17

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

fordem wrote:

uplinkhack wrote:

sulan wrote:

Another somewhat similar question is whether it is possible to use RAID1 in a DNS-323 with 3 disks in a rotating fashion? 2 disks are in the DNS and once a week one of the disks are replaced with the 3rd one (and the 2nd taken to off-site backup storage).

If think the actual question is what happens if an up-to-date disk is placed next to an older version (that might lack some data) in a RAID1 system?

From my experience handling the DNS-323, it seems that once a disk is removed from the drive bay, the RAID will go into degraded mode. The next time you insert a disk, it rebuilds the data (whether it rebuilds EVERYTHING or only the updated portions, i have no idea), meaning in practice your 3 disk rotation will work.

It will rebuild everything - however you'll find the results quite unpredictable - meaning whilst it will work in theory, in practice your 3 disk rotation will fail.  I suggest you use the RAID only as it was intended for disk redundancy.

Yes, I've read about the problem with rotating disks in combination with RAID1 on the DNS-323. I therefore instead format the three drives as standard disks and use rsync to "clone" the main disk to the backup disk in the other slot every night. This works execellent with three disks as well, just shutdown the DNS remove the backup disk and bring it to a safe off location. Then plug in the 3rd disk in the free slot and power up. More information about the cloning: http://dns323.kood.org/howto:backup

More information about my backup script and the simple OSX GUI: http://dns323.kood.org/forum/viewtopic.php?id=5750

Last edited by sulan (2010-06-14 18:53:21)

Offline

 

#14 2010-06-17 19:37:40

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

uplinkhack wrote:

i don't understand. why would something that would work in theory fail if RAID works?

The reason the three disk rotation can fail in practice (specifically with the DNS-323) is that you are relying on Dlink's
utility scripts to correctly identify the "new" disk and issue the correct mdadm (http://en.wikipedia.org/wiki/Mdadm)
commands to reconstruct the RAID without losing any data.  Those RAID management scripts (not open source) do
not always do what you want them to do.  You can search this forum for numerous examples of users who lost data
when the RAID management scripts formatted the wrong disk. sad


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#15 2010-06-18 05:56:51

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

okay thanks for the clarification. In other words, DNS-323 is unreliable isn't it?

Offline

 

#16 2010-06-18 11:19:01

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

uplinkhack wrote:

okay thanks for the clarification. In other words, DNS-323 is unreliable isn't it?

Well, it's far from perfect. But it does what it is supposed to do. disk rotating is not part of the intended usage.

Offline

 

#17 2010-06-18 12:34:18

sulan
Member
Registered: 2010-04-02
Posts: 17

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

oxygen wrote:

Well, it's far from perfect. But it does what it is supposed to do. disk rotating is not part of the intended usage.

No, but replacing a failing disk is and this is where RAID1 kicks in. So, as I see it the DNS-323 is unrealiable with regards to its implementation of RAID1. But except from that the little box seams to work just great!

Last edited by sulan (2010-06-18 12:35:18)

Offline

 

#18 2010-06-18 15:21:10

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

sulan wrote:

oxygen wrote:

Well, it's far from perfect. But it does what it is supposed to do. disk rotating is not part of the intended usage.

No, but replacing a failing disk is and this is where RAID1 kicks in. So, as I see it the DNS-323 is unrealiable with regards to its implementation of RAID1. But except from that the little box seams to work just great!

Let me put it this way - as long as your data remains accessible in the event of a disk failure, the RAID1 implementation has served it's purpose - how you get the RAID array from a degraded state back to an optimum one is of no relevance - there was a time when a complete reinstallation of the OS was a requirement.

Yes - we have come to expect hot swappable disks, hot spares, automatic rebuilds, online capacity expansion, etc., etc., etc., but these are actually additional features and not required for a basic RAID implementation.

Less than a week ago I had a disk failure on an entry level server from one of the three big names in Windows based servers, the disk failed, the server alerted the administrator and at the end of the day I sent a tech to replace it, he powered the server down opened it up & removed & replaced the failed drive (a 250GB SATA) and powered it on, and expected it to start a rebuild, because that's what normally happens when he replaces a drive on a larger server.  When it didn't he called in and had to be talked through going in to the RAID Management Software utility and selecting the drive and starting a rebuild.

I'm talking about a piece of hardware designed for use in a small business environment or for small branch offices in a larger corporate climate - and that doesn't offer any of those additional features either.

If the DNS-323 allowed or required the user to select a drive and initiate a rebuild there might be fewer complaints about lost data, but would the users know how to deal with it?

Offline

 

#19 2010-06-19 10:26:10

Hound
Member
From: Russian Federation
Registered: 2009-01-30
Posts: 9

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

I've got DNS-323 configured in RAID-1 mode, and a couple of times I had removed a hard drive, and succesfully conected it to a PC, getting all the data I needed. You need to find and install Ext3 driver, that's quite easy.

Offline

 

#20 2010-06-19 13:20:15

sulan
Member
Registered: 2010-04-02
Posts: 17

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

Okay, I understand. Good points.

Offline

 

#21 2010-06-20 18:50:47

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

Hound wrote:

I've got DNS-323 configured in RAID-1 mode, and a couple of times I had removed a hard drive, and succesfully conected it to a PC, getting all the data I needed. You need to find and install Ext3 driver, that's quite easy.

any additional info on what driver you used? just in case i need it in future.

Offline

 

#22 2010-06-20 18:58:45

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

what about the thing about RAID being redundancy and not backup? seems the same to me..

Offline

 

#23 2010-06-21 04:39:32

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

You're misreading my signature.  It says ...

RAID1 is for disk redundancy, not data backup, don't confuse the two ...

Notice the areas I have highlighted?

Data backup is about having multiple copies of the same data, preferrably on different medium - if the disk containing your data fails and you have no backup, you lose the data - if a virus corrupts your data and you have no backup, you lose the data.

RAID1 is about disk redundancy - even if you have a backup copy of your data, if your system has a single disk and that disk fails, you're without a system until you can replace the disk and restore the data, wheras, in a system with RAID1, if a disk fails, the system continues to run, uninterrupted - this is very important - disk redundancy is about the disks, not the data - it's about the down time that results from a failed disk.

Now - think about this - if you have a RAID1 system and a virus corrupts your data - that's the data on both disks corrupt, so if there's no backup - you lose the data.

Get the idea now?

Offline

 

#24 2010-06-21 06:26:23

uplinkhack
Member
Registered: 2010-06-09
Posts: 14

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

that's a very clear explanation. thank you very much!

Offline

 

#25 2010-06-21 11:19:57

index monkey
Member
From: UK
Registered: 2007-06-14
Posts: 112

Re: Can a drive removed from DNS323 (RAID 1) be read externally?

Aww fordem, I bet you just loved explaining your signature for the millionth time! smile


DNS-323, HW B1, 2 x 2TB WD green, fw 1.08, fun_plug 0.5, transmission, automatic, nzbget newsreader & rsync time machine backup.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB