how to activate replicated dataset for real use

Status
Not open for further replies.

tazinblack

Explorer
Joined
Apr 12, 2013
Messages
77
Hi folks,

I didn't found this in the documentation.

I have two freenas boxes running 9.10.
One which is used by the clients and one I use for the replication destination.
On the destination the dataset readonly flag is set to "on".
So I think there is something which has to be done to break the replication relationship before the replica can be used by the clients.

I haven't found it yet, so maybe someone can give me a hint how to activate the replica.

And maybe this needs to be written do the documentation.


Thanks a lot
 

tazinblack

Explorer
Joined
Apr 12, 2013
Messages
77
Looks like you are right. The dataset is read-write. But it is a bit confusing that the dataset in the volume table is marked read-only on the destination side.
 
D

dlavigne

Guest
That makes sense if the dataset was replicated as it is snapshots that are replicated.
 

tazinblack

Explorer
Joined
Apr 12, 2013
Messages
77
Oh, while trying I see that I'm not allowed to write.
So there must be something to do to have write access
 

tazinblack

Explorer
Joined
Apr 12, 2013
Messages
77
I replicated the dataset with the freenas replication mechanism. Then I deactivated the replication on the primary box and created a smb user with the same name, UID, GUI and password on the replica box.
After that I created a share to that dataset with readonly=false and verified that the user has rights to that dataset.

Now I am able to browser the share but not allowed to write there.
 

tazinblack

Explorer
Joined
Apr 12, 2013
Messages
77
ok, looks like this is a zfs option:

Code:
# zfs get all <Volume>/<dataset>| grep -i readonly
<Volume>/<dataset>  readonly			on		   local


So
Code:
# zfs set readonly=off <Volume>/<dataset> 

solves my problem.

...so I think this has to find it's way to the documentation, since this seems to have changed.
As far as I remember the replicas where writable.

Also a way to do this via the webgui would be nice. :)
 
Last edited:
Status
Not open for further replies.
Top