public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "roland" <devzero@web.de>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Disable SCSI-Reservation at the driver level ?
Date: Sun, 26 Nov 2006 20:22:25 +0100	[thread overview]
Message-ID: <0ce401c71190$34ba35d0$eeeea8c0@aldipc> (raw)
In-Reply-To: 1164563196.13612.3.camel@localhost.localdomain

> There's no SCSI fix for this ... the SAT has no translation for the SCSI
> reservation commands, largely because there's no corresponding ATA
> equivalent and even for SCSI devices they may fail anyway.  The
> application should cope with such a failure, so in this case it's the
> application that needs fixing.

yes, sure i cannot translate a SCSI reservation command into SATA equivalent 
because SATA doesn`t support.
but i`m unsure, what sense does SCSI reservation does make with local 
storage, anyway - because there is no concurrent access in this scenario.
ESX is very SAN oriented, and in nearly all cases SCSI is being used as 
storage, so SCSI reservation will ususally "just work", regardless if being 
needed or not.
I assume it`s not really needed with local storage, but i`m not sure here.
So if the application issues SCSI reservation and i cannot fix the 
application due to mising source, the only way to fix this is to "fake" a 
successful SCSI reservation, maybe via syscall modification (LD_PRELOAD) or 
via driver reporting success on every SCSI reservation command.

> It's most likely done via a SG_IO ioctl() but you should trace the
> application to be sure.

thanks, this is a good hint for what i should search for. i will see if i 
can find a suitable strace package for ESX (ESX doesn`t come with strace) 
and investigate

regards
roland


----- Original Message ----- 
From: "James Bottomley" <James.Bottomley@SteelEye.com>
To: "roland" <devzero@web.de>
Cc: <linux-scsi@vger.kernel.org>
Sent: Sunday, November 26, 2006 6:46 PM
Subject: Re: Disable SCSI-Reservation at the driver level ?


> On Sun, 2006-11-26 at 17:31 +0100, roland wrote:
>> VMWare ESX refuses to create VMFS Filesystem on SATA disk, attached to a
>> onBoard SAS controller (lsi1068).
>> When i raid1 two SATA disks, it works, if i use a single SATA disk, the
>> controller seems to "expose" the disk differently to the operating system
>> and creation of a VMFS fails due to missing ability to issue SCSI
>> reservation command.
>
> There's no SCSI fix for this ... the SAT has no translation for the SCSI
> reservation commands, largely because there's no corresponding ATA
> equivalent and even for SCSI devices they may fail anyway.  The
> application should cope with such a failure, so in this case it's the
> application that needs fixing.
>
>
>> Maybe i can can "workaround" this somehow ?
>> I couldn`t find a way to stop the vmkfstools (which is used to format
>> blockdevice with VMFS) issueing a SCSI reservation command, but i assume
>> this can probably be done via filtering some syscall (ioctl?) via 
>> LD_PRELOAD
>> library - i.e. wrapping vmkfstools - or maybe i can hack this at the 
>> driver
>> level, since source of the ESX storage drivers is available for download 
>> and
>> can be recompiled. :)
>
> It's most likely done via a SG_IO ioctl() but you should trace the
> application to be sure.
>
> James
>
> 


  reply	other threads:[~2006-11-26 19:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-26 16:31 Disable SCSI-Reservation at the driver level ? roland
2006-11-26 17:46 ` James Bottomley
2006-11-26 19:22   ` roland [this message]
2006-11-28 19:23   ` Douglas Gilbert
2006-11-27  5:56 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2006-11-27  9:45 devzero
2006-11-27 17:18 ` Christoph Hellwig
2006-11-27 18:36 devzero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='0ce401c71190$34ba35d0$eeeea8c0@aldipc' \
    --to=devzero@web.de \
    --cc=James.Bottomley@SteelEye.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox