NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Confuciusofesse
Jul 23, 2021Aspirant
Test posting
I've posted twice in the last few days but none have shown up in the list of topic etc. So trying with a new login.
ipb_uk
Jul 23, 2021Aspirant
Hi,
I've PM you the link.
Thank Very Much
Ian
I've PM you the link.
Thank Very Much
Ian
ipb_uk
Jul 23, 2021Aspirant
Hello, If you want a newer set of logs, let me know and I will boot the box up and get them. Would it be a good idea to change the tile of the post to something more sensible? And what to do with the two posts gobbled up by the spam filter. Thanks Ian
- ipb_ukJul 23, 2021AspirantIf you and rn_enthusiast think this thread is best then the others can die a peaceful death. If on the other hand one of the others makes better sense for historic purposes, then release one of them and we can continue on that thread. I'll let you guys make the judgement call. Thanks very much. Ian
- rn_enthusiastJul 24, 2021Virtuoso
Hi ipb_uk
Your data raid and disks are OK, so that is good. I was a little worried about this, as you mentioned the NAS had some unexpected shutdowns due to a thunderstorm. But the hardware looks OK at least.
I can also see that the reason for the cryptic message of: "Remove inactive volumes" happens because the NAS cannot mount the data volume, despite the raid running fine. This would indicate filesystem issues and indeed, the kernel log confirms that the BTRFS (filesystem) log tree is damaged. As BTRFS is a journaled filesystem, the NAS would have tried to do a journal check post the unexpected shutdown, but it seems the filesystem journal got corrupted or damaged during those shutdowns.
Jul 20 20:37:43 Pro kernel: BTRFS info (device md125): has skinny extents Jul 20 20:38:42 Pro kernel: BTRFS info (device md125): start tree-log replay Jul 20 20:38:42 Pro kernel: BTRFS error (device md125): parent transid verify failed on 25029252612096 wanted 8127492 found 8126807 Jul 20 20:38:42 Pro kernel: BTRFS error (device md125): parent transid verify failed on 25029252612096 wanted 8127492 found 8126807 Jul 20 20:38:42 Pro kernel: BTRFS warning (device md125): failed to read log tree Jul 20 20:38:42 Pro kernel: BTRFS error (device md125): open_ctree failed
This should be easy enough to fix as you can simply reset the filesystem journal. You will need to log into the NAS over SSH (via the root user). Not sure if you have used SSH before?
The command to reset the log tree/journal is:
btrfs rescue zero-log /dev/md125
Afterwards, reboot the NAS gracefully from the Web Interface.
If you need help accessing the NAS over SSH, let us know.
Cheers - ipb_ukJul 24, 2021AspirantHi rn_enthusiast
Got this....
root@Pro:~# btrfs rescue zero-log /dev/md125
parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
Rebooted and things haven't improved.
Cheers, Ian. - rn_enthusiastJul 24, 2021Virtuoso
Hi ipb_uk
Then there are more issues than just log tree problems.
In this case, you likely need to mount with auto recovery mode from a different tree root.
Attempting to mount like this, should be safe as it is read-only:
btrfs device scan
mount -o ro,usebackuproot /dev/md125 /Dual
ReadyNAS uses a pretty old version of BTRFS so "usebackuproot" might not work or even be an option on your NAS. If it spews "unrecognised command" errrors (or similar), you can instead try the original mount recovery method:
mount -o ro,recovery /dev/md125 /Dual
If that doesn't work, then you likely need to recover the data using BTRFS restore, but you are entering serious data recovery territory at that point, which Netgear can't help with given you are running OS6 on an OS4 box :)
Anyway, try and mount like the above first and see if that works. It will be a read-only mount but at least it will show you if the volume can be mounted at all.
- ipb_ukJul 24, 2021AspirantHi rn_enthusiast
I got the below.....
root@Pro:~# btrfs device scan
Scanning for Btrfs filesystems
root@Pro:~# mount -o ro,usebackuproot /dev/md125 /Dual
mount: wrong fs type, bad option, bad superblock on /dev/md125,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
root@Pro:~# mount -o ro,recovery /dev/md125 /Dual
mount: /dev/md125: can't read superblock
This last one took about 40 seconds to come back. - rn_enthusiastJul 24, 2021Virtuoso
Issue with the superblocks it seems.
Just for the sake it of, try to do a dry-run of BTRFS restore, to see if files can be recovered. This is a non-destructive method for attempting to recover data from an unmountable filesystem. It will not attempt to repair the filesystem, which means that you don't cause further damage by running it. First, do a dry run to see if it is even possible to restore anything using this method (you can stop the dry run at any time with CTRL+C).
btrfs restore -DviF /dev/md125 /dev/null
What do you see when running this command? Does it start to spew-out files names in the terminal? Or what happens? It is just a dry-run so leave it run just to get a feel for whether it is actually recovers anything you recognise. And then just stop it with CTRL+C
Thanks
- StephenBJul 24, 2021Guru - Experienced User
This is XRAID, correct?
If so, then you'd normally be mounting /dev/md127. md125 (and md126) would be added on raid layers due to vertical expansion.
- rn_enthusiastJul 24, 2021Virtuoso
BTRFS sticks together all 3 raids, into a BTRFS volume.
Label: '33eb0773: Dual' uuid: 29bccc98-ff07-426d-a82d-1a79b34131a3 Total devices 3 FS bytes used 21.57TiB devid 1 size 7.26TiB used 6.49TiB path /dev/md127 devid 2 size 14.55TiB used 12.34TiB path /dev/md126 devid 3 size 10.91TiB used 2.80TiB path /dev/md125
You can use any of the 3 devices to mount. As you can see by his Kernel logs that I posted earlier, the NAS itself tries to mount md125 as well, but it doesn't matter which device of the 3 that you use for the mount. Running btrfs device scan first allows BTRFS to scan for volumes and it will then know by FS superblocks/metadata information which devices belong together.
BTRFS will see md125, md126 and md127 as regular individual devices (like disks essentially). It is not aware of any underlying raids as that is all MDADM.
- ipb_ukJul 24, 2021AspirantLooking good maybe........
root@Pro:~# btrfs restore -DviF /dev/md125 /dev/null
parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
This is a dry-run, no files are going to be restored
Restoring /dev/null/.purge
Reached the end of the tree searching the directory
Restoring /dev/null/._share
Restoring /dev/null/._share/.snapshot_prune
Restoring /dev/null/._share/Media
Restoring /dev/null/._share/Media/recycle.conf
Restoring /dev/null/._share/Media/datasettype.conf
Restoring /dev/null/._share/Media/snapdir.conf
Restoring /dev/null/._share/Media/snapshot.conf
Restoring /dev/null/._share/Media/.snapshot
Done searching /._share/Media/.snapshot
Restoring /dev/null/._share/Media/.pvcache
Restoring /dev/null/._share/Media/.pvcache/2
Restoring /dev/null/._share/Media/.pvcache/2/e
Restoring /dev/null/._share/Media/.pvcache/2/e/a
Restoring /dev/null/._share/Media/.pvcache/2/e/a/2ea45f4c2d6a5f2623ff73ef92c49dd7
Restoring /dev/null/._share/Media/.pvcache/2/e/a/2ea45f4c2d6a5f2623ff73ef92c49dd7/.info
Restoring /dev/null/._share/Media/.pvcache/2/e/a/2ea45f4c2d6a5f2623ff73ef92c49dd7/108x81-40.jpg
Done searching /._share/Media/.pvcache/2/e/a/2ea45f4c2d6a5f2623ff73ef92c49dd7
Done searching /._share/Media/.pvcache/2/e/a
Done searching /._share/Media/.pvcache/2/e
Done searching /._share/Media/.pvcache/2
Done searching /._share/Media/.pvcache
Restoring /dev/null/._share/Media/ftp.conf
Restoring /dev/null/._share/Media/custom_snapshot_management.conf
Restoring /dev/null/._share/Media/custom_snapshot_schedule.conf
Restoring /dev/null/._share/Media/fs.conf
Restoring /dev/null/._share/Media/samba.conf
Restoring /dev/null/._share/Media/afp.conf
Restoring /dev/null/._share/Media/nfs.conf
Done searching /._share/Media
Restoring /dev/null/._share/istat
Restoring /dev/null/._share/istat/recycle.conf
Restoring /dev/null/._share/istat/datasettype.conf
Restoring /dev/null/._share/istat/snapdir.conf
Restoring /dev/null/._share/istat/snapshot.conf
Restoring /dev/null/._share/istat/fs.conf
Restoring /dev/null/._share/istat/ftp.conf
Restoring /dev/null/._share/istat/custom_snapshot_management.conf
Restoring /dev/null/._share/istat/custom_snapshot_schedule.conf
Restoring /dev/null/._share/istat/samba.conf
Restoring /dev/null/._share/istat/afp.conf
Restoring /dev/null/._share/istat/nfs.conf
Done searching /._share/istat
Restoring /dev/null/._share/SyncBackPro
Restoring /dev/null/._share/SyncBackPro/recycle.conf
Restoring /dev/null/._share/SyncBackPro/datasettype.conf
Restoring /dev/null/._share/SyncBackPro/snapdir.conf
Restoring /dev/null/._share/SyncBackPro/snapshot.conf
Restoring /dev/null/._share/SyncBackPro/fs.conf
Restoring /dev/null/._share/SyncBackPro/ftp.conf
Restoring /dev/null/._share/SyncBackPro/custom_snapshot_management.conf
Restoring /dev/null/._share/SyncBackPro/custom_snapshot_schedule.conf
Restoring /dev/null/._share/SyncBackPro/samba.conf
Restoring /dev/null/._share/SyncBackPro/afp.conf
Restoring /dev/null/._share/SyncBackPro/nfs.conf
Done searching /._share/SyncBackPro
Restoring /dev/null/._share/Back-up
Restoring /dev/null/._share/Back-up/recycle.conf
Restoring /dev/null/._share/Back-up/datasettype.conf
Restoring /dev/null/._share/Back-up/snapdir.conf
Restoring /dev/null/._share/Back-up/snapshot.conf
Restoring /dev/null/._share/Back-up/fs.conf
Restoring /dev/null/._share/Back-up/ftp.conf
Restoring /dev/null/._share/Back-up/custom_snapshot_management.conf
Restoring /dev/null/._share/Back-up/custom_snapshot_schedule.conf
Restoring /dev/null/._share/Back-up/samba.conf
Restoring /dev/null/._share/Back-up/afp.conf
Restoring /dev/null/._share/Back-up/nfs.conf
Done searching /._share/Back-up
Restoring /dev/null/._share/NZBGet
Restoring /dev/null/._share/NZBGet/recycle.conf
Restoring /dev/null/._share/NZBGet/datasettype.conf
Restoring /dev/null/._share/NZBGet/snapdir.conf
Restoring /dev/null/._share/NZBGet/snapshot.conf
Restoring /dev/null/._share/NZBGet/fs.conf
Restoring /dev/null/._share/NZBGet/ftp.conf
Restoring /dev/null/._share/NZBGet/custom_snapshot_management.conf
Restoring /dev/null/._share/NZBGet/custom_snapshot_schedule.conf
Restoring /dev/null/._share/NZBGet/samba.conf
Restoring /dev/null/._share/NZBGet/afp.conf
Restoring /dev/null/._share/NZBGet/nfs.conf
Done searching /._share/NZBGet
Done searching /._share
Restoring /dev/null/.apps
Restoring /dev/null/.apps/DO_NOT_DELETE
Done searching /.apps/DO_NOT_DELETE
Restoring /dev/null/.apps/.freeapps
Restoring /dev/null/.apps/.freeapps/ajaxplorer
Restoring /dev/null/.apps/.freeapps/ajaxplorer/config.xml
Restoring /dev/null/.apps/.freeapps/ajaxplorer/logo.png
Done searching /.apps/.freeapps/ajaxplorer
Restoring /dev/null/.apps/.freeapps/archiware-pure
Restoring /dev/null/.apps/.freeapps/archiware-pure/config.xml
Restoring /dev/null/.apps/.freeapps/archiware-pure/logo.png
Done searching /.apps/.freeapps/archiware-pure
Restoring /dev/null/.apps/.freeapps/asterisk-app
Restoring /dev/null/.apps/.freeapps/asterisk-app/config.xml
Restoring /dev/null/.apps/.freeapps/asterisk-app/logo.png
Done searching /.apps/.freeapps/asterisk-app
Restoring /dev/null/.apps/.freeapps/automatic
Restoring /dev/null/.apps/.freeapps/automatic/config.xml
Restoring /dev/null/.apps/.freeapps/automatic/logo.png
Done searching /.apps/.freeapps/automatic
Restoring /dev/null/.apps/.freeapps/awpst-ngr
Restoring /dev/null/.apps/.freeapps/awpst-ngr/config.xml
Restoring /dev/null/.apps/.freeapps/awpst-ngr/logo.png
Done searching /.apps/.freeapps/awpst-ngr
Restoring /dev/null/.apps/.freeapps/baikal
Restoring /dev/null/.apps/.freeapps/baikal/config.xml
Restoring /dev/null/.apps/.freeapps/baikal/logo.png
Done searching /.apps/.freeapps/baikal
Restoring /dev/null/.apps/.freeapps/bindr6
Restoring /dev/null/.apps/.freeapps/bindr6/config.xml
Restoring /dev/null/.apps/.freeapps/bindr6/logo.png
Done searching /.apps/.freeapps/bindr6
Restoring /dev/null/.apps/.freeapps/bzeeetr6
Restoring /dev/null/.apps/.freeapps/bzeeetr6/config.xml
Restoring /dev/null/.apps/.freeapps/bzeeetr6/logo.png
Done searching /.apps/.freeapps/bzeeetr6
Restoring /dev/null/.apps/.freeapps/couchpotato
Restoring /dev/null/.apps/.freeapps/couchpotato/config.xml
Restoring /dev/null/.apps/.freeapps/couchpotato/logo.png
Done searching /.apps/.freeapps/couchpotato
Restoring /dev/null/.apps/.freeapps/ddclientr6
Restoring /dev/null/.apps/.freeapps/ddclientr6/config.xml
Restoring /dev/null/.apps/.freeapps/ddclientr6/logo.png
Done searching /.apps/.freeapps/ddclientr6
Restoring /dev/null/.apps/.freeapps/dnsserver
Restoring /dev/null/.apps/.freeapps/dnsserver/config.xml
Restoring /dev/null/.apps/.freeapps/dnsserver/logo.png
Done searching /.apps/.freeapps/dnsserver
Restoring /dev/null/.apps/.freeapps/docker-cli-rnapp
Restoring /dev/null/.apps/.freeapps/docker-cli-rnapp/config.xml
Restoring /dev/null/.apps/.freeapps/docker-cli-rnapp/logo.png
Done searching /.apps/.freeapps/docker-cli-rnapp
Restoring /dev/null/.apps/.freeapps/domotz
Restoring /dev/null/.apps/.freeapps/domotz/config.xml
Restoring /dev/null/.apps/.freeapps/domotz/logo.png
Done searching /.apps/.freeapps/domotz
Restoring /dev/null/.apps/.freeapps/drupal
Restoring /dev/null/.apps/.freeapps/drupal/config.xml
Restoring /dev/null/.apps/.freeapps/drupal/logo.png
Done searching /.apps/.freeapps/drupal
Restoring /dev/null/.apps/.freeapps/emby-server
Restoring /dev/null/.apps/.freeapps/emby-server/config.xml
Restoring /dev/null/.apps/.freeapps/emby-server/logo.png
Done searching /.apps/.freeapps/emby-server
Restoring /dev/null/.apps/.freeapps/glpi
Restoring /dev/null/.apps/.freeapps/glpi/config.xml
Restoring /dev/null/.apps/.freeapps/glpi/logo.png
Done searching /.apps/.freeapps/glpi
Restoring /dev/null/.apps/.freeapps/htop
Restoring /dev/null/.apps/.freeapps/htop/config.xml
Restoring /dev/null/.apps/.freeapps/htop/logo.png
Done searching /.apps/.freeapps/htop
Restoring /dev/null/.apps/.freeapps/idrive
Restoring /dev/null/.apps/.freeapps/idrive/config.xml
Restoring /dev/null/.apps/.freeapps/idrive/logo.png
Done searching /.apps/.freeapps/idrive
Restoring /dev/null/.apps/.freeapps/istat
Restoring /dev/null/.apps/.freeapps/istat/config.xml
Restoring /dev/null/.apps/.freeapps/istat/logo.png
Done searching /.apps/.freeapps/istat
Restoring /dev/null/.apps/.freeapps/joomla
Restoring /dev/null/.apps/.freeapps/joomla/config.xml
Restoring /dev/null/.apps/.freeapps/joomla/logo.png
Done searching /.apps/.freeapps/joomla
Restoring /dev/null/.apps/.freeapps/kernelplus
Restoring /dev/null/.apps/.freeapps/kernelplus/config.xml
Restoring /dev/null/.apps/.freeapps/kernelplus/logo.png
Done searching /.apps/.freeapps/kernelplus
Restoring /dev/null/.apps/.freeapps/koken
Restoring /dev/null/.apps/.freeapps/koken/config.xml
Restoring /dev/null/.apps/.freeapps/koken/logo.png
Done searching /.apps/.freeapps/koken
Restoring /dev/null/.apps/.freeapps/limesurvey
Restoring /dev/null/.apps/.freeapps/limesurvey/config.xml
Restoring /dev/null/.apps/.freeapps/limesurvey/logo.png
Done searching /.apps/.freeapps/limesurvey
Restoring /dev/null/.apps/.freeapps/linux-dash
Restoring /dev/null/.apps/.freeapps/linux-dash/config.xml
Restoring /dev/null/.apps/.freeapps/linux-dash/logo.png
Done searching /.apps/.freeapps/linux-dash
Restoring /dev/null/.apps/.freeapps/milestone-arcus
Restoring /dev/null/.apps/.freeapps/milestone-arcus/config.xml
Restoring /dev/null/.apps/.freeapps/milestone-arcus/logo.png
Done searching /.apps/.freeapps/milestone-arcus
Restoring /dev/null/.apps/.freeapps/monsta
Restoring /dev/null/.apps/.freeapps/monsta/config.xml
Restoring /dev/null/.apps/.freeapps/monsta/logo.png
Done searching /.apps/.freeapps/monsta
Restoring /dev/null/.apps/.freeapps/mysqlr6
Restoring /dev/null/.apps/.freeapps/mysqlr6/config.xml
Restoring /dev/null/.apps/.freeapps/mysqlr6/logo.png
Done searching /.apps/.freeapps/mysqlr6
Restoring /dev/null/.apps/.freeapps/nastools-istatserver
Restoring /dev/null/.apps/.freeapps/nastools-istatserver/config.xml
Restoring /dev/null/.apps/.freeapps/nastools-istatserver/logo.png
Done searching /.apps/.freeapps/nastools-istatserver
Restoring /dev/null/.apps/.freeapps/nastools-logitechmediaserver
Restoring /dev/null/.apps/.freeapps/nastools-logitechmediaserver/config.xml
Restoring /dev/null/.apps/.freeapps/nastools-logitechmediaserver/logo.png
Done searching /.apps/.freeapps/nastools-logitechmediaserver
Restoring /dev/null/.apps/.freeapps/nastools-netdata
Restoring /dev/null/.apps/.freeapps/nastools-netdata/config.xml
Restoring /dev/null/.apps/.freeapps/nastools-netdata/logo.png
Done searching /.apps/.freeapps/nastools-netdata
Restoring /dev/null/.apps/.freeapps/nastools-transmission
Restoring /dev/null/.apps/.freeapps/nastools-transmission/config.xml
Restoring /dev/null/.apps/.freeapps/nastools-transmission/logo.png
Done searching /.apps/.freeapps/nastools-transmission
Restoring /dev/null/.apps/.freeapps/nbr
Restoring /dev/null/.apps/.freeapps/nbr/config.xml
Restoring /dev/null/.apps/.freeapps/nbr/logo.png
Done searching /.apps/.freeapps/nbr
Restoring /dev/null/.apps/.freeapps/nbr-transporter
Restoring /dev/null/.apps/.freeapps/nbr-transporter/config.xml
Restoring /dev/null/.apps/.freeapps/nbr-transporter/logo.png
Done searching /.apps/.freeapps/nbr-transporter
Restoring /dev/null/.apps/.freeapps/nzbget-rn
Restoring /dev/null/.apps/.freeapps/nzbget-rn/config.xml
Restoring /dev/null/.apps/.freeapps/nzbget-rn/logo.png
Done searching /.apps/.freeapps/nzbget-rn
Restoring /dev/null/.apps/.freeapps/oraynewph
Restoring /dev/null/.apps/.freeapps/oraynewph/config.xml
Restoring /dev/null/.apps/.freeapps/oraynewph/logo.png
Done searching /.apps/.freeapps/oraynewph
Restoring /dev/null/.apps/.freeapps/oscommerce
Restoring /dev/null/.apps/.freeapps/oscommerce/config.xml
Restoring /dev/null/.apps/.freeapps/oscommerce/logo.png
Done searching /.apps/.freeapps/oscommerce
Restoring /dev/null/.apps/.freeapps/osticket
Restoring /dev/null/.apps/.freeapps/osticket/config.xml
Restoring /dev/null/.apps/.freeapps/osticket/logo.png
Done searching /.apps/.freeapps/osticket
Restoring /dev/null/.apps/.freeapps/phpmyadminr6
Restoring /dev/null/.apps/.freeapps/phpmyadminr6/config.xml
Restoring /dev/null/.apps/.freeapps/phpmyadminr6/logo.png
Done searching /.apps/.freeapps/phpmyadminr6
Restoring /dev/null/.apps/.freeapps/phpr6
Restoring /dev/null/.apps/.freeapps/phpr6/config.xml
Restoring /dev/null/.apps/.freeapps/phpr6/logo.png
Done searching /.apps/.freeapps/phpr6
Restoring /dev/null/.apps/.freeapps/phpsysinfo
Restoring /dev/null/.apps/.freeapps/phpsysinfo/config.xml
Restoring /dev/null/.apps/.freeapps/phpsysinfo/logo.png
Done searching /.apps/.freeapps/phpsysinfo
Restoring /dev/null/.apps/.freeapps/piwigo
Restoring /dev/null/.apps/.freeapps/piwigo/config.xml
Restoring /dev/null/.apps/.freeapps/piwigo/logo.png
Done searching /.apps/.freeapps/piwigo
Restoring /dev/null/.apps/.freeapps/plexmediaserver
Restoring /dev/null/.apps/.freeapps/plexmediaserver/config.xml
Restoring /dev/null/.apps/.freeapps/plexmediaserver/logo.png
Done searching /.apps/.freeapps/plexmediaserver
Restoring /dev/null/.apps/.freeapps/portainer
Restoring /dev/null/.apps/.freeapps/portainer/config.xml
Restoring /dev/null/.apps/.freeapps/portainer/logo.png
Done searching /.apps/.freeapps/portainer
Restoring /dev/null/.apps/.freeapps/prestashop
Restoring /dev/null/.apps/.freeapps/prestashop/config.xml
Restoring /dev/null/.apps/.freeapps/prestashop/logo.png
Done searching /.apps/.freeapps/prestashop
Restoring /dev/null/.apps/.freeapps/pydio
Restoring /dev/null/.apps/.freeapps/pydio/config.xml
Restoring /dev/null/.apps/.freeapps/pydio/logo.png
Done searching /.apps/.freeapps/pydio
Restoring /dev/null/.apps/.freeapps/pythonr6
Restoring /dev/null/.apps/.freeapps/pythonr6/config.xml
Restoring /dev/null/.apps/.freeapps/pythonr6/logo.png
Done searching /.apps/.freeapps/pythonr6
Restoring /dev/null/.apps/.freeapps/qbittorrentr6
Restoring /dev/null/.apps/.freeapps/qbittorrentr6/config.xml
Restoring /dev/null/.apps/.freeapps/qbittorrentr6/logo.png
Done searching /.apps/.freeapps/qbittorrentr6
Restoring /dev/null/.apps/.freeapps/quikfynd
Restoring /dev/null/.apps/.freeapps/quikfynd/config.xml
Restoring /dev/null/.apps/.freeapps/quikfynd/logo.png
Done searching /.apps/.freeapps/quikfynd
Restoring /dev/null/.apps/.freeapps/recollweb
Restoring /dev/null/.apps/.freeapps/recollweb/config.xml
Restoring /dev/null/.apps/.freeapps/recollweb/logo.png
Done searching /.apps/.freeapps/recollweb
Restoring /dev/null/.apps/.freeapps/resilio-sync
Restoring /dev/null/.apps/.freeapps/resilio-sync/config.xml
Restoring /dev/null/.apps/.freeapps/resilio-sync/logo.png
Done searching /.apps/.freeapps/resilio-sync
Restoring /dev/null/.apps/.freeapps/selfoss
Restoring /dev/null/.apps/.freeapps/selfoss/config.xml
Restoring /dev/null/.apps/.freeapps/selfoss/logo.png
Done searching /.apps/.freeapps/selfoss
Restoring /dev/null/.apps/.freeapps/shellinabox
Restoring /dev/null/.apps/.freeapps/shellinabox/config.xml
Restoring /dev/null/.apps/.freeapps/shellinabox/logo.png
Done searching /.apps/.freeapps/shellinabox
Restoring /dev/null/.apps/.freeapps/sickbeardr6
Restoring /dev/null/.apps/.freeapps/sickbeardr6/config.xml
Restoring /dev/null/.apps/.freeapps/sickbeardr6/logo.png
Done searching /.apps/.freeapps/sickbeardr6
Restoring /dev/null/.apps/.freeapps/sickchill
Restoring /dev/null/.apps/.freeapps/sickchill/config.xml
Restoring /dev/null/.apps/.freeapps/sickchill/logo.png
Done searching /.apps/.freeapps/sickchill
Restoring /dev/null/.apps/.freeapps/sickrage
Restoring /dev/null/.apps/.freeapps/sickrage/config.xml
Restoring /dev/null/.apps/.freeapps/sickrage/logo.png
Done searching /.apps/.freeapps/sickrage
Restoring /dev/null/.apps/.freeapps/smbplus
Restoring /dev/null/.apps/.freeapps/smbplus/config.xml
Restoring /dev/null/.apps/.freeapps/smbplus/logo.png
Done searching /.apps/.freeapps/smbplus
Restoring /dev/null/.apps/.freeapps/subversion-ntgr
Restoring /dev/null/.apps/.freeapps/subversion-ntgr/config.xml
Restoring /dev/null/.apps/.freeapps/subversion-ntgr/logo.png
Done searching /.apps/.freeapps/subversion-ntgr
Restoring /dev/null/.apps/.freeapps/sugarcrm
Restoring /dev/null/.apps/.freeapps/sugarcrm/config.xml
Restoring /dev/null/.apps/.freeapps/sugarcrm/logo.png
Done searching /.apps/.freeapps/sugarcrm
Restoring /dev/null/.apps/.freeapps/tautulli
Restoring /dev/null/.apps/.freeapps/tautulli/config.xml
Restoring /dev/null/.apps/.freeapps/tautulli/logo.png
Done searching /.apps/.freeapps/tautulli
Restoring /dev/null/.apps/.freeapps/tftpr6
Restoring /dev/null/.apps/.freeapps/tftpr6/config.xml
Restoring /dev/null/.apps/.freeapps/tftpr6/logo.png
Done searching /.apps/.freeapps/tftpr6
Restoring /dev/null/.apps/.freeapps/transmissionr6
Restoring /dev/null/.apps/.freeapps/transmissionr6/config.xml
Restoring /dev/null/.apps/.freeapps/transmissionr6/logo.png
Done searching /.apps/.freeapps/transmissionr6
Restoring /dev/null/.apps/.freeapps/tvmosaic
Restoring /dev/null/.apps/.freeapps/tvmosaic/config.xml
Restoring /dev/null/.apps/.freeapps/tvmosaic/logo.png
Done searching /.apps/.freeapps/tvmosaic
Restoring /dev/null/.apps/.freeapps/twonky
Restoring /dev/null/.apps/.freeapps/twonky/config.xml
Restoring /dev/null/.apps/.freeapps/twonky/logo.png
Done searching /.apps/.freeapps/twonky
Restoring /dev/null/.apps/.freeapps/utserver
Restoring /dev/null/.apps/.freeapps/utserver/config.xml
Restoring /dev/null/.apps/.freeapps/utserver/logo.png
Done searching /.apps/.freeapps/utserver
Restoring /dev/null/.apps/.freeapps/virtualhere
Restoring /dev/null/.apps/.freeapps/virtualhere/config.xml
Restoring /dev/null/.apps/.freeapps/virtualhere/logo.png
Done searching /.apps/.freeapps/virtualhere
Restoring /dev/null/.apps/.freeapps/vpn2gw
Restoring /dev/null/.apps/.freeapps/vpn2gw/config.xml
Restoring /dev/null/.apps/.freeapps/vpn2gw/logo.png
Done searching /.apps/.freeapps/vpn2gw
Restoring /dev/null/.apps/.freeapps/vpnserver
Restoring /dev/null/.apps/.freeapps/vpnserver/config.xml
Restoring /dev/null/.apps/.freeapps/vpnserver/logo.png
Done searching /.apps/.freeapps/vpnserver
Done searching /.apps/.freeapps
Restoring /dev/null/.apps/.forked-daapd
Restoring /dev/null/.apps/.forked-daapd/songs3.db
Restoring /dev/null/.apps/.forked-daapd/songs3.db-journal
Done searching /.apps/.forked-daapd
Restoring /dev/null/.apps/.readydlna
Restoring /dev/null/.apps/.readydlna/files.db
Restoring /dev/null/.apps/.readydlna/art_cache - ipb_ukJul 24, 2021AspirantHi,
This is followed by lots of my file names.
Cheers, Ian. - rn_enthusiastJul 24, 2021Virtuoso
That is good news!
It can fetch files :) Now, these first files you saw are all config and internal ReadyNAS files but if you left if run long enough, you would see files from your shares start to show (as you noticed).
BTRFS restore is method for taking a non-mountable volume and dumping the data somewhere else (USB, network share, etc.). I guess you are left with 2 options:
1. Try to repair the filesystem (BTRFSCK) which might not work either and can cause more damage than good.
2. Dump the data somewhere else via BTRFS restore (giving you a backup essentially). Then verify all is good with the backup and then factory reset the NAS and thereafter you can restore form the backup.
The problem is that you need at least 21.63 TiB (23.8 TB) of storage somewhere else, where you can dump the data.
devid 1 size 7.26TiB used 6.49TiB path /dev/md127 devid 2 size 14.55TiB used 12.34TiB path /dev/md126 devid 3 size 10.91TiB used 2.80TiB path /dev/md125
If you don't care about all of it, you can select which data to restore though the BTRFS restore tool. This will reduce the amount of data you need to dump.
Lastly, there are people who know much more about BTRFS than I do, so you could also use the mailing list to see if those guys have any ideas on how to get the volume repaired/mountable so that you don't have to use BTRFS restore to dump the data somewhere else. Actually, you probably should ask the guys in the mailing list as well :)
https://btrfs.wiki.kernel.org/index.php/Btrfs_mailing_list
But at least BTRFS restore is an option... and that is good.
Cheers
- ipb_ukJul 24, 2021AspirantHi, There is a longer log at the net address I PM'd you. I have 4 x 6TB, 3 x 2TB, 3 x 1.5TB and 1 x 500GB to play with. I can but one at a time into a usb cradle, or do I need to it differently? I have some Bits & Bobs in one folder (and it's subfolders) I would like to save as this is the only one not totally backed-up. Should I point them (btrfs mailing list) to this thread? They ask for five commands to be done. The fourth one " btrfs fi df /home # Replace /home with the mount point of your btrfs-filesystem", What is my mount point? If it's /dev/md125, then I get "ERROR: not a btrfs filesystem: /dev/md125" The fifth one ask for dmesg can I use the one from the nas's logs? root@Pro:~# uname -a Linux Pro 4.4.218.x86_64.1 #1 SMP Mon Jan 11 06:25:23 UTC 2021 x86_64 GNU/Linux root@Pro:~# btrfs --version btrfs-progs v4.16 root@Pro:~# btrfs fi show Label: '33eb0773:root' uuid: 13624a2a-e24e-48ae-ad2b-f786913ec748 Total devices 1 FS bytes used 1.03GiB devid 1 size 4.00GiB used 4.00GiB path /dev/md0 Label: '33eb0773:Dual' uuid: 29bccc98-ff07-426d-a82d-1a79b34131a3 Total devices 3 FS bytes used 21.57TiB devid 1 size 7.26TiB used 6.49TiB path /dev/md127 devid 2 size 14.55TiB used 12.34TiB path /dev/md126 devid 3 size 10.91TiB used 2.80TiB path /dev/md125 root@Pro:~# btrfs fi df /dev/md125 ERROR: not a btrfs filesystem: /dev/md125 Which I guess is the problem! Cheers, Ian
- ipb_ukJul 24, 2021AspirantForgot to add this....
root@Pro:~# dmesg | tail
[ 235.447123] nr_pdflush_threads exported in /proc is scheduled for removal
[ 3622.532329] BTRFS info (device md125): unrecognized mount option 'usebackuproot'
[ 3622.536050] BTRFS error (device md125): open_ctree failed
[ 3696.939674] BTRFS info (device md125): enabling auto recovery
[ 3696.939679] BTRFS info (device md125): has skinny extents
[ 3764.470376] BTRFS info (device md125): start tree-log replay
[ 3764.475305] BTRFS error (device md125): parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
[ 3764.486455] BTRFS error (device md125): parent transid verify failed on 25029252612096 wanted 8127492 found 8126807
[ 3764.486458] BTRFS warning (device md125): failed to read log tree
[ 3764.565029] BTRFS error (device md125): open_ctree failed - rn_enthusiastJul 25, 2021Virtuoso
Hi Ian
Here is a little information on the underlying mechanics of the ReadyNAS, which will be useful for your future endeavours. The RAIDs are done by a program called MDADM (Multi Disk Administration). It is able to take disks and make then into a software raid. I can also take disk partitions and make those into a raid and that is what the ReadyNAS does. It partitions the disks and make raids of these partitions. Since you are using different sized disks, the ReadyNAS partitions those disks and makes several raids and hereafter the BTRFS filesystem stick those together into a one volume filesystem. It is a smart way to allow you to use all your space regardless of disks being different sizes or if you expand the NAS capacity by adding larger disks, over time.
In your case, you have 6 disks. The NAS has made several same sized partitions on each disk and then made individual raids out of those partitions, so you are actually running 3 data raids: md125, md126 and md127.
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] md125 : active raid6 sdb5[0] sdf5[3] sde5[2] sdc5[1] 11716461312 blocks super 1.2 level 6, 64k chunk, algorithm 2 [4/4] [UUUU] md126 : active raid6 sdc4[9] sdb4[6] sda4[4] sdf4[8] sde4[7] sdd4[1] 15627507712 blocks super 1.2 level 6, 64k chunk, algorithm 2 [6/6] [UUUUUU] md127 : active raid6 sda3[9] sdf3[11] sde3[7] sdd3[8] sdc3[6] sdb3[10] 7794659328 blocks super 1.2 level 6, 64k chunk, algorithm 2 [6/6] [UUUUUU]The BTRFS filesystem then take these 3 raids and makes them into a single volume. BTRFS is not aware of the underlying raids as that is entirely controlled by MDADM. This means that for the purpose of this discussion, BTRFS is making a volume out of 3 devices: md125, md126 and md127 as seen below.
Label: '33eb0773:Dual' uuid: 29bccc98-ff07-426d-a82d-1a79b34131a3 Total devices 3 FS bytes used 21.57TiB devid 1 size 7.26TiB used 6.49TiB path /dev/md127 devid 2 size 14.55TiB used 12.34TiB path /dev/md126 devid 3 size 10.91TiB used 2.80TiB path /dev/md125
You cannot give them BTRFS info about the mountpoint because well, the whole issue is that you can't mount the filesystem - so you have no mountpoint :). Your volume is called "Dual" and thus your NAS will normally mount it to the location: /Dual
But, this command is not possible for you to do, right now:
btrfs fi df /Dual
By the way - the command:
dmesg > dmesg.log
It takes the dmesg output and writes it into a file called "dmesg.log". However, what they really care about is the BTRFS part of dmesg - the part where the filesystem fails to mount. Looking at your dmesg log, we can see that "usebackuproot" was not a recognized mount option on the NAS it seems (likely due to the aging version of BTRFS that ReadyNAS uses). We also see your attempt to mount with recovery option, but it failed as well. But the below is what they are looking for, from the dmesg log.
[ 3622.532329] BTRFS info (device md125): unrecognized mount option 'usebackuproot' [ 3622.536050] BTRFS error (device md125): open_ctree failed [ 3696.939674] BTRFS info (device md125): enabling auto recovery [ 3696.939679] BTRFS info (device md125): has skinny extents [ 3764.470376] BTRFS info (device md125): start tree-log replay [ 3764.475305] BTRFS error (device md125): parent transid verify failed on 25029252612096 wanted 8127492 found 8126807 [ 3764.486455] BTRFS error (device md125): parent transid verify failed on 25029252612096 wanted 8127492 found 8126807 [ 3764.486458] BTRFS warning (device md125): failed to read log tree [ 3764.565029] BTRFS error (device md125): open_ctree failed
You can BTRFS restore part of your volume. If you want to restore specific shares from the data volume, you need to use somewhat complex regex. I added the -c flag for this purpose as it makes the regex not case sensitive. It means that you don't need to worry about the case sensitivity when declaring the share name. For example if I wanted to restore my share called: "Media":
btrfs restore -viFc --path-regex '^/(|Media)$' /dev/md125 /mnt
You can even restore just a specific sub-folder within a share. You need to know the name of the sub-folder of course, but you might remember the names or you can see the names of shares and subfolders during your previous dry-run.
btrfs restore -viFc --path-regex '^/(|Media(/subfolder))$' /dev/md125 /mnt
---> Note: I dump the data to the /mnt mountpoint. I would of course need to have something mounted here, like a USB or a network share. So, don't just run these commands! They are for demonstration.
This is probably as far as I can take you, bar doing the actual recovery, which really isn't something to do over a forum like this. But at least you have seen that data CAN be restored. The question is just whether you can repair the volume without the need to dump the data off the NAS or if you do need to dump it, then at least it is just logistics of what to dump and where (since BTRFS restore seems that it will indeed work).
I think we can "close" the thread now. Just PM me if you need anything else but I won't be able to do the recovery for you and if things get too complicated you might need so seek 3rd party paid services... but the fact that you have established that BTRFS restore can do it in the end of the day, it gives you good ground to pursue this, if the data matters.
Cheers - StephenBJul 25, 2021Guru - Experienced User
rn_enthusiast wrote:
Your volume is called "Dual" and thus your NAS will normally mount it to the location: /Dual
But, this command is not possible for you to do, right now:
btrfs fi df /Dual
Interesting, since ipb_uk said he was running XRAID. Normally the volume would be data.
- rn_enthusiastJul 25, 2021Virtuoso
It is not X-RAID since he is running a RAID6 on 6 disks. XRAID will default to RAID5 with that amount of disks. See the mdstat output from my previous post.
- StephenBJul 25, 2021Guru - Experienced User
rn_enthusiast wrote:
It is not X-RAID since he is running a RAID6 on 6 disks.
FWIW, ipb_uk said it was. And it still could be X-RAID, as there is a path to get X-RAID with RAID6. He could have renamed the volume while taking that path.
I don't think it changes anything though.
- ipb_ukJul 25, 2021AspirantStephenB I took the X-RAID from the volume page.
rn_enthusiast I love a write-up I can absorb this all day long. I had already started to look into what MDADM meant, before going to bed last night (actually early this morning!).
Very much appreciated .
I was thinking if I take the disks & DVD out of my PC and put in six of my spare disk. I could restore to these disks over the network, as that was mentioned earlier. Windows 10 run on a SSD. - StephenBJul 25, 2021Guru - Experienced User
ipb_uk wrote:
I was thinking if I take the disks & DVD out of my PC and put in six of my spare disk. I could restore to these disks over the networkDo you mean put in six spare disks into the PC?? I think that would require the PC to be running linux (or perhaps the windows beta software for mdadm/btrfs).
- ipb_ukJul 25, 2021AspirantMay be when copied I could boot up with one of the distros . Verify all is good by opening some of the files and if all is good reset the nas and copy back.
- ipb_ukJul 25, 2021AspirantThe output from btrfs fi df /Dual is......
root@Pro:~# btrfs fi df /Dual
Data, single: total=3.58GiB, used=1.03GiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=204.56MiB, used=15.02MiB
GlobalReserve, single: total=16.00MiB, used=0.00B - rn_enthusiastJul 25, 2021Virtuoso
Interesting. I didn't think this was possible without the volume being mounted...
Did it actually mount during your previous mount-recovery attempts, I wonder...
Can you show us output of this command:
mount
- ipb_ukJul 25, 2021AspirantHere you go.......
root@Pro:~# mount
udev on /dev type devtmpfs (rw,noatime,nodiratime,size=10240k,nr_inodes=761519,mode=755)
devpts on /dev/pts type devpts (rw,noatime,nodiratime,mode=600,ptmxmode=000)
/dev/md0 on / type btrfs (rw,noatime,nodiratime,nospace_cache,subvolid=5,subvol=/)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime,nodiratime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime,nodiratime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime,nodiratime,size=1524380k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,blkio)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,devices)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,noatime,nodiratime,cpuset)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,noatime,nodiratime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,noatime,nodiratime)
sunrpc on /proc/fs/nfsd type nfsd (rw,noatime,nodiratime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,noatime,nodiratime)
mqueue on /dev/mqueue type mqueue (rw,noatime,nodiratime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,noatime,nodiratime)
configfs on /sys/kernel/config type configfs (rw,noatime,nodiratime)
/dev/md0 on /run/nfs4/home type btrfs (rw,noatime,nodiratime,nospace_cache,subvolid=5,subvol=/home)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!