× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Lost Volumes following stuck Reboot

pgovil
Aspirant

Lost Volumes following stuck Reboot

My NAS was gracefully rebooted but it was stuck at 97% for a long time so I forced reboot it. Unfortunately my volume is now missing. I can SSH to the NAS and also from GUI I can get to it but I get an error message no volumes are configured.

Searching shows me a few others have faced similar issue but that followed an action like a HDD replacement. In my case however I don't recall any hardware failure and the only known issue was inability to update AV software. My ReadyNAS OS is 6.9.3. SSH'ing into the NAS only shows /, /dev, /dev/shm, /run/ /run/lock, /sys/fs/cgroup filesystem's mounted.

Where can I go about troubleshooting what happened and get the volume back as all the data is in there. I have another NetGear NAS where I sync data weekly which has all my data intact but there is an encrypted volume on the failed NAS that has lots of critical data that isn't the latest. I am probably giving very little information for anyone to be able to assist but if you could guide me I'd be more than happy to furnish the details.

 

Thank you for your time in reading my post and assisting.

Model: RN524X|ReadyNAS 524X Premium performance Business Data Storage
Message 1 of 46
mdgm-ntgr
NETGEAR Employee Retired

Re: Lost Volumes following stuck Reboot

You could send your logs in (see the Sending Logs link in my sig).

Message 2 of 46
Retired_Member
Not applicable

Re: Lost Volumes following stuck Reboot

Sorry to hear, that you experienced these problems.

Could you please translate that "...for a long time..." into standard units  e.g. hours or days.

Just being curious. Thanks a lot and good luck with the repair.

Message 3 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Thank you for your time RolandWause. Long as in well over a day. Usually the NAS boots up in just under 5 mins but this was extremely long and repeat attempts to reboot did not help.

Message 4 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

GM mdgm, thanks for your response. Is there a way I can tar/gzip or just extract the logs from shell and send you. My NetGear NAS web page is again stuck. I went to look at the front of the NAS and I see it's stuck again and in the process of rebooting again. I can SSH fine though and see the following mounted FS

root@ReadyNAS64:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 4.0K 10M 1% /dev
/dev/md0 4.0G 2.7G 4.0K 100% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.7M 1.9G 1% /run
tmpfs 961M 1.4M 960M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup

 

 

Message 5 of 46
StephenB
Guru

Re: Lost Volumes following stuck Reboot

 

/dev/md0 4.0G 2.7G 4.0K 100% is a bit unusual, saying that you are using 2.7GB out of 4.0GB, but the volume is 100% full.  You could balancing the OS partition (using the btrfs command from ssh).

 

Though 2.7G used is also quite full - you must have installed some packages or apps that use OS partition space.  You should probably shift some of those folders to the data volume (symlinks are one way to accomplish this).  Of course that will need to wait until the data volume is mounted.

Message 6 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Thank you StephenB for your time. Yes, I agree a FS at 100% is just not right. I am trying to think if I did any package update before that may have taken effect following the reboot but can't recall (likely I am forgetting, after all something changed). Since I have another NAS on network and have connectivity I can temporarily scp files over if that might help and then attempt to do a reboot again to see if NAS can be brought up online

Message 7 of 46
StephenB
Guru

Re: Lost Volumes following stuck Reboot

It's not really 100% full; there appear to be unused blocks that can be reclaimed to the free space pool.  That is why I suggested the balance. Something like btrfs balance start / should work, though you can get it to run faster if you set some filters.  https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-balance

Message 8 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

My previous response to this message did not get sent. I am sending the message again. please change the extension of the attached file to zip as the same is not permitted for uploading.

I guess I still can't upload getting an error 

 

Correct the highlighted errors and try again.

  • The attachment's system_log-readynas64-20180720-114325.pdf content type (application/pdf) does not match its file extension and has been removed.
Message 9 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

I attempted to send two messages but they failed. Essentially the command failed because there was no space on / file system. It did prompt me in the right direction and I started to look at the files updated recently using find -atime and I noticed this 

 

root@ReadyNAS64:/data/AmazonCloudDrive# pwd

/data/AmazonCloudDrive

 

This is the app's backup from Cloud down to NAS. I manually deleted all files under the directory but files start copying from cloud down to NAS again. I need to stop the source. Could it be this?

 

root@ReadyNAS64:/data/AmazonCloudDrive# ps -aux | grep -i ama

root      5326  0.6  0.7 278296 30192 ?        Ssl  11:47   0:12 /frontview/bin/fvamazon -v 1

root     13589  5.4 13.8 790520 544016 ?       SNsl 12:05   0:50 /usr/sbin/clamd --foreground=true --config-file=/etc/clamav/clamd.conf

root     14894  0.0  0.0  17844   988 pts/0    S+   12:20   0:00 grep -i ama

 

 

Message 10 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

I was able to stop the download by turning off the APP from Netgear Ready GUI. So at this time the data is not getting written to root FS. I want to confirm if I can start with btrfs repair flag. Pl. advise and thanks for your time

