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 2011-05-05 17:15:36

petasis
Member
Registered: 2007-06-23
Posts: 39

RAID-1 disk gone bad. But which disk?

Hi all,

I have been using a DNS-323 with fw 1.03 with two disks for ages, under a RAID configuration.
I have just noticed a problem (writing to a specific directory does not work, the files are not copied at all, and I don't get an error).
The status page says everything is fine, I haven't got an email for degraded raid (test e-mail works), and no pink led in front of the DNS.

However, logging into the DNS, the logs have a different opinion:

EXT2-fs error (device md0): ext2_check_page: bad entry in directory #22822918: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
EXT2-fs error (device md0): ext2_readdir: bad page in #22822918
...
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x23f46f39
end_request: I/O error, dev sda, sector 603221778
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x23f46f6c
end_request: I/O error, dev sda, sector 603221786
Operation continuing on 1 devices
raid1: sda2: rescheduling sector 602161488
raid1: sdb2: redirecting sector 602161488 to another mirror
SCSI error : <0 0 0 0> return code = 0x8000002
sda: Current: sense key=0x3
    ASC=0x0 ASCQ=0x0
Info fld=0x23f4700a
end_request: I/O error, dev sda, sector 603222026
raid1: sda2: rescheduling sector 602161736
RAID1 conf printout:
--- wd:1 rd:2
disk 0, wo:1, o:0, dev:sda2
disk 1, wo:0, o:1, dev:sdb2
RAID1 conf printout:
--- wd:1 rd:2
disk 1, wo:0, o:1, dev:sdb2
raid1: sdb2: redirecting sector 602161736 to another mirror

cat /proc/mdstat
Personalities : [linear] [raid0] [raid1]
md0 : active raid1 sdb2[1] sda2[2](F)
      730860992 blocks [2/1] [_U]

unused devices: <none>

The raid is clearly degraded. Disk /dev/sda has failed. But which is /dev/sda? The disk on the left, or the disk on the right?

hdparm -i does not work on drives:

hdparm -i /dev/sda

/dev/sda:
hdparm: HDIO_GET_IDENTITY: Invalid argument


I am going to replace both disks (with 2 2TB), and I want to know which of the two disks to use for copying the data back.

Any ideas?

George

Offline

 

#2 2011-05-06 01:54:15

skydreamer
Member
From: At the Atlantic Coast
Registered: 2007-01-06
Posts: 232

Re: RAID-1 disk gone bad. But which disk?

I think sdb is faulty?
It should be the disk on the left, to verify run smartctl to get the S/N.

Offline

 

#3 2011-05-06 18:13:03

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: RAID-1 disk gone bad. But which disk?

It was /dev/sda that was faulty. Assuming that the right bay (which is Disk 0 according to the board) is /dev/sda, I used the disk in the left bay (assuming it was /dev/sdb) for copying data back to the new disks.

It worked fine, I only got two errors, on a single file and on a folder, which could not be read. These two were the files/folder that I couldn't copy at the DNS, and notified me that there is a problem with the disks.

I used "cp -a" to copy the data, plugging the old disk through usb. It took more than 15 hours to copy 500 GB of data though...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB