NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
edkedk
Jul 20, 2016Tutor
btrfs_merge_bio_hook+a0 error, recovery possible?
Hi, I have a ReadyNAS 204 with the btrfs_merge_bio_hook+a0 error. After reboot I can ssh into the box, but the web interface does not load and the data volume is not mounted. Output of cat /p...
- Aug 01, 2016
Eventually I used --path-regex to restore specific directories and it worked fine. Seems that everything I wanted was copied.
davexyz
Jul 21, 2016Aspirant
edkedk
Jul 21, 2016Tutor
Thank you, I'll check that.
- edkedkJul 27, 2016Tutor
I moved the HDDs to a Linux (Ubuntu) PC.
/proc/mdstat shows the arrays correctly.
btrfsck /dev/md127 gives loads of checksum errors, finally dumps core.
The file system can't be mounted with the ro,recovery options.
I started a dry run of btrfs restore and it outputs file names that would be restored but I don't have a big enough target HDD to complete a restore this way.
Do you know of a way that would overcome the checksum errors and let me mount the FS?
- davexyzJul 27, 2016Aspirant
I feel your pain
I had exactly the same issues about a year ago with this error. I knew nothing about linux but in getting a solution that worked for me had a crash course
To attempt to translate into common speak with a degree of licence for the simplistic explanation.
The actual volume presented is in fact as you have been found from a number of discs and also a number of separate volumes on the discs.
Also when you expand via X-Raid another volume is create with the free space.
The operatiing system then "meshes", hooks, these separate volumes together into what is presented as "One Volume"
So what the error message is saying is "that it cannot find the entry/exit points on these separate storage volumes to generate the one large volume."
The checksum errors are shown when trying to read across the boundaries but with no way of undertstanding where the data is in the volume. (or something like that)
I delved deep into this and found a range of articles on how to restore a btfrs volume After 4 weeks of tinkering I gave up. I contacted a number of commercial companies and was told on more than one occasion that "recovery cannot be done who would use btfrs in a commercial system anyway.!!" Others gave a very high initial charge plus an even higher charge to recover if it was deemed viable.
Anyway I fell back on an old colleague of mine who was well versed in linux and actually he put me on to a "Windows" solution One was ReclaiMe and the other was UFS Explorer Pro I tried the trials and found UFS Explorer saw all my data. In fact my friend had a colleague who had a copy so I sent my discs to him and he recovered my data.
Job done Then I came across this article. A similar problem (different NAS supplier) but actually the same underlying explanation that I found out by my amateur investigations and analysis. Google " anandtech nas recovery"
As for linux before getting to my solution I tried a lot of Linux programs I would hestitate to say all but tried most of the "forensic tools" BTRFS support is poor. What stopped me from a factory reset was when I used PHOTOREC this recovered a multude of "sections" of my data. This indicated that my data still existed it was getting it off that was the issue There is still a lack of Linux recovery programs when proprietary expanasion modes are used even though the basic linux commands create these volumes.
Anyway try the Windows solutions They worked in my case
- edkedkAug 01, 2016Tutor
Eventually I used --path-regex to restore specific directories and it worked fine. Seems that everything I wanted was copied.
- mdgm-ntgrAug 01, 2016NETGEAR Employee Retired
davexyz wrote:
As for linux before getting to my solution I tried a lot of Linux programs I would hestitate to say all but tried most of the "forensic tools" BTRFS support is poor. What stopped me from a factory reset was when I used PHOTOREC this recovered a multude of "sections" of my data. This indicated that my data still existed it was getting it off that was the issue There is still a lack of Linux recovery programs when proprietary expanasion modes are used even though the basic linux commands create these volumes.
X-RAID uses mdadm for the RAID. This is Linux software RAID that has been used for several years. mdadm is a free Linux tool and the tools for BTRFS are also free.
We automate expansion to make it easy for you, but we use standard RAID levels. Data can be recovered using an ordinary x86 Linux PC.
The tools for Linux may take some getting used to, but as edkedk discovered advanced users can generally figure out how to do what they want. Trying to do it yourself is at your own risk. If you make mistakes in some cases you can make the problem worse.
We do sell data recovery services. Our data recovery services are software based only (we don't do physical repairs to disks) and are attempts that may be unsuccessful. Sometimes data recovery can be straightforward, sometimes there are some more complicated cases where our team may do things such as analyse metadata dumps to determine what can be done.Once you've got the RAID started you would then use the standard tools for BTRFS recovery.
I think the data recovery tools on Linux for BTRFS are pretty good and much better than what was around for EXT4.It is still important to note that data recovery should not be relied upon. Backups are important. No important data should be stored on just the one device.
- davexyzAug 01, 2016Aspirant
A solution to this error has been "requested in a number of threads. This is the only time a user has posted a solution As my post in this thread stated I had this over a year ago and got nowhere.
So I am ecstatic that a solution has been posted.
I also stated that I am a complete novice when it comes to linux. As stated in the prior post "advanced users can get a solution" My issue/problem whatever you wish to call it is about when I things go wrong we are back too
"have you got a backup" etc.
The basic user has shelled out for a NAS and a significant amount of storage and in the main has a turn-key sutuation. When things go wrong then the issue of no backup occurs, so once bitten, for example, buy the same system again to use as a backup. However this does not guarantee safety as if it is two Netgear NAS' the same this could happen on the Main and the backup, what are the chances?. So shell out for multiple usb fallback devices and so on. Yes there is also the recovery option at what cost?.
I know that it is the users reponsibility as to the value of the data but just trying to put this into the context of the basic user not the IT professional or Linux expert.
And yes BTRFS recovery tools in what ever "flavour" are now becoming available as the commercial useage increases
- StephenBAug 01, 2016Guru - Experienced User
Let's start by saying this isn't really a NAS issue. No matter where you keep your data, there's a chance you will lose it due to failures. The data loss I've experienced myself predates my NAS ownership. Generally my loss stories started with a PC or workstation drive failure, followed by a failure of backup media (some optical disks that couldn't be read, some USB drives also - and once my employer's enterprise backup tapes).
Even for the advanced user, backups are much better than attempting data recovery. When I've done data recovery, I've never gotten everything back.
My approach to backup was formed in response to my own pre-NAS data loss, and I've simply carried it forward to my NAS. That approach is simple - keep three copies of everything on different devices (including the original). Keep one copy offsite if you want disaster protection. Theoretically of course I could still lose data, but for me this policy lowers the risk enough. I have yet to lose data when I follow it.
You do need to weigh the economics, but you should also consider the inherent value of the data - for many home users, it includes personal data (videos, pictures of family, etc) that are impossible to replace. There's a second class of data (for instance commercial music/videos) which generally are replaceable, but not easily.
There are options that I think anyone who can afford a NAS in the first place can manage:
- cloud backup is available for about $60 per year with unlimited storage (both crashplan and amazon cloud are about that price).
- USB drives of reasonable size are about $40 per TB
Doing both would follow my "3 copy" policy, and provide a local copy which is faster to restore than the cloud.
davexyz wrote:
When things go wrong then the issue of no backup occurs, so once bitten, for example, buy the same system again to use as a backup. However this does not guarantee safety as if it is two Netgear NAS' the same this could happen on the Main and the backup, what are the chances?. So shell out for multiple usb fallback devices and so on. Yes there is also the recovery option at what cost?.
Another NAS is of course is more expensive than using external hard drives, but I find it more convenient. It's easy to automate, and easy to cut over to the backup if the primary fails. Generally the more storage you have, the more attractive NAS->NAS backup becomes. An RN214 with 4x4TB works out to about $60 per TB (assuming you use 4 jbod volumes, not RAID).
Note I don't work for Netgear, so I really don't care if you buy ReadyNAS or another brand (or nothing at all). I've had multiple ReadyNAS running for some years, and I've never seen two fail at the same time. I think the main failure scenarios for multiple-NAS are power-induced failures like a nearby lightning strike, and disaster like fire/flood/theft. Another scenario is when the backup NAS failure either isn't noticed or warnings are ignored. All of those will take out equipment from any vendor.
I do recommend staggering the application of firmware updates (especially if you have two devices that use the same platform - like two OS 6 ReadyNAS).
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!