tips
15 tips Cache and Mover
One command, setting or habit at a time about Cache and Mover: what it does, the line to copy and a caveat or two.
Cache and Mover 15
-
Switches a BTRFS pool between Single, RAID 1 and other profiles from the Main tab while the array runs.
-
Swaps a failing or small drive in a mirrored cache pool and lets Unraid rebuild onto the new one.
-
Unraid 7.4 can show Mover progress, a setting that is off until you turn it on.
-
Where Unraid schedules TRIM for pool SSDs, and how to run it once by hand.
fstrim -v /mnt/cache -
Takes a drive out of a mirrored btrfs cache pool, from the GUI or the command line.
btrfs device remove /dev/sdX1 /mnt/cache -
Put SSDs in a pool where TRIM works instead of the parity array.
Array Devices: HDDs (parity + data) -
Choose a cache file system that lets you add a mirror drive later without reformatting.
Main > click the pool > File system type: btrfs or zfs -
Clear phantom out-of-space errors on an Unraid btrfs cache pool.
Main > click the pool > Balance > Start -
Stop the Mover from moving your VM disks to the slow array.
Use cache: Prefer -
See exactly which files the Unraid Mover moved, and spot the ones it left behind.
Settings > Scheduler > Mover Settings > Mover logging -
Starts the mover now, so cache files move to the array without waiting for the schedule.
mover start -
Explains why files moved between user shares stay on the cache and how to move them properly.
mv /mnt/user/downloads/file.mkv /mnt/user/media/ -
Makes Unraid send new files to the array instead of filling a cache pool to the brim.
Main > (pool name) > Individual Pool Settings > Minimum free space -
Prints how often PHP reuses compiled scripts and how full the opcode cache memory is.
print_r( opcache_get_status( false )['opcache_statistics'] ); -
Reads the hit and miss counters of a Redis server to calculate how well its cache works.
redis-cli info stats | grep -E 'keyspace_(hits|misses)|evicted_keys|expired_keys'
Nothing in this filter yet.