2024-06-11, 10:05 PM
(This post was last modified: 2024-06-11, 10:29 PM by lirayah. Edited 2 times in total.)
Great news!
My jellyfin is fully migrated (I had to restart the container a few times for it to fully work but now it's good).
I have access to everything as before.
To summarize for the people that might wanna do the same thing:
- Create datasets for your jellyfin config (config, cache and transcode) and give them the appropriate ACL (RW at least and you can add X for directory traverse)
- Create the container like you would normally do (name, network port etc.)
- STORAGE CONFIGURATION:
1. For the config, cache and transcode, use the datasets you've created earlier using the Host Path (THE CONFIG ONE IS REALLY IMPORTANT IT IS WHERE YOU WILL PUT YOU'RE OLD DATA)
2. For your media folder, whether it's an SMB share on your truenas machine or no (I don't know for an SMB share on another machine), you can use Host Path in the storage configuration. Make sure to mount the folder the same way you had with Truecharts.
- Start the container to make sure everything works as it would do for a vanilla install.
- Stop both of your container (the truecharts and the "official" one)
- use Heavyscript (https://github.com/Heavybullets8/heavy_script) to mount the old container's PVC so you can access the data of your old jellyfin. The script will usually mount the pvc under /mnt/mounted-pvc.
- If you want to make sure it did it correctly you can cd into it.
- rsync the file from the old config folder to the new one: rsync -avz /mount/path/from/heavyscript/ /dataset/you/created/in/the/first/step/
- You can now unmount the old PVC (use heavyscript for it, you've got an UI and all it's easier)
- Restart the new jellyfin container ("official" one), if it doesn't work check the kubernetes or the container log and if you see something like "database image disk is malformed" rsync the file again (unmount and remount the old container PVC)
- You should arrive on the login page that you had in your old jellyfin setup, you can now login with your account and everything should work (Watch status, users...).
- If it doesn't work try to update the library and/or restart the container and/or rsync the file again
My jellyfin is fully migrated (I had to restart the container a few times for it to fully work but now it's good).
I have access to everything as before.
To summarize for the people that might wanna do the same thing:
- Create datasets for your jellyfin config (config, cache and transcode) and give them the appropriate ACL (RW at least and you can add X for directory traverse)
- Create the container like you would normally do (name, network port etc.)
- STORAGE CONFIGURATION:
1. For the config, cache and transcode, use the datasets you've created earlier using the Host Path (THE CONFIG ONE IS REALLY IMPORTANT IT IS WHERE YOU WILL PUT YOU'RE OLD DATA)
2. For your media folder, whether it's an SMB share on your truenas machine or no (I don't know for an SMB share on another machine), you can use Host Path in the storage configuration. Make sure to mount the folder the same way you had with Truecharts.
- Start the container to make sure everything works as it would do for a vanilla install.
- Stop both of your container (the truecharts and the "official" one)
- use Heavyscript (https://github.com/Heavybullets8/heavy_script) to mount the old container's PVC so you can access the data of your old jellyfin. The script will usually mount the pvc under /mnt/mounted-pvc.
- If you want to make sure it did it correctly you can cd into it.
- rsync the file from the old config folder to the new one: rsync -avz /mount/path/from/heavyscript/ /dataset/you/created/in/the/first/step/
- You can now unmount the old PVC (use heavyscript for it, you've got an UI and all it's easier)
- Restart the new jellyfin container ("official" one), if it doesn't work check the kubernetes or the container log and if you see something like "database image disk is malformed" rsync the file again (unmount and remount the old container PVC)
- You should arrive on the login page that you had in your old jellyfin setup, you can now login with your account and everything should work (Watch status, users...).
- If it doesn't work try to update the library and/or restart the container and/or rsync the file again