WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] pvscsi broken

To: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Subject: RE: [Xen-devel] pvscsi broken
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Sun, 15 Mar 2009 00:19:18 +1100
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 14 Mar 2009 06:19:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f4527be0903140615k762d9423n2cd649567abe7de6@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <f4527be0903140543h5d18f12ej8b7bd473c8f8442f@xxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D0162CC1B@trantor> <f4527be0903140615k762d9423n2cd649567abe7de6@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmkpuwBT70bvUTaRcKnAiS9iKuCiwAACNbQ
Thread-topic: [Xen-devel] pvscsi broken
> 
> On Sat, Mar 14, 2009 at 12:56 PM, James Harper
> <james.harper@xxxxxxxxxxxxxxxx> wrote:
> >> Hi,
> >>
> >> On both 3.3.1 and unstable if I try to use pvscsi as per the examples
> >> in the config file I get a error when I try to start the domain:
> >>
> >>  xm dry-run xptest.cfg
> >> Using config file "./xptest.cfg".
> >> /sbin/scsi_id: invalid option -- 's'
> >>
> >
> > I was sure that I had this working previously, but on my 3.3.1 system
> > it's even worse:
> >
> > xm scsi-attach w2k8test32 /dev/st0 0:0:0:0
> > sh: /sbin/scsi_id: No such file or directory
> > sh: /sbin/scsi_id: No such file or directory
> > sh: /sbin/scsi_id: No such file or directory
> > sh: /sbin/scsi_id: No such file or directory
> > sh: /sbin/scsi_id: No such file or directory
> >
> > Mine is Debian Lenny, and scsi_id is in /lib/udev, not /sbin, and
> > doesn't seem to support the right options either...
> >
> > James
> >
> 
> scsi_id from udev 114 accepts that syntax but does not output anything
> at all, I guess its not compatible with the newer udev.

I can get scsi-attach to work by replacing the call to scsi_id in 
python/xen/util/vscsi_util.py with:

'/lib/udev/scsi_id --whitelisted --replace-whitespace --page=0x80 /dev/' + sg

That gives the same output as the previous syntax. Possibly we could omit the 
--page=0x80 bit, which would instead just give a hex string instead of a 
vendor_model_serial string.

The change is then incompatible with the old version of scsi_id though...

James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel