Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 15:00:27 +0300
From:      "Zeus Panchenko" <zeus@ibs.dn.ua>
To:        <freebsd-fs@freebsd.org>
Subject:   can zfs snapshot be used to back LUN in ctl.conf ?
Message-ID:  <20150827150027.10825@smtp.new-ukraine.org>

next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

greetings,

please help me to understand where to look at ...

recently I switched from istgt to ctld and now wonder, whether can zfs
snapshot be used to back the LUN for ctld?

istgt do allows that, while ctld fails to start and complains

but if I copy the file from zfs snapshot to some place, then ctld starts
as expected ...


bellow the details are:

=2D ---[ ctld debug quotation start ]--------------------------------------=
-----
...
ctld: adding lun 0, target iqn.2007-09.jp.ne.peach.istgt:file011
ctld: adding lun 0, target iqn.2007-09.jp.ne.peach.istgt:file012
ctld: error returned from LUN creation request: ctl_be_block_open: error op=
ening /storage/win/.zfs/snapshot/daily-2015-08-22/file013
ctld: failed to add lun 0, target iqn.2007-09.jp.ne.peach.istgt:file013
ctld: adding lun 0, target iqn.2007-09.jp.ne.peach.istgt:file014
ctld: adding lun 0, target iqn.2007-09.jp.ne.peach.istgt:file015
...
ctld: adding lun 0, target iqn.2007-09.jp.ne.peach.istgt:file052
ctld: adding lun 0, target iqn.2007-09.jp.ne.peach.istgt:file053
ctld: not listening on portal-group "default", not assigned to any target
ctld: listening on 10.100.21.47, portal-group "alfa"
ctld: listening on 10.100.21.47, portal-group "beta"
ctld: failed to apply configuration; exiting
/etc/rc.d/ctld: WARNING: failed to start ctld
=2D ---[ ctld debug quotation end   ]--------------------------------------=
-----

=2D ---[ ctl.conf quotation start ]----------------------------------------=
---
target iqn.2007-09.jp.ne.peach.istgt:file013 {
    alias "file013-users"
    portal-group alfa
    auth-group ag-file013
    lun 0 {
            path /storage/win/.zfs/snapshot/daily-2015-08-22/file013
            size 300G
    }
}
=2D ---[ ctl.conf quotation end   ]----------------------------------------=
---

the very file exists:
> stat /storagez/win/.zfs/snapshot/daily-2015-08-22/traders.ts.ibs
3500296891 22 -rw-r--r-- 1 root wheel 4294967295 214748364800 "Oct 23 07:41=
:38 2013" "Aug 21 04:00:28 2015" "Aug 21 04:00:28 2015" "Oct 23 07:41:38 20=
13" 131072 419838466 0x800 /storage/win/.zfs/snapshot/daily-2015-08-22/file=
013


another question: can ctld be configured to ignore unavailable config
parts? like unaccessible/missconfigured LUNs

=2D --=20
Zeus V. Panchenko				jid:zeus@im.ibs.dn.ua
IT Dpt., I.B.S. LLC					  GMT+2 (EET)
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlXe+9sACgkQr3jpPg/3oyoyeQCfdkWWFKUVTQYHKE0eRVz93Dhy
zqgAoN4FFz4EJNJfNdoRF2fLeayVxlRy
=3DwZJg
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150827150027.10825>