Message 11 of 46
StephenB
Guru

Re: Lost Volumes following stuck Reboot

Did you try rebalancing the OS partition, and then rebooting?  I wouldn't try a btrfs repair unless I knew the file system was corrupted.

Message 12 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Somehow I must be techically challenged to be unable to post replies. I have posted my replies that "appear" to have been posted but aren't when page is refreshed. Happened more than 4 times Anyways StephenB I could not balance and continue to get the error no space available on root FS even though there is. I also rebooted the NAS

Message 13 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Maybe there is something in the log that's considered suspicious and deleted from teh post. Tried to attach it as an attachment that failed as well with the error as under:

 

Correct the highlighted errors and try again.

  • The file nas2.rtf does not have a valid extension for an attachment and has been removed. jpg,gif,png,pdf are the valid extensions.
Message 14 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

LOG saved as PDF

Message 15 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

mdgm, since the web portal is not accepting the log downloaded from NAS admin page and its getting truncated when I post the log for your review online, do you have a suggestion to send you the logs any other way? I have it; just can't upload to community page thread. Thanks for your time.

Message 16 of 46
bedlam1
Prodigy

Re: Lost Volumes following stuck Reboot

The procedure for sending logs to moderators is shown HERE

Message 17 of 46
Retired_Member
Not applicable

Re: Lost Volumes following stuck Reboot

I would love to kudo your feedback, dear Bedlam, but the system does not let me. Will put this in the community feedback, though.

Message 18 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Thank you Bedlam1 very much for the guidance. I have sent the logs along with the link to the post

Message 19 of 46
StephenB
Guru

Re: Lost Volumes following stuck Reboot


@pgovil wrote:

Anyways StephenB I could not balance


You can't balance the OS partition using SSH?  What error are you getting?

Message 20 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Yes Stephen I am unable to balance. The error message when pasted in the post deletes the entire post. I tried many times. Ultimately I saved it as a PDF file and attached. It can be seen at: https://community.netgear.com/ejquo23388/attachments/ejquo23388/readynas-use/147644/1/NAS2.pdf

 

Essentially despite the free space I get an error no space on device. Thanks for your note.

Message 21 of 46
StephenB
Guru

Re: Lost Volumes following stuck Reboot


@pgovil wrote:

Yes Stephen I am unable to balance.


Try btrfs balance start -dusage=0 /

 

That will free up any completely empty (but allocated) blocks. 

 

If that passes (and frees up space) then you can run it again with higher values of -dusage (which is a percentage that runs from 0 to 100).

 

 

 

Message 22 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

That was almost instantaneous

btrfs balance start -dusage=0 /
Done, had to relocate 0 out of 9 chunks

 

Next tried to mount the FS but I guess I was too enthusiastic

 

mount -a
mount: /dev/md127: can't read superblock

Message 23 of 46
StephenB
Guru

Re: Lost Volumes following stuck Reboot


@pgovil wrote:

 

Next tried to mount the FS but I guess I was too enthusiastic

 


Yeah.  I think the next step is to gradually increase the -dusage parameter until you reach 100.  Doing this gradually keeps the number of blocks that are processed on each pass small.

 

You should have some free space now (9 blocks worth), but you still have ~460 blocks that could be processed, and that should create more free space.

 

You can see the free space using btrfs fi df, the usual df command won't show it.

Message 24 of 46
pgovil
Aspirant

Re: Lost Volumes following stuck Reboot

Thank you getting there slowly

 

root@ReadyNAS64:~# btrfs balance start -dusage=10 /
Done, had to relocate 0 out of 9 chunks
root@ReadyNAS64:~# btrfs balance start -dusage=20 /
Done, had to relocate 0 out of 9 chunks
root@ReadyNAS64:~# btrfs balance start -dusage=50 /
Done, had to relocate 1 out of 9 chunks
root@ReadyNAS64:~# btrfs balance start -dusage=70 /
Done, had to relocate 1 out of 9 chunks
root@ReadyNAS64:~# btrfs balance start -dusage=100 /
ERROR: error during balancing '/': No space left on device
There may be more info in syslog - try dmesg | tail
root@ReadyNAS64:~# btrfs balance start -dusage=80 /
Done, had to relocate 1 out of 9 chunks
root@ReadyNAS64:~# btrfs balance start -dusage=90 /
Done, had to relocate 1 out of 9 chunks
root@ReadyNAS64:~# btrfs balance start -dusage=100 /
ERROR: error during balancing '/': No space left on device
There may be more info in syslog - try dmesg | tail
root@ReadyNAS64:~# btrfs balance start -dusage=95 /
ERROR: error during balancing '/': No space left on device
There may be more info in syslog - try dmesg | tail
root@ReadyNAS64:~# btrfs balance start -dusage=90 /
Done, had to relocate 1 out of 9 chunks

Message 25 of 46
Top Contributors
Discussion stats
  • 45 replies
  • 5131 views
  • 2 kudos
  • 5 in conversation
Announcements