can zfs snapshot be used to back LUN in ctl.conf ?
Zeus Panchenko
zeus at ibs.dn.ua
Thu Aug 27 12:05:09 UTC 2015
-----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:
- ---[ 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 opening /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
- ---[ ctld debug quotation end ]-------------------------------------------
- ---[ 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
}
}
- ---[ 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 2013" 131072 419838466 0x800 /storage/win/.zfs/snapshot/daily-2015-08-22/file013
another question: can ctld be configured to ignore unavailable config
parts? like unaccessible/missconfigured LUNs
- --
Zeus V. Panchenko jid:zeus at im.ibs.dn.ua
IT Dpt., I.B.S. LLC GMT+2 (EET)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlXe+9sACgkQr3jpPg/3oyoyeQCfdkWWFKUVTQYHKE0eRVz93Dhy
zqgAoN4FFz4EJNJfNdoRF2fLeayVxlRy
=wZJg
-----END PGP SIGNATURE-----
More information about the freebsd-fs
mailing list