zfs replication;bug on pull server?

Status
Not open for further replies.

John Doe

Guru
Joined
Aug 16, 2011
Messages
633
hi, I did a replication from one FN to another.
on the pull machine I tried to enable smb share to have acces to the dublicated files. But I cannot somehow change the owner to root.
Furthermore I got this pop up msg when I tried to switch permission from unix to windows:

Request Method: POST
Request URL: http://192.168.0.219/storage/dataset/edit/stripe/stripe/1-Video/
Software Version: FreeNAS-11.1-U6 (caffd76fa)
Exception Type: FileNotFoundError
Exception Value:
[Errno 2] No such file or directory: '/mnt/stripe/stripe/1-Video/.windows'
Exception Location: ./freenasUI/middleware/notifier.py in dataset_init_windows_meta_file, line 3650
Server time: Tue, 13 Nov 2018 18:02:49 +0100
Traceback



Request information
GET
No GET data

POST
Variable Value
__all__ ''
dataset_comments ''
dataset_sync 'disabled'
dataset_compression 'inherit'
dataset_share_type 'windows'
dataset_atime 'inherit'
dataset_refquota '0'
dataset_quota '0'
dataset_refreservation '0'
dataset_reservation '0'
dataset_dedup 'inherit'
dataset_readonly 'off'
dataset_recordsize 'inherit'
__form_id 'form_ZFSDatasetEditForm'
FILES
No FILES data

Variable Value
fntreeSaveStateCookie 'root%2Croot%2F128%2Croot%2F128%2F138%2Croot%2F128%2F138%2F140%2Croot%2F29%2Croot%2F29%2F39%2Croot%2F8%2Croot%2F150%2Croot%2F150%2F160%2Croot%2F150%2F160%2F162%2Croot%2F116%2Croot%2F109%2Croot%2F47%2Croot%2F176%2Croot%2F176%2F186%2Croot%2F176%2F186%2F188%2Croot%2F178%2Croot%2F178%2F188%2Croot%2F178%2F188%2F190%2Croot%2F47%2F57%2Croot%2F1%2Croot%2F143%2Croot%2F177%2Croot%2F177%2F187%2Croot%2F177%2F187%2F189%2Croot%2F1%2F5'
csrftoken '********'
sessionid 'qhwh8tnbm45hk2wuvmzghdrkqsa3sw36'
META
Variable Value



any advise how I can access the files via windows?
 
Joined
Jul 3, 2015
Messages
926
FreeNAS replication allows you to snapshot your datasets and send them to another box in a 'readonly' fashion. Pretty much everything you care about is sent including data, permissions, share type, quotas etc. You are trying to change those settings while I assume still having the replication in place and FreeNAS I think is essentially telling you thats a bad idea.

So I guess we need to first try to understand what are you trying to achieve? Why do you want to change the owner on the secondary system and not keep it the same as on the primary? If you change it on the primary then it will auto change on the secondary come the next replication. Why are you trying to change the permission type? If you change it on the primary then it will auto change on the secondary come the next replication.

Should the day ever come when you want to completely cut the relationship between the two systems then you should cancel the replication on the primary, make your secondary pool as read/write and then you can start messing around with changing permissions and owners if you so wish.

Hope this helps.
 

John Doe

Guru
Joined
Aug 16, 2011
Messages
633
thanks for your post.
unfortunately no permissions were copied.
also settings like windows/unix share were not copied.
But after a reboot, I could modify it like the existing system without getting the mentioned error
 
Joined
Jul 3, 2015
Messages
926
Ok cool. Something not quite right there if permissions and share type not copied over. Bare in mind for permissions to be correct UUIDs need to match on both servers be it local users or a shared directory like AD.
 
Status
Not open for further replies.
Top