MisterE2002
Patron
- Joined
- Sep 5, 2015
- Messages
- 211
Is this normal?
We have a dataset /mnt/tank/backups
* We use a container with a hostmapping -> /mnt/tank/backups = /host/backups
* We start the container and also use the "shell" feature
* in truenas we create a new dataset /mnt/tank/backups/new
* In the container shell we see a directoy /host/backups/new
* In the container: touch /host/backups/new/created_in_container
* On the truenas host, notice the folder is EMPTY
* On the truenas host: touch /mnt/tank/backups/new/created_on_host
* In the container, notice the file "created_on_host" does not exist
* in truenas we create plain folder: mkdir /mnt/tank/backups/normal_folder
* In the container shell we see a directoy /host/backups/normal_folder
* In the container: touch /host/backups/normal_folder/created_in_container
* On the truenas host, notice the file does indeed exists
It seems TrueNAS/ZFS is faking a folder if we create a new dataset. However the "mapping" is fake. The data is actually stored in the container and thus get lost on shutdown.
I find this quite dangerous. If this is "normal" can we create some seatbelts? Because this not obvious to end users.
We have a dataset /mnt/tank/backups
* We use a container with a hostmapping -> /mnt/tank/backups = /host/backups
* We start the container and also use the "shell" feature
* in truenas we create a new dataset /mnt/tank/backups/new
* In the container shell we see a directoy /host/backups/new
* In the container: touch /host/backups/new/created_in_container
* On the truenas host, notice the folder is EMPTY
* On the truenas host: touch /mnt/tank/backups/new/created_on_host
* In the container, notice the file "created_on_host" does not exist
* in truenas we create plain folder: mkdir /mnt/tank/backups/normal_folder
* In the container shell we see a directoy /host/backups/normal_folder
* In the container: touch /host/backups/normal_folder/created_in_container
* On the truenas host, notice the file does indeed exists
It seems TrueNAS/ZFS is faking a folder if we create a new dataset. However the "mapping" is fake. The data is actually stored in the container and thus get lost on shutdown.
I find this quite dangerous. If this is "normal" can we create some seatbelts? Because this not obvious to end users.