Date: Thu, 27 Sep 2012 12:26:50 -0700 From: =?ISO-8859-1?Q?Gezeala_M=2E_Bacu=F1o_II?= <gezeala@gmail.com> To: Olivier Smedts <olivier@gid0.org> Cc: freebsd-fs@freebsd.org Subject: Re: how to access ZFS snapshot via iSCSI Message-ID: <CAJKO3mX6DB0Mp=%2By5P0ZmeqKmC3STk18OS%2BtSuK2rFSfCxOaDg@mail.gmail.com> In-Reply-To: <CABzXLYMKi9O-xwdP5rNkknq37LVznf6ZSvMVUmnJLz=hGrOkPg@mail.gmail.com> References: <20120926173700.29600@relay.ibs.dn.ua> <CABzXLYMKi9O-xwdP5rNkknq37LVznf6ZSvMVUmnJLz=hGrOkPg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 27, 2012 at 6:57 AM, Olivier Smedts <olivier@gid0.org> wrote: > 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." > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" Try adding "ReadOnly Yes" option on LogicalUnit. [LogicalUnit5] ... ReadOnly Yes ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJKO3mX6DB0Mp=%2By5P0ZmeqKmC3STk18OS%2BtSuK2rFSfCxOaDg>