SCSI device capacity mess
Let me present an interesting problem :
Some SAN hardware present for a same LUN a bunch of valid paths and a bunch ghost paths. In my case, the ghosts responds to standard INQUIRY (EVPD 0x83, 0x80, ...) but the READ_CAPACITY fails :
Attached scsi generic sg29 at scsi2, channel 0, id 3, lun 0, type 12
Vendor: DEC Model: HSG80 Rev: V86S
Type: Direct-Access ANSI SCSI revision: 02
sdw : READ CAPACITY failed.
sdw : status=0, message=00, host=0, driver=08
Current sd: sense key Not Ready
Additional sense: Logical unit not ready, initializing cmd. required
sdw: asking for cache data failed
sdw: assuming drive cache: write through
/dev/scsi/host2/bus0/target3/lun1:<6>Device sdw not ready.end_request: I/O error, dev sdw, sector 0
Buffer I/O error on device sdw, logical block 0
Device sdw not ready.end_request: I/O error, dev sdw, sector 0
Buffer I/O error on device sdw, logical block 0
unable to read partition table
Attached scsi disk sdw at scsi2, channel 0, id 3, lun 1
Somehow the sysfs attribute gets set to a random value :
# cat /sys/block/sdw/size 2097152
Say /dev/sdq is valid path to the same LUN. Its size is rightly reported as 213338334 512-byte blocks.
Now when I want to map a multipath target over those two paths, the device-mapper faithfully rejects saying /dev/sdw is too small for a 213338334 blocks devmap.
So what is the correct way to treat this situation ?
1) make the /sys/block/*/size attribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a device rescan when it get activated
4) sell the culprit hardware
Other ideas ? Can someone provide help and kernel coding skills ?
regards,
Signature · 1 line
christophe varoqui <[email protected]>
Quoted 5 lines · christophe varoqui
1) make the
/sys/block/*/sizeattribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a device rescan when it get activated
4) sell the culprit hardware
Only 3 & 4 look viable. There's little point introducing an extra API or ioctl specifically to defeat a check, since the check will now be useless anyway.
The "random" value is 1GB by the way. Since the dawn of time SCSI has reported this for devices that failed read capacity.
James
Quoted 11 lines · James Bottomley
Quoted 5 lines · christophe varoqui
1) make the
/sys/block/*/sizeattribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a device rescan when it get activated
4) sell the culprit hardwareOnly 3 & 4 look viable. There's little point introducing an extra API or ioctl specifically to defeat a check, since the check will now be useless anyway.
:) I feared you would vote for 4)
That is not that viable for me, as you can imagine.
The culprit hardware, should I have reported, is a HSG80 controler pair configured in multibus mode.
I though you could have considered 1) as it is just another way for root to shoot itself and the multipath daemon can apply to detected valid size on other paths to apply it to ghost paths. That didn't seem so awkward to me.
I fear Alasdair reaction to 3) will be cold ... I still hope we can come out with a solution, even one I havn't thought about.
Quoted 3 lines
The "random" value is 1GB by the way. Since the dawn of time SCSI has reported this for devices that failed read capacity.
Ah, good to know. Thanks
regards,
Signature · 6 lines
christophe varoqui <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
On 2004-10-27T01:27:57, christophe varoqui <[email protected]> wrote:
Hi christophe, let's see when I can flush this answer out of my e-mail cache - German trains really need WLAN hotspots ;-)
Quoted 3 lines
Some SAN hardware present for a same LUN a bunch of valid paths and a bunch ghost paths. In my case, the ghosts responds to standard INQUIRY (EVPD
0x83,0x80, ...) but theREAD_CAPACITYfails :
As a note, this is one mode the EMC CLARiiON arrays can also operate in. Even worse, they won't present the block device at all, just the SCSI generic mode. However, for the CLARiiONs, they can be configured to behave sanely and reply to a READ_CAPACITY too (just all I/O will be errored), if setting the failovermode to 1.
I wonder whether your system can also be configured as such?
Quoted 11 lines
Now when I want to map a multipath target over those two paths, the device-mapper faithfully rejects saying
/dev/sdwis too small for a 213338334 blocks devmap.So what is the correct way to treat this situation ?
1) make the
/sys/block/*/sizeattribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a device rescan when it get activated
4) sell the culprit hardware
Personally I would opt for 4), but 3) is the likely path to solve this.
Using the new priority group initialization code (where we sent magic commands down to activate the newly switched-to PG) which Alasdair and I are currently doing for the CLARiiON pampering and which provides a plugin-architecture to the dm-mpath system, you should be able to plug in a hardware-specific handler for your system too.
However, "relaxing" this check should likely also be a property of the hardware plugin loaded; I'd not wish to have it relaxed in all scenarios.
Sincerely,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Lars Marowsky-Bree
Using the new priority group initialization code (where we sent magic commands down to activate the newly switched-to PG) which Alasdair and I are currently doing for the CLARiiON pampering and which provides a plugin-architecture to the dm-mpath system, you should be able to plug in a hardware-specific handler for your system too.
However, "relaxing" this check should likely also be a property of the hardware plugin loaded; I'd not wish to have it relaxed in all scenarios.
-> have the hardware-specific plugin export a path_init() function which is called the first time a path is added to the table (or even on reinstate?).
In addition verifying the size and stuff it could also check that the paths really (still) point to the same device (by storing the LUN WWN in the hw_handler context, for example), or that the path is setup correctly for failover to work etc (of course, the list of things to verify is a hw-specific issue). Paranoia is a good thing.
Mit freundlichen Grüßen,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines
In addition verifying the size and stuff it could also check that the paths really (still) point to the same device (by storing the LUN WWN in the
hw_handlercontext, for example)
Just to eliminate any ambiguity here, using terminology from the
standards: A LUN is a logical unit number. A WWN is a fibre channel port or node name. There's no such thing as a LUN WWN. I presume you mean to check the logical unit device identifier, which is the world wide unique and persistent identifier of a logical unit. (That's what you get (among other things) from Page 0x83 of the SCSI VPD read from the LU).
Quoted 10 lines · Bryan Henderson
Quoted 3 lines
In addition verifying the size and stuff it could also check that the paths really (still) point to the same device (by storing the LUN WWN in the
hw_handlercontext, for example)Just to eliminate any ambiguity here, using terminology from the
standards: A LUN is a logical unit number. A WWN is a fibre channel port or node name. There's no such thing as a LUN WWN. I presume you mean to check the logical unit device identifier, which is the world wide unique and persistent identifier of a logical unit. (That's what you get (among other things) from Page0x83of the SCSI VPD read from the LU).
Thanks for the clarification; EMC at least partially calls said world-wide unique identifier the "LUN's WWN" though. And if we are nitpicking, it's EVPD. ;-)
Sincerely,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines
EMC at least partially calls said
world-wide unique identifier the "LUN's WWN" though.
I'm not surprised. We all know how common it is to call a logical unit (LU) a LUN, and I've also seen the made-up "LUN ID" (and of course the truly ridiculous "LUN number," loved by all those people who key their PIN number into the ATM machine).
Quoted 1 line
And if we are nitpicking, it's EVPD. ;-)
Oh, we're definitely nitpicking, but EVPD is the abbreviation for the "Enable Vital Product Data" bit in an Inquiry CDB that tells the target you're asking for the Vital Product Data (VPD). At least that's how the SCSI standard uses it. Maybe EMC has its own terminology here too.
--
Bryan Henderson IBM Almaden Research Center
San Jose CA Filesystems
Quoted 5 lines
Quoted 4 lines
Some SAN hardware present for a same LUN a bunch of valid paths and a bunch ghost paths. In my case, the ghosts responds to standard INQUIRY (EVPD
0x83,0x80, ...) but theREAD_CAPACITYfails :
Quoted 8 lines
As a note, this is one mode the EMC CLARiiON arrays can also operate in. Even worse, they won't present the block device at all, just the SCSI generic mode. However, for the CLARiiONs, they can be configured to behave sanely and reply to a
READ_CAPACITYtoo (just all I/O will be errored), if setting the failovermode to 1.I wonder whether your system can also be configured as such?
Yes it could, but it's a controler wide setting.
Compatibility with other OS sharing the same controlers might impose this mode though. So I'd like to straight this situation up.
Quoted 15 lines
Quoted 6 lines
1) make the
/sys/block/*/sizeattribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a device rescan when it get activated
4) sell the culprit hardwarePersonally I would opt for 4), but 3) is the likely path to solve this.
Using the new priority group initialization code (where we sent magic commands down to activate the newly switched-to PG) which Alasdair and I are currently doing for the CLARiiON pampering and which provides a plugin-architecture to the dm-mpath system, you should be able to plug in a hardware-specific handler for your system too.
Quoted 4 lines
However, "relaxing" this check should likely also be a property of the hardware plugin loaded; I'd not wish to have it relaxed in all scenarios.
I wonder if it's not simpler just to remove the NOSTARTONADD flag on this devices in scsi_devinfo.c. I tested that and all the READ CAPACITY succeed as expected (DEC HSG80 / COMPAQ HSV*).
Wasn't this flag in part motivated by the lack of multipath support anyway ?
Even in a cluster context, I don't really buy the annoyance of occasional LUN ping-pong.
regards,
Signature · 1 line
christophe varoqui <[email protected]>
Quoted 10 lines · christophe varoqui
Quoted 1 line
I wonder if it's not simpler just to remove the NOSTARTONADD flag on this devices in
scsi_devinfo.c. I tested that and all the READ CAPACITY succeed as expected (DEC HSG80 / COMPAQ HSV*).Wasn't this flag in part motivated by the lack of multipath support anyway ?
Even in a cluster context, I don't really buy the annoyance of occasional LUN ping-pong.
Yes this change was instigated due to lack of multipath support. Where the Qlogic Failover driver intercepts start unit commands this change would not be necessary. But with the other multipath endeavors I am not sure they will affect the need for this feature?
So to the reason for the change, with a single server involved there is no concern issuing the start unit. With 2 servers involved it is an annoyance that can be overlooked for the most part. However when > 2 servers are involved and especially if the number of LUNs involved is significant, say > 16, then the annoyance increases such that it is not easily overlooked.
Switching LUNs from one path to another is not a fast process and if this happens during periods of heaving IO periods, significant thrashing can result.
I think if we want to play at the Enterprise level where there are many servers connected up to large arrays I don't think it is a good idea to knowingly cause disruptions to others on the SAN. Causing LUNs to switch from one path to another is such a behavior.
Eddie Williams
Quoted 10 lines
Switching LUNs from one path to another is not a fast process and if this happens during periods of heaving IO periods, significant thrashing can result.
I think if we want to play at the Enterprise level where there are many servers connected up to large arrays I don't think it is a good idea to knowingly cause disruptions to others on the SAN. Causing LUNs to switch from one path to another is such a behavior.
I certainly don't militate for the NOSTARTONADD flag removal for all devices. I just consider it annoying for the HSG80 / HSV* family controlers :
- Either they are in failover mode and there is no bouncing possible, so start_stop is harmless
- Either they are in multibus mode, then not sending start_stop before READ CAPA lead to cmd failure and wrong size stored. Hence ghosts path are ununsable even when they come up. [Here, I shamely hide the device-mapper hooks on path activation could work]
- Either way, these controler families are *not* high-end devices, whatever the criteria (capacity, throughput, cache, alarming, ...). The whole ghost-path notion being the best evidence.
regards,
Signature · 1 line
christophe varoqui <[email protected]>
Quoted 3 lines
I just consider it annoying for the HSG80 / HSV* family controlers :
<snip>
Quoted 4 lines
- Either way, these controler families are *not* high-end devices, whatever the criteria (capacity, throughput, cache, alarming, ...). The whole ghost-path notion being the best evidence.
HP will not agree with "not high-end devices". The HSV line in particular is a very good performing system and is designed to compete with the EMC Symmetrix line.
The EVA (HSV based) is definately targeted at Data Centers with lots of servers using it as back-end storage simultaneously.
Greg
Signature · 1 line
Greg Freemyer
Quoted 11 lines · Rumor has it that on Wed, Oct 27, 2004 at 09:02:39PM +0200 christophe varoqui…
Quoted 11 lines
Quoted 4 lines
Some SAN hardware present for a same LUN a bunch of valid paths and a bunch ghost paths. In my case, the ghosts responds to standard INQUIRY (EVPD
0x83,0x80, ...) but theREAD_CAPACITYfails :As a note, this is one mode the EMC CLARiiON arrays can also operate in. Even worse, they won't present the block device at all, just the SCSI generic mode. However, for the CLARiiONs, they can be configured to behave sanely and reply to a
READ_CAPACITYtoo (just all I/O will be errored), if setting the failovermode to 1.
Quoted 4 lines
Quoted 2 lines
I wonder whether your system can also be configured as such?
Yes it could, but it's a controler wide setting.
So is the CLARiiON setting.
Quoted 3 lines
Compatibility with other OS sharing the same controlers might impose this mode though. So I'd like to straight this situation up.
I suspect anything else doing failover on this device would already require that setting. And if not doing failover probably won't see the passive controller due to cabling/zoning setup.
I don't see anything wrong with asking for specific array settings if they are needed for multipathing. Some arrays don't return meaningful LU IDs if not configured for it.
Quoted 15 lines
Quoted 15 lines
Quoted 6 lines
1) make the
/sys/block/*/sizeattribute writable
2) resurrect a BLKSETSIZE ioctl
3) make device-mapper less strict, and hope we can fix the size by a device rescan when it get activated
4) sell the culprit hardwarePersonally I would opt for 4), but 3) is the likely path to solve this.
Using the new priority group initialization code (where we sent magic commands down to activate the newly switched-to PG) which Alasdair and I are currently doing for the CLARiiON pampering and which provides a plugin-architecture to the dm-mpath system, you should be able to plug in a hardware-specific handler for your system too.
Quoted 8 lines
Quoted 4 lines
However, "relaxing" this check should likely also be a property of the hardware plugin loaded; I'd not wish to have it relaxed in all scenarios.
I wonder if it's not simpler just to remove the NOSTARTONADD flag on this devices in
scsi_devinfo.c. I tested that and all the READ CAPACITY succeed as expected (DEC HSG80 / COMPAQ HSV*).
Doesnt that just failover the LUN with the START? I think you'd end up with all LUNs active on which ever controller you scanned last. This may not be ideal.
And that wouldn't work for a (misconfigured) CLARiiON anyway, I think.
Quoted 6 lines
Wasn't this flag in part motivated by the lack of multipath support anyway ?
Even in a cluster context, I don't really buy the annoyance of occasional LUN ping-pong.
This is very possible. You can bring many active/passive arrays to their knees if you flip it back and forth under load. Although, I don't see that this is specifc to the READ_CAPACITY issue.
Cheers,
Phil
Quoted 8 lines
regards,
Signature · 6 lines
christophe varoqui <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
Philip R. Auld, Ph.D. Egenera, Inc. Software Architect 165 Forest St. (508) 858-2628 Marlboro, MA 01752
Quoted 9 lines · christophe varoqui
I wonder if it's not simpler just to remove the NOSTARTONADD flag on this devices in
scsi_devinfo.c. I tested that and all the READ CAPACITY succeed as expected (DEC HSG80 / COMPAQ HSV*).Wasn't this flag in part motivated by the lack of multipath support anyway ?
Even in a cluster context, I don't really buy the annoyance of occasional LUN ping-pong.
It's not occasional, it happens every time a single machine in the cluster reboots and the HSG80 can take a while to transfer luns. Configure one with several hundred luns in a 32 node cluster and you'll see why this flag exists...
James
Quoted 4 lines · James Bottomley
It's not occasional, it happens every time a single machine in the cluster reboots and the HSG80 can take a while to transfer luns. Configure one with several hundred luns in a 32 node cluster and you'll see why this flag exists...
While we are at that, ghost (or non-active) paths lead to _tons_ of errors while the kernel stubbornly tries to read the partition table, totally flooding any useful information out of the kernel buffers.
Can't we do a test-unit-ready before trying to read and then just not read the partition table w/o so much noise?
Sincerely,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Lars Marowsky-Bree
Can't we do a test-unit-ready before trying to read and then just not read the partition table w/o so much noise?
We already issue a TUR in sd_spinup_disk() prior to the READ CAPACITY and partition reads.
We might not be able to even black list them and not excute specific code if these devices can be configured differently - they might need special code (yuck) to query the device and figure out the configuration.
-- Patrick Mansfield
Quoted 4 lines · Patrick Mansfield
Quoted 2 lines
Can't we do a test-unit-ready before trying to read and then just not read the partition table w/o so much noise?
We already issue a TUR in
sd_spinup_disk()prior to the READ CAPACITY and partition reads.
I'm just saying we should stop on the first failed command (TUR) and not retry to read all 64 sectors regardless. I can live with one error per passive path, but 64 really kills the logs.
Sincerely,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Lars Marowsky-Bree
Quoted 4 lines · Patrick Mansfield
Quoted 2 lines
Can't we do a test-unit-ready before trying to read and then just not read the partition table w/o so much noise?
We already issue a TUR in
sd_spinup_disk()prior to the READ CAPACITY and partition reads.I'm just saying we should stop on the first failed command (TUR) and not retry to read all 64 sectors regardless. I can live with one error per passive path, but 64 really kills the logs.
That makes sense.
What is the result of the TUR? I did not see any information about it in other posts in this thread.
We should only send the READ CAPACTIY if the TUR says the device is ready. Maybe the code in media_not_present() is wrong and causing a problem.
This code in sd.c:
static int media_not_present(struct scsi_disk *sdkp, struct scsi_request *srp)
{
if (!srp->sr_result)
return 0;
if (!(driver_byte(srp->sr_result) & DRIVER_SENSE))
return 0;
if (srp->sr_sense_buffer[2] != NOT_READY &&
srp->sr_sense_buffer[2] != UNIT_ATTENTION)
return 0;
if (srp->sr_sense_buffer[12] != 0x3A) /* medium not present */
return 0;
set_media_not_present(sdkp);
return 1;
}For example if we got sr_result of a DID_NO_CONNECT or other error that does not end up setting DRIVER_SENSE, driver_byte(sr_result) could be 0, and then we would return 0.
Agree?
And then we allow a READ CAPACITY later on if media is present.
Maybe we have a similiar problem with the TUR to this device.
We should change state somehow if the TUR failed or was not ready, maybe call set_media_not_present(), or maybe change the sdev state to SDEV_OFFLINE - though that might cause extra logging.
We might not normally every hit this since the scan (INQUIRY failure) would likely prevent the device from showing up at all.
Plus, we only call sd_spinup_disk() during discovery and not on open, unlike the calls to sd_media_changed().
-- Patrick Mansfield
Quoted 3 lines · Patrick Mansfield
What is the result of the TUR? I did not see any information about it in other posts in this thread.
Also, if the device is already showing up you can just send a TUR via sg, you don't have to hack sd.c.
I think the sg_turs command in sg_utils might tell us enough information on error, though I don't have any non-ready or borken devices readily available.
elm3a211:~ # sg_turs /dev/sdb
Completed 1 Test Unit Ready commands with 0 errors
-- Patrick Mansfield
Quoted 9 lines
Quoted 4 lines
I'm just saying we should stop on the first failed command (TUR) and not retry to read all 64 sectors regardless. I can live with one error per passive path, but 64 really kills the logs.
That makes sense.
What is the result of the TUR? I did not see any information about it in other posts in this thread.
the tur checker in multipath-tools report ghosts as failing.
Quoted 6 lines
We should change state somehow if the TUR failed or was not ready, maybe call
set_media_not_present(), or maybe change the sdev state toSDEV_OFFLINE- though that might cause extra logging.We might not normally every hit this since the scan (INQUIRY failure) would likely prevent the device from showing up at all.
scsi_id and INQUIRY succeed on ghost paths, which allow multipath to group them with valid paths to the same LU.
Quoted 3 lines
Plus, we only call
sd_spinup_disk()during discovery and not on open, unlike the calls tosd_media_changed().
Would it be workable to add a scsi_devinfo flag for devices with ghosts. If this flag is set and state is down, open calls sd_media_changed(). The multipath-tools and device-mapper will try as hard as possible to avoid opening those device if not necessary, by grouping them in a low priority path group.
regards,
Signature · 1 line
christophe varoqui <[email protected]>
Quoted 10 lines
Quoted 4 lines
Plus, we only call
sd_spinup_disk()during discovery and not on open, unlike the calls tosd_media_changed().Would it be workable to add a
scsi_devinfoflag for devices with ghosts. If this flag is set and state is down, open callssd_media_changed(). The multipath-tools and device-mapper will try as hard as possible to avoid opening those device if not necessary, by grouping them in a low priority path group.
In fact the NOSTARTONADD flag seems just used for devices with ghosts paths. So we could extend its logic : no start on add, but start on IO is state is down.
SG_IO should not activate the path though, for the path checker not to activate it.
regards,
Signature · 1 line
christophe varoqui <[email protected]>
Quoted 4 lines · christophe varoqui
Quoted 3 lines
What is the result of the TUR? I did not see any information about it in other posts in this thread.
the tur checker in multipath-tools report ghosts as failing.
Note: This is about the kernel-internal "I'll try to read the partition table of every block device I see, no matter what errors I get, and NOTHING WILL STOP ME BWAHAHAHA", not about the multipath-tools. ;-)
(A behaviour which tends to mess up the logfiles quite badly.)
Quoted 4 lines
Quoted 2 lines
We might not normally every hit this since the scan (INQUIRY failure) would likely prevent the device from showing up at all.
scsi_idand INQUIRY succeed on ghost paths, which allow multipath to group them with valid paths to the same LU.
Yeah, multipath-tools et al are behaving quite correctly for these scenarios.
Quoted 3 lines
Quoted 2 lines
Plus, we only call
sd_spinup_disk()during discovery and not on open, unlike the calls tosd_media_changed().Would it be workable to add a
scsi_devinfoflag for devices with ghosts.
No. I think the kernel should simply notice that the TUR failed, or abort reading the partition table on the first error. This would at least automatically detect these cases w/o requiring explicit blacklisting.
Sincerely,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · christophe varoqui
Quoted 7 lines
As a note, this is one mode the EMC CLARiiON arrays can also operate in. Even worse, they won't present the block device at all, just the SCSI generic mode. However, for the CLARiiONs, they can be configured to behave sanely and reply to a
READ_CAPACITYtoo (just all I/O will be errored), if setting the failovermode to 1.I wonder whether your system can also be configured as such?
Yes it could, but it's a controler wide setting.
Not per LUN? Too bad.
Quoted 2 lines
Compatibility with other OS sharing the same controlers might impose this mode though. So I'd like to straight this situation up.
Then I think hardware-specific hooks in the dm-mpath are the way to go. We already have them in place for the priority group initialization code anyway, we can add them for anything else which needs them, like this one.
Quoted 3 lines
I wonder if it's not simpler just to remove the NOSTARTONADD flag on this devices in
scsi_devinfo.c. I tested that and all the READ CAPACITY succeed as expected (DEC HSG80 / COMPAQ HSV*).
As James points out, this won't be quite the thing to do.
Sincerely,
Lars Marowsky-Brée <[email protected]>
Signature · 8 lines
High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX AG - A Novell company - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html