[stgt] targets.conf problem, setting up tape drives
Tomasz Chmielewski
mangoo at wpkg.org
Sun Oct 25 12:57:43 CET 2009
Albert Pauw wrote:
> [root at orange tgt]# service iscsi-target restart
> Stopping target framework daemon
> Starting target framework daemon
> Not a HASH reference at /usr/sbin/tgt-admin line 276.
>
> This is generated because I use the same backing store (a dummy tape
> with length 0) which gives problems
> in the hash algorithm. If I create an new (dummy) tape with another name
> it works fine.
Yep, that's the problem - and I'm afraid there is no easy way to change
it (but it could give some better error notification).
A simple workaround might be to create a symlink as a second backing store.
Long term, I guess we'd have to use our own parser rather than rely on
Config::General.
(...)
> element_type "4,address=500,tid=1,lun=2"
> element_type "4,address=500,tid=1,lun=3"
> media_home "/root/tapes"
> </backing-store>
>
> Which generates another interesting error message:
>
> [root at orange tgt]# service iscsi-target restart
> Stopping target framework daemon
> Starting target framework daemon
> Multiple 'element_type' definitions in 'backing-store' not allowed!
> Check your config file for errors (target:
> iqn.2008-09.com.example:server.tape).
I'll look at this one. The problem is, "element_type" and "media_home"
are not yet supported in targets.conf.
Could you provide me with a tgtadm line which would use both
"element_type" and "media_home"?
--
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list