Reply

Re: space is full even though i deleted a complete share

tcbrssa
Aspirant

space is full even though i deleted a complete share

hi i have rn422 nas for 20 users data with 2 3TB hdd in raid 1 mode. i had a problem that 1 of my shares occupied a lot of space (1.8 TB) even though the files in it take just 300 GB (without snapshots enabled). so i deleted the share and did defragments, scrub and balance but the space is still occupied as seen in the image.

Thanks!

space error.png

 

Model: RN424|ReadyNAS 424 – High-performance Business Data Storage - 4-Bay
Message 1 of 11
StephenB
Guru

Re: space is full even though i deleted a complete share

Sometimes it can take a little while for the free space to show up, but I'd think that it should have appeared by the time the scrub had finished.

 

If you don't have an up-to-date backup of the NAS, I would start by making one.

 

You might also consider using paid netgear support, as you really need more free space than you have right now, and that would give you a quicker resolution.  A direct (but brute force) option would be to destroy the volume, recreate it, and then restore the data from the backup.

 

Have you downloaded the log zip file, and looked in there for btrfs or disk-related errors?

Message 2 of 11
tcbrssa
Aspirant

Re: space is full even though i deleted a complete share

Thanks for the answer!

it's a week from the end of the scrubbing...

i havea backup but i dont want the dates of the files changed so i prefer not destroying the volume...

i look at the logs, there are disk errors but i didnt understand they meanings...

 

 
 
 
Message 3 of 11
StephenB
Guru

Re: space is full even though i deleted a complete share


@tcbrssa wrote:

 

i look at the logs, there are disk errors but i didnt understand they meanings...

 

Can you post a couple of them?

Message 4 of 11
tcbrssa
Aspirant

Re: space is full even though i deleted a complete share

of course, thanks!

https://pastebin.com/hW7s4J6A 

 
 
 
Message 5 of 11
StephenB
Guru

Re: space is full even though i deleted a complete share

This is information about the file system, but not errors (which would be in system.log, kernel.log, and dmesg.log).

 

That said, I am seeing something I don't understand in the qgroup section

=== qgroup /data ===
qgroupid         rfer         excl     max_rfer 
--------         ----         ----     -------- 
0/274           0.00B    955.76GiB         none 
0/7483      862.76GiB    803.88GiB         none 

I'd expect to see these two IDs in the subvolume list, but I am not seeing them there. 

 

Perhaps someone else ( maybe @rn_enthusiast ) can also take a look?

 

 

Message 6 of 11
rn_enthusiast
Virtuoso

Re: space is full even though i deleted a complete share

BTRFS is reporting the used space as almost at total capacity.

Label: '0a43aafa:data' uuid: 67872479-fb0e-493c-b57a-5e0b27beba2f
Total devices 1 FS bytes used 2.53TiB
devid 1 size 2.72TiB used 2.54TiB path /dev/md127

 


Some peculiar things here...

What are these shares here? Do you recognize these? Some of them take significant space according to the quota reports.

- ID 880 gen 426199 top level 5 path שיעורים
- ID 2334 gen 425322 top level 5 path קטלוג-ראשוני
- ID 4989 gen 425296 top level 5 path קטלוג_ספרן

What is the share name that you are having particular issues with?

 

It also looks like quotas are wack here. Referencing many subvolume IDs that don't exist. And other places it is reporting fictitious subvolumes as max BRTFS theoretical capacity 🙂 Like this:

=== qgroup /data ===
qgroupid rfer excl max_rfer
-------- ---- ---- --------
0/1922 16.00EiB 16.00EiB none
0/2332 16.00EiB 16.00EiB none
0/3998 16.00EiB 16.00EiB none
0/7321 16.00EiB 16.00EiB none


Can you please start by disabling quotas?
Go to admin web page and navigate to: "System" > "Volumes" > Click the cog-wheel next to your raid Volume > select "Settings".
Once in Setting, select "Summary" on the left hand side. Here you Un-tick the box that says: "Quota" > Click "Apply" at the bottom.

 

Afterwards, give the NAS a reboot and see what happens to the capacity problem.

After reboot, please post output of these commands:

btrfs fi sh /data
btrfs fi df /data
btrfs subv list /data du -hd1 /data
btrfs qgroup show /data (this command should fail, it is just to check quotas are disabled).

Thanks

Former Netgear employee. Views and opinions are my own.
Message 7 of 11
StephenB
Guru

Re: space is full even though i deleted a complete share


@rn_enthusiast wrote:

 

After reboot, please post output of these commands:

btrfs fi sh /data
btrfs fi df /data
btrfs subv list /data du -hd1 /data
btrfs qgroup show /data (this command should fail, it is just to check quotas are disabled).

This requires you to enable ssh on system->settings.  From there you can log in from Windows 10 by entering "ssh root@nas-ip-address" in the windows search box (using the real NAS IP address of course).  Enter the NAS admin password when prompted.

 

If you are a Mac owner you can also enter that command from terminal.

Message 8 of 11
tcbrssa
Aspirant

Re: space is full even though i deleted a complete share

@StephenB @rn_enthusiast 

thanks for the help!

i did the last update (6.10.4) and magically the capacity got normal! very thanks!

do you think still do delete the qouta or this isn't needed now?

https://postimg.cc/0KypjmwG 

https://postimg.cc/8jF6YTBC 

Message 9 of 11
rn_enthusiast
Virtuoso

Re: space is full even though i deleted a complete share

Good to hear. It was definitely an issue with quotas going wack for whatever reason.

Quotas are handy but they can be problematic at times, such as in your case.

 

You can keep them enabled if you so wish. I have them disabled on my system as I know they can be messy at times. The ReadyNAS uses BTRFS version 4.16 which is from 2 years ago (https://btrfs.wiki.kernel.org/index.php/Changelog). At least 10 BTRFS versions has come out since then but even in newer versions many admins would recommend not using them. They are just problematic in general and they have a tendency to spike CPU very high at times when handling snapshots creation/deletion and stuff.

 

Given that the NAS uses an older version of BTRFS (hopefully will be updated soon!) I don't go near them, but it is your own choice.

https://btrfs.wiki.kernel.org/index.php/Quota_support  (Look at the "Known Issues" section). You VERY likely ran into

  • "Bugs in accounting code might cause false out of space situations"

 

Cheers

Former Netgear employee. Views and opinions are my own.
Message 10 of 11
tcbrssa
Aspirant

Re: space is full even though i deleted a complete share

i will disable them, it's dont a 'must' for me. thanks! 

Message 11 of 11
Top Contributors
Discussion stats
  • 10 replies
  • 1139 views
  • 2 kudos
  • 3 in conversation
Announcements