I am getting myself confused with how to add storage on a separate local disk ( disk 2 ) to my containers - which live on another disk. ( disk 1)
For example, I have setup a container with zfs on disk 1. This is for a postgres database. I'd like to store the database itself - not the container, on disk 2. How do I add this storage from disk 2 and tell postgres to store its database there?
I also have another container on disk 1 for other things. I'd like to create a folder on disk 2 where I can store files ( csv, excel etv ) for programs on this container.
I am not sure how to mount disk 2? Do I partition it so different containers have their own space or just one big storage tank with custom mount point paths for each container/application? I'd like to use a single disk zfs setup for this one. Any insights into how to set this correctly will be appreciated.
For example, I have setup a container with zfs on disk 1. This is for a postgres database. I'd like to store the database itself - not the container, on disk 2. How do I add this storage from disk 2 and tell postgres to store its database there?
I also have another container on disk 1 for other things. I'd like to create a folder on disk 2 where I can store files ( csv, excel etv ) for programs on this container.
I am not sure how to mount disk 2? Do I partition it so different containers have their own space or just one big storage tank with custom mount point paths for each container/application? I'd like to use a single disk zfs setup for this one. Any insights into how to set this correctly will be appreciated.