Jump to content

Cache Pool full after adding another drive


Recommended Posts

Hey Guys,

 

Yesterday I added a second SSD to my cache pool. It used to be only my Samsung_SSD_850_PRO_512GB, but now I added my old Samsung_SSD_840_EVO_120GB. My Pool is brtfs (encrypted), I got a warning, that if I add the 120GB SSD to the pool I will loose all the data on it (which is expected and perfectly fine).

After bringing the Array back online I expected it to format the data etc. unfortunately it seems like something else happened.

 

Do you guys have any ideas how to resolve this, right now all my self hosted services are unusable because they are running from cache.

 

Information (might be growing as I try to recover the whole situation).

 

After bringing up the Array I got the following warning (at 17:56):

Event: Unraid Cache disk message
Subject: Warning [SERVERNAME] -  pool BTRFS too many profiles (You can ignore this warning when a pool balance operation is in progress)
Description: Samsung_SSD_850_PRO_512GB_S250xxxxxxxxx (sdg)
Importance: warning

 

I assume this is because I added the new drive, but at 18:11 I got the warning:

Event: Unraid Cache disk disk utilization
Subject: Alert [SERVERNAME] - Cache disk is low on space (92%)
Description: Samsung_SSD_850_PRO_512GB_S250xxxxx (sdg)
Importance: alert

followed by more warnings (95% until 100%)

 

First thing I'm seeing is, that the Size is 632GB, used is 255GB and free is 131KB, so something went wrong here.

image.thumb.png.25c84550216f75cbabeb9b39c4667a11.png

 

Balance Status (after running Perform full balance):

image.thumb.png.b823c8313fec208d1d36fb48d3450b23.png

 

output of "btrfs fi df /mnt/cache" after running "Perform full balance" on the cache 

Data, RAID1: total=110.74GiB, used=110.74GiB
Data, single: total=18.00GiB, used=15.96GiB
System, RAID1: total=32.00MiB, used=48.00KiB
Metadata, RAID1: total=1.00GiB, used=142.50MiB
GlobalReserve, single: total=30.86MiB, used=0.00B
WARNING: Multiple block group profiles detected, see 'man btrfs(5)'.
WARNING:   Data: single, raid1

 

Link to comment
1 minute ago, Autchirion said:

And I can only use 2x smalles drive size, so this absolutely doesn't make sense to add my second drive because it will actually decrease the size.

The default of RAID1 gives redundancy which is why you are limited to the smallest drive for available space.  If you do not care about redundancy then you can use all the space as described in the link given above.

Link to comment

I just tried to set it to single mode, however I immediately got an error:

Unable to write to cache	Drive mounted read-only or completely full. Begin Investigation Here:

 

Now, I understand my cache drive is now completely full, how can I recover from this, can I just copy data via command line (using mv) from cache to a different drive?

 

Or can I just remove my small drive and everything will be fine, of course this step scares the hell out of me, because I don't to fall back to an old backup. Unfortunately I can't stop my array at the moment because it says mover is running, but it doesn't do anything (at least that what it looks like).

Edited by Autchirion
Link to comment

I was just about to edit my earlier comment, to report, that I fixed it.

So, I backed up the data to an external drive and then I just removed the small cache drive, that way I was able to remove the small cache drive and then bring the array back online.

 

Now I'm back at how it used to be before all that messing around, my Idea for the next try is to just make sure all my VMs aren't on the Cache and then restart the process, this way I assume I'll be able to switch from raid1 to raid0.

  • Like 1
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...