Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I messed up the cache pool. It now has multiple profiles, it's full, and probably read-only.

Featured Replies

Help!
I have a btrfs cache pool with 3 SSDs.

I noticed it's in Raid1 mode, so I thought it would be an amazing idea to change it to Raid0, so I can reap all the speed that I deserve.

I used the balance thingy, but nothing happened. (or so I thought).
So my next brilliant idea was to use the balance thingy again to change into single mode. Again, nothing happened.
I thought I saw some errors, so I panicked and tried to switch back to raid1. (Here comes the balance thingy again.)

Now I can't do anything.

Can't create a new pool, can't un-assign a disk, can't change shares to mount it to my PC, can't install appdata backup.

 

I ran btrfs device usage /mnt/cache and it shows 5 data profiles

 

image.png.8da4d5818afa9f73ad501f758436ef06.png


Am I cooked?
Help me Obi-One Kenobi, you're my only hope.

patisonas-diagnostics-20241017-0955.zip

Solved by JorgeB

  • Community Expert

Two of devices are completely full, you can try to cancel the balance, then move/delete some data, then try again.

 

Stop the array and type 

mkdir /x

mount -t btrfs - o skip_balance /dev/sdb1 /x

btrfs balance cancel /x

umount /x

 

Now start the array, if docker and VM services are using the pool disable them so no new writes are made to the pool, then remove some data until both full devices are left with a least a few GBs of free/unallocated space

  • Author

Thank you JorgeB, you're the best.

That allowed me to access appdata and delete some unused leftover folders.
But I still see multiple profiles:

 

image.png.ba97f9b42350789f6baf5ebdcf208dd4.png

 

Isn't this a problem?
I think I want to get rid of 2 SSDs and leave the big 2TB SSD in there as a single cache disk with xfs.
Should I create a new pool? How can I do it without losing data?

  • Community Expert

You should now be able to balance the pool to the desired profile, you can do that in the pool page.

  • Author

It appears stuck on 69% left, and the log keeps repeating:

Oct 17 13:29:01 PatisoNAS kernel: BTRFS info (device sde1): found 1 extents, stage: update data pointers
over and over.

 

It did the same before on my previous attempts to balance.

  • Community Expert

In that case you would recommend backing up the pool, reformatting with the correct profile, and then restore the data.

  • Author

Ok, excuse my noobness, but how do i backup the cache? Do I install an app, or simply copy and paste?
People mention ca backup, but it's not an option anymore. I tried installing appdata backup but it throws an error:

 

plugin: unable to create parent directory for /boot/config/plugins/appdata.backup/appdata.backup-2024.09.25.tgz

 

Also I can't change the SMB setting of the appdata share to export so I can mount it on my PC.

I change export to yes and it turns it back to no.

  • Community Expert

You can use this procedure from the the online documentation accessible via the ‘Manual’ link at the bottom of the GUI or the DOCS link at the top of each forum page. The Unraid OS->Manual section in particular covers most features of the current Unraid release.

  • Author

Unfortunately, I can't disable the docker, nor the VMs, nor change the use cache setting of the shares. Any setting I change is returned to its previous status immediately.

Enable VMs

enable_VMs.gif

 

Enable docker

enable_docker.gif

 

SMB export share

SMB_share_export.gif

Edited by Ilias

  • Community Expert

If changes are not saving this suggests your flash drive might be having problems.

  • Community Expert

Post new diags, pool may be going read-only.

  • Community Expert
  • Solution

It's not the pool, but the flash drive is read-only:


 

Oct 18 14:40:00 PatisoNAS emhttpd: error: put_config, 578: Read-only file system (30): fopen: /boot/config/ident.cfg.new

Try running chkdsk on your desktop

  • Author

The flash drive was FUBAR, you were right.


I think it went belly up and switched to permanent read-only. chdsk couldn't fix it, I changed it with a fresh one, moved the cache to the array, deleted the pool, created a new one with xfs, restored the docker apps from previous installations and now everything seems to be fine.

I only lost the homeassistant VM but it's not a big deal, I'll build it from scratch.

 

Serves me right for using a cheapo giveaway flashdisk from a google seminar.

I wonder if this was the problem all along.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.