Jump to content
LAST CALL on the Unraid Summer Sale! 😎 ⌛ ×

User shares disappeared after changing cache settings on system share to "no"


tvu
Go to solution Solved by JorgeB,

Recommended Posts

Hi support,

 

I was trying to change cache settings for various folders because mover kept stalling so I was trying to reduce the amount of folders using the cache option.

 

Unfortunately, my array now says "There are no exportable user shares". Perhaps my cache and/or system folder was corrupted as a result? Please help. Thanks in advance!

 

Edited by tvu
Link to comment

Hi trurl,

 

My apologies. Updated diagnostics after reboot attached.

 

I currently have 4x 4TB HDDs, 1x 1.5TB HDD, and a 240GB SSD as cache. 

 

But I've noticed the cache fills up quite fast, so I was thinking of expanding it to a larger pool of SSDs - maybe 2 or 3 that I can take from other unused systems to combine for around 1TB

 

I was thinking I would try to get all new uploads onto cache and just run mover 1x per day or less. And over time, I'd like to separate the HDD pools have some as cold storage and another pool as always-on for more frequent access. That way, I can try to reduce some power usage, but not sure if it makes a big difference tbh

 

Edited by tvu
Link to comment

Your appdata share has files on the array and is set to not use cache. Your system share has files on the array and is set to prefer cache. You want appdata, domains, system shares all on fast storage (cache) and set to stay there so docker/VM performance isn't impacted by slower array, and so array disks can spin down since these files are always open. domains share is all on cache and set to prefer so that one is OK.

 

Nothing can move open files so even if a share is set to prefer cache its files can't be moved to cache if they are open. You have to disable Docker and VM Manager in settings before they can be moved.

 

Also, mover won't replace files so if a file exists in both places they won't be moved and you will have to decide which to keep and clean that up manually.

 

Your share anonymized as 'm---a' (probably media) has files on cache but is set cache:no. Mover ignores cache:no and cache:only shares, so those files still on cache won't be moved. You need to set it to cache:yes to get it moved, then you can set it cache:no if you don't want any new files to go to cache.

 

42 minutes ago, tvu said:

expanding it to a larger pool of SSDs - maybe 2 or 3 that I can take from other unused systems to combine for around 1TB

42 minutes ago, tvu said:

run mover 1x per day or less

 

Best approach is one pool for caching files that will be moved to the array, large enough to hold all you need to cache between mover runs. Running mover more often typically won't help with filling cache. It is impossible to move from fast cache to slow array as fast as you can write to fast cache. Mover is intended for idle time, once per day in the middle of the night is default for a reason.

 

And a smaller separate pool for appdata, domains, system and maybe for anything else you want to have quick and frequent access to.

 

SSDs for pools and HDDs for array. Note that you will need to backup anything staying on pools. There are plugins, for appdata backup, for example.

 

 

  • Like 1
Link to comment

Ok, sure. Please see attached.

 

I swapped the cache drive for a larger SSD that I had. I may add another and do raid 0 to increase the total cache size. 

 

But after I changed the cache settings on the various share folders, I ran the mover and now things seem to be running smoothly. Happy to take any additional advice on how to make the system more performant though. 

 

Thanks for your help!

unraid-diagnostics-20221202-0535.zip

Link to comment

Your system share still has files on the array.

23 hours ago, trurl said:

Nothing can move open files so even if a share is set to prefer cache its files can't be moved to cache if they are open. You have to disable Docker and VM Manager in settings before they can be moved.

 

Also, mover won't replace files so if a file exists in both places they won't be moved and you will have to decide which to keep and clean that up manually.

 

You can see how much each share is using on each disk by clicking Compute.. for the share on the User Shares page. 

 

1 hour ago, tvu said:

raid 0 to increase the total cache size. 

Unless the drives are the same size you want to use Single mode 

 

https://wiki.unraid.net/Manual/Storage_Management#Change_Pool_RAID_Levels

Link to comment

It's the libvirt.img file that's sitting on disk and can't move to cache.

 

But I don't currently run any VMs and I tried to disable it in settings and then delete the libvirt file, but it says the file is in use. Rebooted and tried again, but still can't seem to delete it. 

 

Any ideas? I'm fine to leave it on disk since I'm not using VMs. Ideally, I could just delete it entirely. Definitely want to avoid 1GB of disk space wasted on the cache though

 

Link to comment

Yeah, after you pointed out that the system shares is still split between cache and disk1, I turned off VM Manager and rebooted. It's off now and I try to delete libvirt.img but the system says it's in use and can't be deleted

 

Doesn't seem like a huge deal though. Not urgent to solve it since the libvirt is just sitting on disk and I'm not using VMs right now

 

Thanks again for your help! Let me know if you have any other ideas on what it could be

 

Separately, one of my docker apps - qbittorrent webui stopped being accessible for some reason (it's on port 8080). Is it something to do with port forwarding settings on my local router? I can start a new thread on this if this isn't a common issue with an easy answer

Link to comment

Just re-checked and all the system folder is on cache now, including the libvirt.img file that doesn't seem necessary

 

Tried deleting again but get this error - The operation can’t be completed because the item “libvirt.img” is in use.

 

New diagnostics attached, if helpful

 

Edited by tvu
Link to comment

VM Manager should be the only thing accessing that file.

14 hours ago, tvu said:
root@unraid:~# ls -lah /mnt/user0/system
/bin/ls: cannot access '/mnt/user0/system': No such file or directory

 

That just shows it doesn't exist on the array.

 

What do you get from this?

ls -lah /mnt/cache/system

 

Link to comment
8 hours ago, trurl said:

Are you using the command line to delete the file?

 

This was the ticket. I was trying to use delete from the network drive. 

 

rm libvirt.img

worked without issue from the console

 

Thanks again for all your help! New to unraid, so still figuring things out 🙏

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