NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Gex010
May 22, 2015Aspirant
Recover BTRFS RAID
So I had an RN316 and the power supply died, I did not have time to organize another ReadyNAS to recover the data but in the end I realize I should have made a plan!
I was running 4x 2TB XRAID
I mounted the four drives successfully using mdadm btrfs-tools and managed to copy "all" of the data I needed.
Like an idiot before going through everything properly and making sure I didn't need anything else I decided to re-purpose one of the drives (i.e. it was formatted)
A day later I realized there was something I completely forgot to backup during my recovery.
I was pretty sure that I would be able to still recover in degraded mode since I still had 3 out 4 drives, so I mounted the 3 drives with no problems initially and could get to the data but during my copy I started to get input/output errors on the array.
I eventually figured out that one of the SATA cables was faulty and just gave up midway through my copy.
I replaced the SATA cable but now I cannot mount the array.
Below are is the output from mdadm --assemble --scan and mdstat
I"m thinking that I just need to run a fsck or whatever one would run for btrfs?
Any help would be appreciated.
I was running 4x 2TB XRAID
I mounted the four drives successfully using mdadm btrfs-tools and managed to copy "all" of the data I needed.
Like an idiot before going through everything properly and making sure I didn't need anything else I decided to re-purpose one of the drives (i.e. it was formatted)
A day later I realized there was something I completely forgot to backup during my recovery.
I was pretty sure that I would be able to still recover in degraded mode since I still had 3 out 4 drives, so I mounted the 3 drives with no problems initially and could get to the data but during my copy I started to get input/output errors on the array.
I eventually figured out that one of the SATA cables was faulty and just gave up midway through my copy.
I replaced the SATA cable but now I cannot mount the array.
Below are is the output from mdadm --assemble --scan and mdstat
I"m thinking that I just need to run a fsck or whatever one would run for btrfs?
Any help would be appreciated.
mint mint # mdadm --assemble --scan
mdadm: /dev/md/0 has been started with 3 drives (out of 4).
mdadm: /dev/md/1 has been started with 3 drives (out of 4).
mdadm: /dev/md/data-0 assembled from 2 drives - not enough to start the array.
mdadm: no devices found for /dev/md/data-0
mint mint # cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md127 : inactive sdb3[3](S) sdc3[4](S) sda3[5](S)
5845988521 blocks super 1.2
md1 : active raid6 sdb2[0] sdc2[2] sda2[4]
1047552 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/3] [UUU_]
md0 : active raid1 sda1[5] sdb1[3] sdc1[4]
4192192 blocks super 1.2 [4/3] [UUU_]
unused devices: <none>
8 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredThis does not look like a BTRFS issue, but rather something to do with mdadm
What is the output of the following?:
# mdadm -E /dev/sd{a,b,c}3 | grep "Update\|Checksum" - mdgm-ntgrNETGEAR Employee RetiredBtw if you purchased your 316 new it would still be under its 5 year limited hardware warranty. When you get the chance you should contact support to arrange an RMA.
I assume when you say the power supply died you are referring to the power supply unit in the NAS? - Gex010Aspirant
mdgm wrote: Btw if you purchased your 316 new it would still be under its 5 year limited hardware warranty. When you get the chance you should contact support to arrange an RMA.
I assume when you say the power supply died you are referring to the power supply unit in the NAS?
All 3 partitions have "correct" checksum
Yes the PSU inside stopped working, I will RMA ASAP - Gex010Aspirantreallocated sector count is high - disk test says likely to fail soon on sda
- mdgm-ntgrNETGEAR Employee RetiredIs the update time the same on all three?
What is the reallocated sector count up to? - Gex010Aspirant
mdgm wrote: Is the update time the same on all three?
What is the reallocated sector count up to?
looks like sdc is out?mint mint # mdadm -E /dev/sd{a,b,c}3 | grep "Update\|Checksum"
Update Time : Fri May 22 09:12:05 2015
Checksum : 263efcea - correct
Update Time : Fri May 22 09:12:05 2015
Checksum : b32579ab - correct
Update Time : Thu Feb 5 16:14:09 2015
Checksum : 4c49973b - correct
Reallocated sector count is very high - 3975 - mdgm-ntgrNETGEAR Employee RetiredYes, and that would explain why you can't start the RAID. Don't think you're going to be able to recover anything more from your array. sdc dropped out of your array in February. I assume you were using the default X-RAID single-redundancy?
Is sdc the disk with the very high reallocated sector count? - mdgm-ntgrNETGEAR Employee RetiredWhat exactly did you do with the disk you formatted? Did you put stuff on it after you formatted it?
At what date did you last have access to your data?
Can you send me your logs (see the Sending Logs link in my sig)
Mount md0 and grab /var/log and send that.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!