Jump to content

[SOLVED] Almost all data on cache array “unallocated”


Smith8154

Recommended Posts

I have a brand new unRAID array and have been battling issues with the cache drive. I was trying to transfer a 60gb file to the array today and notice that the transfer speeds weren’t what they should be. I discovered that nothing was being transferred to the cache drive, almost all data was being written to the array. I changed the cache drive settings for the share to “prefer” and files were still going to the array. I change the cache settings to “only” and got an error that the cache drive was full, despite there being 5 240gb SSD’s in RAID 5 and this is literally the first time any data has been transferred to it. When I run 

btrfs fi usage /mnt/cache

This is the output I see:

WARNING: RAID56 detected, not implemented
Overall:
    Device size:                   1.09TiB
    Device allocated:              2.06GiB
    Device unallocated:            1.09TiB
    Device missing:                  0.00B
    Used:                        384.00KiB
    Free (estimated):                0.00B      (min: 8.00EiB)
    Data ratio:                       0.00
    Metadata ratio:                   2.00
    Global reserve:               16.00MiB      (used: 0.00B)

Data,RAID5: Size:24.00GiB, Used:21.51GiB (89.61%)
   /dev/sdb1       6.00GiB
   /dev/sdc1       6.00GiB
   /dev/sdd1       6.00GiB
   /dev/sde1       6.00GiB
   /dev/sdf1       6.00GiB

Metadata,RAID1: Size:1.00GiB, Used:176.00KiB (0.02%)
   /dev/sdd1       1.00GiB
   /dev/sdf1       1.00GiB

System,RAID1: Size:32.00MiB, Used:16.00KiB (0.05%)
   /dev/sdc1      32.00MiB
   /dev/sde1      32.00MiB

Unallocated:
   /dev/sdb1     217.57GiB
   /dev/sdc1     217.54GiB
   /dev/sdd1     216.57GiB
   /dev/sde1     217.54GiB

As you can see, basically all of the data is “unallocated”. What can I do to resolve this?

 

Edit to add diagnostic file.

avenue-stor-01-diagnostics-20200913-1434.zip

Edited by Smith8154
Link to comment

I am no expert on cache pools, particularly for the RAID aspect, but I a sure that JorgeB will come around to help on that.

It would probably help if you can provide your diagnostics (Tools / Diagnostics) in your next post.

 

 

However, I think your share setup for cache use is incorrect.

If you want the files to go on the cache then on the Array, you need to set the cache to Yes. In a nut shell :

Yes = cache, then array at night

No = direct to the array

Prefer = stay on cache as long as there is enough space

Only = Only stays on cache, never go to the array.

 

For more details, use the help within the unraid interface or ask for details.

Link to comment

I have edited the OP to include the diagnostic file.

 

While this is a new instance of unRAID, I have been using unRAID myself for almost 5 years. I only set the cache settings for the share to “only” to make sure that data written to the share is first sent to the cache as a test. After I get this resolved, I will set the setting back to “yes” so the mover will move the data to the array at night. The “unallocated” part may not even be the issue, that was just my guess.

Link to comment
28 minutes ago, JorgeB said:

This is normal with btrfs, it allocates 1GB chunks as need, both for data and metadata, this is not a problem, in fact the opposite can be, if the filesystem is fully allocated when it shouldn't be.

I figured something like that might be the case. But why am I not able to transfer a 60gb file to the array? I should have 960gb of cache space after taking into account the RAID.

 

Edit to add, I can’t even create a folder without getting an error that there is no space available.

Edited by Smith8154
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...