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

#101 2008-05-02 07:36:25

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

Re: DNS shows 1 hdd degraded after upgrade to 1.04

jayas wrote:

It looks like D-LINK is happy to work out what is wrong on its own without help offered ... so lets just sit tight wait to see what 1.05 brings.

jayas, It looks to me, from this post http://forums.dlink.com/index.php?topic … 80#msg7880
that D-Link has not even acknowledged this problem and perhaps some help would be
of assistance.


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

 

#102 2008-05-02 11:49:10

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: DNS shows 1 hdd degraded after upgrade to 1.04

Hi Mig,

mig wrote:

jayas wrote:

It looks like D-LINK is happy to work out what is wrong on its own without help offered ... so lets just sit tight wait to see what 1.05 brings.

jayas, It looks to me, from this post http://forums.dlink.com/index.php?topic … 80#msg7880
that D-Link has not even acknowledged this problem and perhaps some help would be
of assistance.

Sorry I cannot read that message because it is "missing or offlimits" to me, and I kinda don't feel like going on to yet another forum.  I recall DLINK in this forum said I should try that 'official' forum and I gave up for that reason.

[digression]

I looked into this a while ago when my Seagate drives would not format successfully.  There were two problems in my case: one of the disks had too many bad sector mappings.  This means disk does not report errors but you hear the clicking sounds.  The script that formatted the disks appear to not cope with this.  My solution was to format it myself using fun_plug.

Then I looked into why hot-swapping was not supported.  DLINK support (in Australia) said this is because the chipset used does not support it.  I did not believe it and decided to play with the scripts.  I got to the stage where if we ignore the error message emails and drive lights, I could get a hot plugged drive to work without having to power-cycle the DNS-323, except that it appeared as a different drive, namely /dev/sdc.  It looked like sata hotplug scripts were the problem.

I tried to understand /etc/hotplug/sataumount and my understanding is reflected here:

Code:

#!/bin/sh

# debug log
date >> /dev/HD_a2/fun_logs
echo $0 >> /dev/HD_a2/fun_logs

# manifests
scsiInfo=/proc/scsi/scsi
idString=abcdefghijklmnopqrstuvwxyz

# parameters
diskPath=$(cd /sys/custom/shared_name/HD; echo *)
diskName="Volume_"

# unmount sata disks ...
hostNo=0
diskNo=1
while   [ $hostNo -lt 2 -o -n "$attach" ]
do
        # for each disk attached to host adapter ...
        count=$(grep -c "Host: scsi$hostNo" $scsiInfo)
        while   [ $count -gt 0 ]
        do
                # establish disk ID
                diskId=$(expr substr $idString $diskNo 1)

                # unmount the disk
                mount=
                retry=0
                while   [ $retry -lt 5 ]
                do
                        # check if mounted ...
                        check=$(mount | grep /mnt/$diskPath$diskId)

                        # if not mounted ...
                        [ -z "$check" ] && break

                        # get mount path
                        mount=$(set - $check; echo $3)

                        # attempt lazy unmount
                        umount -l $mount

                        # on subsequent retries ...
                        [ $retry -ne 0 ] && sleep 1

                        # iterate loop
                        retry=$(($retry+1))
                done


                # if disk was not mounted ...
                [ -z "$mount" ] && break

                # if disk was unmounted ...
                [ -z "$check" ] && rm -fr $mount

                # delete all names for disk
                baseName=$diskPath$diskId
                deltbl $diskName$diskId $baseName >/dev/null
                index=1
                while   [ $index -lt 17 ]
                do
                        deltbl $diskName$index $baseName$index >/dev/null
                        index=$(($index+1))
                done

                # delete markers
                rm -f /tmp/HDDBlackList_$diskId
                rm -f /tmp/sd$diskId$hostNo
                rm -f /tmp/havedev
                rm -f /tmp/sata*

                # iterate loop
                diskNo=$(($diskNo+1))
                count=$(($count-1))
        done

        # iterate loop
        hostNo=$(($hostNo+1))
        attach=$(grep scsi"$hostNo" "$scsiInfo")
