* [PATCH] mptsas: scan the logical volume at first
@ 2007-08-27 17:58 Yinghai Lu
2007-08-27 22:20 ` Moore, Eric
0 siblings, 1 reply; 4+ messages in thread
From: Yinghai Lu @ 2007-08-27 17:58 UTC (permalink / raw)
To: Andrew Morton, Sathya Prakash, James Bottomley, Eric.Moore
Cc: Linux Kernel Mailing List, mpt_linux_developer, linux-scsi
[PATCH] mptsas: scan the logical volume at first
user like to see the raid show as /dev/sda before left raw disks.
So scan the volume at first to make their life easier.
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index b9c69bf..4c452be 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -2403,9 +2403,6 @@ mptsas_scan_sas_topology(MPT_ADAPTER *ioc)
int i;
mutex_lock(&ioc->sas_discovery_mutex);
- mptsas_probe_hba_phys(ioc);
- while (!mptsas_probe_expander_phys(ioc, &handle))
- ;
/*
Reporting RAID volumes.
*/
@@ -2420,6 +2417,9 @@ mptsas_scan_sas_topology(MPT_ADAPTER *ioc)
ioc->raid_data.pIocPg2->RaidVolume[i].VolumeID, 0);
}
out:
+ mptsas_probe_hba_phys(ioc);
+ while (!mptsas_probe_expander_phys(ioc, &handle))
+ ;
mutex_unlock(&ioc->sas_discovery_mutex);
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH] mptsas: scan the logical volume at first
2007-08-27 17:58 [PATCH] mptsas: scan the logical volume at first Yinghai Lu
@ 2007-08-27 22:20 ` Moore, Eric
2007-08-27 22:51 ` Yinghai Lu
0 siblings, 1 reply; 4+ messages in thread
From: Moore, Eric @ 2007-08-27 22:20 UTC (permalink / raw)
To: Yinghai Lu, Andrew Morton, Prakash, Sathya, James Bottomley
Cc: Linux Kernel Mailing List, mpt_linux_developer, linux-scsi
On Monday, August 27, 2007 11:58 AM, Yinghai Lu wrote:
>
> [PATCH] mptsas: scan the logical volume at first
>
> user like to see the raid show as /dev/sda before left raw disks.
> So scan the volume at first to make their life easier.
>
> Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
>
Although I agree with the patch, there are people on this list that will
reject it due to the fact distro's ship today having udev label and
device id mapping, so device ordering should be an non-issue. However
there are systems that ship that don't have BIOS BBS support, allowing
you to select the boot device. Without it BBS support, you are forced to
boot to the lowest device id. There are HP and Dell systems like that.
Are SUN systems like that? If so, there is an additional patch which I
have yet posted that will sort the raid volumes in acsending order.
Currently they are in descending order (due to Firmware putting them in
that order), which if you did a install to what you think is /dev/sda,
its really the highest target id, and when you reboot, the BIOS will
boot to the lowest id, which is /dev/sdb, and it will not find the boot
partition.
Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] mptsas: scan the logical volume at first
2007-08-27 22:51 ` Yinghai Lu
@ 2007-08-27 22:50 ` Moore, Eric
0 siblings, 0 replies; 4+ messages in thread
From: Moore, Eric @ 2007-08-27 22:50 UTC (permalink / raw)
To: Yinghai.Lu
Cc: Andrew Morton, Prakash, Sathya, James Bottomley,
Linux Kernel Mailing List, linux-scsi
On Monday, August 27, 2007 4:52 PM, Yinghai Lu wrote:
> Yes, I was wondering why kernel.org mainline will have
> /dev/sdb for first raid. but it seems RHEL 5 kernel have
> first raid before second raid...( it
> after all left over raw devices..), maybe they already aplied
> some patch?
>
> can you send out patch?
>
That is not necessary, as we have already implemented the change to sort
volumes in acsending order to Red hat and Suse, and its been accepted.
I will post the change to lsml.
Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mptsas: scan the logical volume at first
2007-08-27 22:20 ` Moore, Eric
@ 2007-08-27 22:51 ` Yinghai Lu
2007-08-27 22:50 ` Moore, Eric
0 siblings, 1 reply; 4+ messages in thread
From: Yinghai Lu @ 2007-08-27 22:51 UTC (permalink / raw)
To: Moore, Eric
Cc: Andrew Morton, Prakash, Sathya, James Bottomley,
Linux Kernel Mailing List, linux-scsi
Moore, Eric wrote:
> On Monday, August 27, 2007 11:58 AM, Yinghai Lu wrote:
>> [PATCH] mptsas: scan the logical volume at first
>>
>> user like to see the raid show as /dev/sda before left raw disks.
>> So scan the volume at first to make their life easier.
>>
>> Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
>>
>
> Although I agree with the patch, there are people on this list that will
> reject it due to the fact distro's ship today having udev label and
> device id mapping, so device ordering should be an non-issue. However
even so, user still can customize it to use /dev/sdaX as root instead of use /dev/scsi/by-id/...or LABEL=/ as root.
> there are systems that ship that don't have BIOS BBS support, allowing
> you to select the boot device. Without it BBS support, you are forced to
> boot to the lowest device id. There are HP and Dell systems like that.
> Are SUN systems like that? If so, there is an additional patch which I
> have yet posted that will sort the raid volumes in acsending order.
> Currently they are in descending order (due to Firmware putting them in
> that order), which if you did a install to what you think is /dev/sda,
> its really the highest target id, and when you reboot, the BIOS will
> boot to the lowest id, which is /dev/sdb, and it will not find the boot
> partition.
Yes, I was wondering why kernel.org mainline will have /dev/sdb for first raid. but it seems RHEL 5 kernel have first raid before second raid...( it
after all left over raw devices..), maybe they already aplied some patch?
can you send out patch?
Thanks
Yinghai Lu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-27 22:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 17:58 [PATCH] mptsas: scan the logical volume at first Yinghai Lu
2007-08-27 22:20 ` Moore, Eric
2007-08-27 22:51 ` Yinghai Lu
2007-08-27 22:50 ` Moore, Eric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox