NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
as_
Nov 11, 2021Aspirant
The volume data encountered an error and was made read-only. It is recommended to backup your data.
Was copying data onto my NAS from external hard drives for backup purposes (just had an external drive fail.. so.. I'm a bit paranoid on that right now..). All of a sudden, I couldn't transfer files ...
as_
Nov 21, 2021Aspirant
So.. I completed the backup.
Now what?
rn_enthusiast
Nov 22, 2021Virtuoso
Sorry as_
IRL caught up with me, so didn't get a chance to look at this earlier.
The BTRFS filesystem is reporting you being off with just 2 write transactions: 3050091 found 3050089
There is an argument that you could clear the filesystem journal which will likely help the parent transid verify failed errors.
[Thu Nov 11 18:34:14 2021] BTRFS error (device md127): parent transid verify failed on 23363584 wanted 3050091 found 3050089 [Thu Nov 11 18:36:14 2021] BTRFS error (device md127): parent transid verify failed on 23363584 wanted 3050091 found 3050089 [Thu Nov 11 18:36:14 2021] BTRFS error (device md127): parent transid verify failed on 23363584 wanted 3050091 found 3050089
I can 't see in the kernel logs what potentially caused this, because the logs are rolled over with the BTRFS error spam.
I am more concerned about these messages here:
[Thu Nov 11 18:36:34 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:34 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:34 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:34 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:35 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:35 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:35 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:35 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:35 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:36:35 2021] BTRFS error (device md127): bad tree block start 18115770242137751560 23322241466368 [Thu Nov 11 18:37:08 2021] btree_readpage_end_io_hook: 10 callbacks suppressed
From what I can read, most people end up destroying and rebuilding their BTRFS volume from backups. But seen as you have a backup now, it is probably worth try clearing the FS journal log (you would do this over SSH with the root user).
btrfs rescue zero-log /dev/md127
However, the results of this are hard to predict and if it will actually help. One reason for the FS complaining could be that the volume is very full (95%). BTRFS tends to handle low free space, poorly.
Total devices 1 FS bytes used 20.77TiB devid 1 size 21.82TiB used 20.78TiB path /dev/md127
There is of course also the BTRFS mailing list (https://btrfs.wiki.kernel.org/index.php/Btrfs_mailing_list ) which might help you but realistically, you could be on a position where you need to reset the system and start over. If you feel adventurous give zero-log a go (followed by NAS reboot) and you could even do a BTRFS fscheck with repair flag, but this can make things a worse as well. Should be used with caution. I am not even sure if the NAS will mount the volume post boot so it is good that you have backup now.
- as_Nov 22, 2021Aspirant
Fiddled with it a bit, and figured out how to ssh as root. Oof madone, I really need to RTFM (but that's another story..)
I think I know what to do here, but I just want to make sure.. when I run the command:
btrfs rescue zero-log /dev/md127
I get an error:
ERROR: /dev/md127 is currently mounted
I'm thinking I should do:
umount /dev/md127
but, I'm worried about doing something irreversably bad.
- StephenBNov 23, 2021Guru - Experienced User
umount won't work if the device is busy (has any open files) - so that command might fail. It's worth a try though. Make sure you aren't in a folder of the data volume when you try it - that will definitely fail.
The other option is to boot up the NAS in tech support mode, and access the linux command line with telnet. We can give you instructions on how to do that if you can't get the umount to work.
- as_Nov 23, 2021Aspirant
So.. the umount command seems to complete without error (no output to the terminal at all).. but doesn't appear to actually do anything.. since the btrfs rescue command then fails in the exact same way..
- StephenBNov 23, 2021Guru - Experienced User
as_ wrote:
So.. the umount command seems to complete without error (no output to the terminal at all).. but doesn't appear to actually do anything.. since the btrfs rescue command then fails in the exact same way..
Have you tried looking at the volume with the ls command after you ran umount?
- as_Nov 23, 2021Aspirant
ls -l /dev:
(truncated output)
brw-rw---- 1 root disk 9, 127 Mar 23 2021 md127
(truncated output)cd /dev/md127:
-bash: cd: md127: Not a directory
- StephenBNov 23, 2021Guru - Experienced User
You aren't looking at the data volume, you are looking at the device.
The default data volume name is data. So ls -als /data
- as_Nov 23, 2021Aspirant
Ah. That's one of those things I don't really understand about *nix systems in general..
So /data cursory glance looks like my files are still accessible by that path.
But now.. and I don't know whether this was because of something I did or not..
:~#umount /dev/md127 umount: /apps: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).)
- StephenBNov 24, 2021Guru - Experienced User
as_ wrote:
Ah. That's one of those things I don't really understand about *nix systems in general..
sda, sdb, ... (/dev/sda, ...) are the physical disks
md127 is the RAID array (which is a virtual disk)
data is the file system that is on the virtual disk.
umount will accept either the device (/dev/md127) or the file system - it's a bit unusual in that regard.
as_ wrote:So /data cursory glance looks like my files are still accessible by that path.
But now.. and I don't know whether this was because of something I did or not..
:~#umount /dev/md127 umount: /apps: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).)
/apps is actually a linux mount point - the folder on the data volume (/data/.apps).
Try umount /data Then check if you can see folders in /data and /apps.
If that doesn't work you'll need to reboot in tech support mode.
- as_Nov 25, 2021Aspirant
:~# umount /data umount: /data target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) :~# fuser -u /data /data 21509c(root) 21520c(root) :~# ps -ef | grep 215 root 21509 2009 0 Nov23 ? 00:00:01 /usr/sbin/smbd --foreground --no-process-group root 21520 2009 0 Nov23 ? 00:00:00 /usr/sbin/smbd --foreground --no-process-groupWould shutting off the SMB service help here? Or is that a bad idea?
- StephenBNov 25, 2021Guru - Experienced User
as_ wrote:
Would shutting off the SMB service help here? Or is that a bad idea?It might, but likely there are other processes running that will also get in the way. I think it's best to use tech support mode.
You do that using the instructions on page 28 here: https://www.downloads.netgear.com/files/GDC/RNDU2000/ReadyNAS_Ultra_UltraPlus_NVX_Pro_HW_en_8July11.pdf
You'll need to access the linux CLI using telnet instead of ssh. If you use Windows, then one useful tool for that is putty (which can be downloaded from here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html )
The login for tech support mode is root, the password is infr8ntdebug
Once in, enter this:
# rnutil chroot
# btrfs device scanAt this point the data volume is unmounted, so you can try your btrfs commands.
If you want to try mount the volume in tech support mode later on, then enter this:
# mount /dev/md127 /data
This is read/write. If it fails, you could confirm that you can still boot up read-only with
# mount -o ro /dev/md127 /data
When done you can enter
# sync
to make sure everything is written to the disks and then reboot.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!