done

# return success
exit 0

I gave up when I tried to extract the requirements for /etc/hotplug/satamount ...

I told DLINK these scripts need attention pronto.  I also told DLINK Australia about myself.  I said I am able to help get the scripts done properly.  DLINK Australia thanked me very kindly for my offer, but said that as much as they appreciated my offer of help, there was really no channel between DLINK Australia and the development team that enabled them to faciliate this.  For what it is worth, the support guy at DLINK Australia was great.

I tried a few more things I played with, like making the lights change to amber, but I eventually found out things just latched up and there were just too many unknowns and I cannot do this without some help from DLINK as to what the requirements are or what this piece of code is really supposed to do.

[end digression]

So this is the state of things ... and I am hoping someone (who could write good clear shell scripts) will have cleaned up these scripts in 1.05 firmware.  I have not worked out how to hook the scripts to the firmware if I sat down and fixed them all.

This is pretty much the situation from my perspective.

Kind regards,

Jaya

PS:  I am having somewhat serious RSI issues at the moment, so I apologise (to myself!) for putting up such a long post, and without reading it back even.


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#103 2008-05-02 20:56:09

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

Re: DNS shows 1 hdd degraded after upgrade to 1.04

jayas wrote:

... and I am hoping someone (who could write good clear shell scripts) will have cleaned up these scripts in 1.05 firmware...

You have obviously have done some good work here, and I think the "official" D-Link forum would
be the best way for you to expose this information to the D-Link company, as well as, other users
who may not know about this hacker forum.  D-Link (the DNS-323 support/development group)
need to acknowledge, and be able to reproduce, the problem before they will allocate resources
to fix it.  D-Link (the company) is supposed to monitoring and posting to their "official" forum, so
it can't hurt to contribute there, too.

There were plenty of "glaring" (IMHO) problems with FWv1.03, which were not address in the FW1.04
update (not to mention that FWv1.04 to over 9 months to release).  Fortunately, for most of thoes issues
I had, I was able to work around them, only with the help of the efforts of members of this hacking forum.   
It would be a shame to have D-Link release FWv1.05, and only after that, recognizes the satamount scripts
need work, too.


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

 

#104 2008-05-03 01:44:51

jacksoncage
New member
Registered: 2008-05-03
Posts: 1

Re: DNS shows 1 hdd degraded after upgrade to 1.04

Maybe this isn't as isolated as suggested in some posts. Just thought I'd add lmy experience. I recently upgraded to 1.04 and now see the amber ligh on the left drive (it actually looks pink). I have two 1TB drives installed with 500GB RAID1 and  1TB JBOD. When reading or writing to either volume the left drive light changes to blue. When not being accessed the light changes back to pink. I also get the "degraded" status for sync time remaining. D-Link tech support indicated they had never heard of a pink light or the "degraded" status and recommended replacing the drive.

Last edited by jacksoncage (2008-05-03 01:50:33)

Offline

 

#105 2008-05-03 01:51:03

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

Re: DNS shows 1 hdd degraded after upgrade to 1.04

It seems to happen more with the newer larger capacity drives - so far I've heard of it with Seagate 7200.11 and some Western Digital - what drives are you using?

Offline

 

#106 2008-05-03 09:50:13

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: DNS shows 1 hdd degraded after upgrade to 1.04

Hi Jacksoncage

jacksoncage wrote:

Maybe this isn't as isolated as suggested in some posts. Just thought I'd add lmy experience. I recently upgraded to 1.04 and now see the amber ligh on the left drive (it actually looks pink)... D-Link tech support indicated they had never heard of a pink light or the "degraded" status and recommended replacing the drive.

Here is my take on the amber/pink light issue:

Amber light comes on when DNS-323 (rightly or wrongly) determines that a disk is faulty.  When amber light is off the blue light indicates disk is functional and flickers when there is activity.

When the amber light is on, the blue light is not supposed to come on.  When it does, this is when the amber light appears pink.

I believe the pink light is s clear indication that DNS-323 is confused as to whether or not the disk is faulty.  One half of it (that drives the amber light) says it is, but the other half (that drives the blue light) thinks all is okay.

