A quick tip that tripped me up that might help someone else: I run this script on my media share that goes cache->array. Well while I was moving all my files off my cache drive to reformat it, I forgot to disable the script cronjob or unlock everything first, and somehow ended up with some immutable folders/files for my 'media' share on my cache drive(after I was putting everything back to normal after formatting). It was alarming at first because running the unlocking version of the script wasn't reaching the cache drive, and it seemed like I was totally locked out of making any changes. I mistakingly tried to perform a reboot, and ended up with a unclean shutdown(unmounting was failing during shutdown). The server booted up fine but I have to run a new parity check now. I'm still not exactly sure how I managed to get immutable folders/files onto my cache drive, as I thought they couldn't be moved? I did so many things for the first time today(added second drive, used unbalancing tool to move files off array drives to switch to encrypted, reformatted my single cache drive from xfs to zfs.) I finally was able to correct it by running the chattr -i command(obfuscated name version) by itself specifically on the share in the cache drive. I'm not very proficient with linux commands yet so this is all probably very obvious to a more seasoned linux user, and is also obviously not in any way a problem with the script. I actually love the script and the peace of mind it gives me.