how to access ZFS snapshot via iSCSI
Gezeala M. Bacuño II
gezeala at gmail.com
Thu Sep 27 19:27:31 UTC 2012
On Thu, Sep 27, 2012 at 6:57 AM, Olivier Smedts <olivier at gid0.org> wrote:
> 2012/9/26 Zeus Panchenko <zeus at ibs.dn.ua>:
>> hi all,
>>
>> please, may somebody advice, can I access ZFS snapshot via iSCSI?
>>
>> I do can get access to ZFS filesystem and zvol, but how to access ZFS snapshot?
>>
>> I am trying that via istgt, in istgt.conf I put:
>>
>> [LogicalUnit4]
>> Comment "ZVOL 500Gb to test"
>> TargetName zvol-totest
>> Mapping PortalGroup1 InitiatorGroup1
>> AuthMethod Auto
>> AuthGroup AuthGroup1
>> UseDigest Auto
>> UnitType Disk
>> QueueDepth 64
>> LUN0 Storage /dev/zvol/storage/win/zvol-totest Auto
>>
>> and I can mount it and use
>>
>> when I put
>>
>> [LogicalUnit5]
>> Comment "snapshot of ZVOL 500Gb totest"
>> TargetName zvol-totest-snapshot
>> Mapping PortalGroup1 InitiatorGroup1
>> AuthMethod Auto
>> AuthGroup AuthGroup1
>> UseDigest Auto
>> UnitType Disk
>> QueueDepth 64
>> LUN0 Storage /dev/zvol/storage/win/zvol-totest at hourly-2012-09-26-11 Auto
>
> Can you set a read-only access in this config file ? Maybe istgt tries
> to open the volume read-write but it can't because it's a snapshot.
>
> --
> Olivier Smedts _
> ASCII ribbon campaign ( )
> e-mail: olivier at gid0.org - against HTML email & vCards X
> www: http://www.gid0.org - against proprietary attachments / \
>
> "Il y a seulement 10 sortes de gens dans le monde :
> ceux qui comprennent le binaire,
> et ceux qui ne le comprennent pas."
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
Try adding "ReadOnly Yes" option on LogicalUnit.
[LogicalUnit5]
...
ReadOnly Yes
...
More information about the freebsd-fs
mailing list