how to access ZFS snapshot via iSCSI

Maurizio Vairani maurizio.vairani at cloverinformatica.it
Thu Sep 27 10:41:07 UTC 2012


On 27/09/2012 8.01, Zeus Panchenko wrote:
> Gezeala M. Bacuño II<gezeala at gmail.com>  wrote:
>>> does it mean, I have no way to give access to the very snapshot, as if I
>>> manipulate the snapshot locally by cp/mv/cmp e.t.c. commands?
>>>
>>> may I do that with zfs rather than with zvol?
>> The recommended way of accessing snapshots is by cloning it.
>> or
>> cd /your-pool/your-fs-with-snapshot/.zfs/snapshot
>> ls -ls
>>
>> If your filesystem or volume has snapshots you should see them. Take
>> note that everything is read-only.
>>
> I do can access snapshots locally, what am I asking about is can I give
> access to snapshots via network? via iSCSI, NFS or SAMBA ...
>
> since attempt to share snapshot via iSCSI leads to the error messages I
> have posted in the first post
I share my snapshots via SAMBA. In
/usr/local/etc/smb.conf I have:

[Maurizio]
path = /pool500gb/shared/maurizio
comment = Drive per Maurizio
browseable = yes
writeable = yes
public = yes

[Maurizio-Snapshot]
path = /pool500gb/shared/maurizio/.zfs/snapshot
comment = Snapshot del drive per Maurizio
browseable = yes
writeable = no
public = yes


where Maurizio is my work drive and Maurizio-Snapshot is the zfs snaphot

Regards
Maurizio



More information about the freebsd-fs mailing list