Date: Thu, 27 Sep 2012 15:57:22 +0200 From: Olivier Smedts <olivier@gid0.org> To: Zeus Panchenko <zeus@ibs.dn.ua> Cc: freebsd-fs@freebsd.org Subject: Re: how to access ZFS snapshot via iSCSI Message-ID: <CABzXLYMKi9O-xwdP5rNkknq37LVznf6ZSvMVUmnJLz=hGrOkPg@mail.gmail.com> In-Reply-To: <20120926173700.29600@relay.ibs.dn.ua> References: <20120926173700.29600@relay.ibs.dn.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
2012/9/26 Zeus Panchenko <zeus@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@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@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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYMKi9O-xwdP5rNkknq37LVznf6ZSvMVUmnJLz=hGrOkPg>
