Transmission and storage

Status
Not open for further replies.

Laser411

Dabbler
Joined
Dec 26, 2015
Messages
44
Hi guys, I'm new here. I've read some parts of the manual and read through the forums and here is my dilemma.

I'm on freenas 9.3, running on a I7 6700k, everything is working just fine. However, I read in the manual that when you use the storage function with jails that it just creates pointers, and that if you delete the files on the share, you are just deleting the pointers. So then I would have to go into the jail and delete them if I wanted the files gone. My question is (and FYI I'm a little green on Linux, but I'm completely new to FreeBSD), how can I get transmission to store the actual files on the share outside of the jail so that if I log into the cifs share and delete the files, they are deleted outright and not just the pointers? There's gottta be someone else out there with this experience but I could not find the info within the couple hours I spent researching.
 

Laser411

Dabbler
Joined
Dec 26, 2015
Messages
44
I don't think you understand my question, the manual says:

"Warning

it is important to realize that an added storage is really just a pointer to the selected storage directory on the FreeNAS® system. It does not create a copy of that data within the jail. This means that if you delete any files from the “Destination” directory located in the jail, you are really deleting those files from the “Source” directory located on the FreeNAS® system. However, if you delete the storage, you are only deleting the pointer, not the data itself."

So what would be a proper workaround to have the files stored in one place that can be accessed and permanently deleted in one place.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
I don't think you understand my question, the manual says:

"Warning

it is important to realize that an added storage is really just a pointer to the selected storage directory on the FreeNAS® system. It does not create a copy of that data within the jail. This means that if you delete any files from the “Destination” directory located in the jail, you are really deleting those files from the “Source” directory located on the FreeNAS® system. However, if you delete the storage, you are only deleting the pointer, not the data itself."

So what would be a proper workaround to have the files stored in one place that can be accessed and permanently deleted in one place.
I believe this is referring to removing the 'storage' from a jail, which is like unmounting an external disk. Your data is always stored in one place (either in the jail itself or a nullfs-mounted zfs dataset).
 

Laser411

Dabbler
Joined
Dec 26, 2015
Messages
44
So, the data is indeed stored in the dataset, not the jail. and the files in the jail are the pointers then?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The data is indeed stored in the dataset. @anodos used the example of unmounting an external disk; I'd explain it as being similar to a network share. Your data is stored in the dataset, and that dataset is shared with the jail. If you remove the storage, you've simply disconnected from the dataset; all the data is still there, but inaccessible to the jail unless and until you add that dataset as storage again. However, if you delete something (say, a file) from within the jail, it is deleted from the dataset. If you delete something from outside the jail (e.g., if that dataset is also shared with other clients, and one of those clients deletes a file), that file is gone, and it can't be accessed from inside the jail either.
 
Status
Not open for further replies.
Top