[stgt] Bug report, target offline / online
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Tue May 5 19:05:27 CEST 2009
On Tue, 05 May 2009 18:54:27 +0200
Albert Pauw <albert.pauw at gmail.com> wrote:
> FUJITA Tomonori wrote:
> > On Fri, 01 May 2009 19:48:24 +0200
> > Albert Pauw <albert.pauw at gmail.com> wrote:
> >
> >
> >> The initd sample script contains the following:
> >>
> >> tgtadm --op update --mode sys --name State -v offline
> >> # Configure the targets.
> >> tgt-admin -e -c $TGTD_CONFIG
> >> # Put tgtd into "ready" state.
> >> tgtadm --op update --mode sys --name State -v ready
> >>
> >>
> >> However, the offline/ready stuff comes back with "tgtadm: invalid request".
> >>
> >
> > I'm not sure about what tgt-admin does, but the above tgtadm ops work
> > for me:
> >
> > root at lily:~/git/tgt# ./usr/tgtadm --op update --mode sys --name State -v offline
> >
> > root at lily:~/git/tgt# ./usr/tgtadm --op show --mode sys
> > System:
> > State: offline
> > iSNS:
> > iSNS=Off
> > iSNSServerIP=
> > iSNSServerPort=3205
> > iSNSAccessControl=Off
> > root at lily:~/git/tgt# ./usr/tgtadm --op update --mode sys --name State -v ready
> > root at lily:~/git/tgt# ./usr/tgtadm --op show --mode sys
> > System:
> > State: ready
> > iSNS:
> > iSNS=Off
> > iSNSServerIP=
> > iSNSServerPort=3205
> > iSNSAccessControl=Off
> >
> >
> >
> That's really weird. I am using the latest git version, but (even after
> your patch):
The patch is irrelevant since I can't reproduce your problem.
> [root at orange init.d]# tgtadm --op update --mode sys --name State -v offline
> tgtadm: invalid request
All I can say is that your setup must do something wrong. The current
code can handle the above command.
--
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