Jails :: Deleting or Reconstructing .warden-files-cache

Status
Not open for further replies.

Marcet

Contributor
Joined
May 31, 2013
Messages
193
Hi all,

After some mistakes I've ended up with bad ownership and possibly bad permissions on .warden-files-cache directory.
Can I just stop the jails, delete it and then restart the jails ?
Would it reconstruct or is there another way ?

I'm running only two plugins at the moment : Emby and Transmission.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
If you've broken ownership and permissions, probably a good idea to create a new jail root and migrate the data in the jails.
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
Thanks to @m0nkey_'s help. I finally succeed to repair my Jail environment.

Here is what I've done :
  1. Stop the plugins (Plugins->Installed->Service Status->OFF)
  2. Stop the jails (Jails->View Jails->Stop)
  3. Create a dataset for each Jail on <new-location>
  4. rsync -av /mnt/tank/jails/<jailname>/ /mnt/<new-location>/<jailname>/
  5. rsync -av /mnt/tank/jails/.<jailname>.meta /mnt/<new-location>
  6. rsync -av /mnt/tank/jails/.plugins /mnt/<new-location>
  7. Change the JailRoot (Jails->Configuration>Jail Root)
  8. Reboot (I think it's optional)
  9. Start the Jails if not autostarting (Jails->View Jails->Start)
  10. Start the plugins (Plugins->Installed->Service Status->ON)
  11. Install whatever plugin to recreate .warden-files-cache and .warden-template-pluginjail
  12. Delete step 10 installed plugin
  13. Test everything is OK
  14. Delete old Jails dataset
  15. Enjoy
 
Last edited:
Status
Not open for further replies.
Top