Now I can create the amber and pink light scenarious by simply creating certain files used by DNS-323 for communication between its various components -- so I know what the amber light looks like with and without the pink light.

The only real way to get to the root of this problem is to look at the the components that deal with hotplug and communication schema between these components and the part of the system that activates the lights.

Regards,

Jaya

Last edited by jayas (2008-05-03 09:51:04)


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#107 2008-05-03 15:46:23

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

Re: DNS shows 1 hdd degraded after upgrade to 1.04

I have two comments and one question

1) A degraded array is not necessarily the result of a failed disk - I'm making this statement based on general RAID experience and it is not DNS-323 specific - my DNS-323 with fw 1.04 appears to be capable of detecting and indicating a degraded array problem even when both disks are physically present & functional - this was not the case with fw 1.03

2) To me - and again this is based on general experience - hot plug is specifically the ability to physically remove and replace a component (such as a disk) with power applied - hot plug and hot swap are related, but not the same thing - you can have hot plug without being able to hot swap, but not the other way around.

Why do you feel that hot plug is involved in a problem that reportedly occurs upon powerup?

Offline

 

#108 2008-05-09 13:05:58

tsourbier
New member
Registered: 2008-05-09
Posts: 1

Re: DNS shows 1 hdd degraded after upgrade to 1.04

Just for the stats, I up(down?)graded to 1.04 last night and I too noticed a few minutes after the light of my right drive turning pink and the status going as "downgraded" sad

I've got 2 Samsung Spinpoint T166 S-ATA - 500 Go - 16 Mo drives.

T.

Last edited by tsourbier (2008-05-09 13:06:35)

Offline

 

#109 2008-05-19 19:57:47

joejoe
New member
Registered: 2008-05-12
Posts: 3

Re: DNS shows 1 hdd degraded after upgrade to 1.04

I have the same problem in 1.04. After upgrade to 1.05, I don't see the same problem again. Looks like 1.05 fix this problem. I'm using seagate 7200.11 500GB with raid 1.

Last edited by joejoe (2008-05-19 19:58:44)

Offline

 

#110 2008-06-19 11:38:36

BravoNZ
New member
Registered: 2008-06-19
Posts: 1

Re: DNS shows 1 hdd degraded after upgrade to 1.04

Hi all,

This is great - I've just bought a couple of DNS-323s for clients and one is experiencing this very issue, so thank goodness for Google and you guys!

After reading this whole thread, I'll take a stab at adding the unit's config to this discussion, in the hopes it may trigger something:

*  DNS-323 hardware B1
*  Firmware 1.04 (Australasian version, if that helps?)
*  Upgraded firmware from 1.03 straight out of the box, even before putting any drives in
*  2 x Seagate 750GB ST3750330AS
*  Configured as a (approx) 200GB RAID 1, with 1TB JBOD
*  Left running it seems OK, but power-down and then power-up again gives amber light on a seemingly random drive
*  Re-formatting drives fixes problem (can power-down/up normally) but putting any data on JBOD volume will cause issue
*  RAID 1 volume has not had any data put onto it, but it will still be listed as 'degraded' if the unit is powered-down and then powered-up  (only data on it is the 28KB it mentions in the webgui - I guess this is used by the OS)
*  I haven't installed any fun_plug (I'm still trying to work out what it is used for!)

Are we thinking the drives are safe and are being incorrectly reported by the DNS-323 as faulty?  Or should we return the drive(s)?

Anyone else had any new theories or trouble-shooting ideas about this?  And is it true that 1.05 is now out (living in New Zealand I was told we should wait for an Australasian firmware version update, not to use a US one - does this sound valid?)?

Thanks!

Last edited by BravoNZ (2008-06-19 11:40:53)

Offline

 

#111 2008-06-19 20:51:40

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: DNS shows 1 hdd degraded after upgrade to 1.04

If you decide to put ffp on, then you can telnet in and run:

Code:

mdadm --detail /dev/md0

This will give you more information as to what is going on.  You can also use this program to resync the drives.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB