iprdd-commit Mailing List for IPR Linux device driver (Page 2)
Brought to you by:
brking
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(3) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(6) |
Feb
|
Mar
|
Apr
(6) |
May
(2) |
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(3) |
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
|
From: Tseng-Hui \(Frank\) L. <tse...@us...> - 2008-04-09 19:55:02
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv1083/iprutils Modified Files: version.mk Log Message: Release 2.2.9 Index: version.mk =================================================================== RCS file: /cvsroot/iprdd/iprutils/version.mk,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- version.mk 20 Sep 2007 15:59:51 -0000 1.66 +++ version.mk 9 Apr 2008 19:54:41 -0000 1.67 @@ -7,8 +7,8 @@ IPR_MAJOR_RELEASE=2 IPR_MINOR_RELEASE=2 IPR_FIX_LEVEL=8 -IPR_RELEASE=1 -IPR_FIX_DATE=(September 20, 2007) +IPR_RELEASE=2 +IPR_FIX_DATE=(April 9, 2008) IPR_VERSION_STR=$(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL) $(IPR_FIX_DATE) |
|
From: Tseng-Hui \(Frank\) L. <tse...@us...> - 2008-04-09 19:39:36
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv24270/iprutils Modified Files: iprlib.h Log Message: Do not save preferred_primary attribute Index: iprlib.h =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprlib.h,v retrieving revision 1.99 retrieving revision 1.100 diff -u -d -r1.99 -r1.100 --- iprlib.h 4 Sep 2007 21:05:11 -0000 1.99 +++ iprlib.h 9 Apr 2008 19:34:17 -0000 1.100 @@ -957,7 +957,6 @@ #define IPR_CONFIG_DIR "/etc/ipr/" #define IPR_CATEGORY_IOA "Adapter" -#define IPR_DA_PREFERRED_PRIMARY "PREFERRED_PRIMARY" #define IPR_GSCSI_HA_ONLY "JBOD_ONLY_HA" #define IPR_CATEGORY_BUS "Bus" |
|
From: Eric W. <er...@wi...> - 2008-01-21 21:09:43
|
Brain: Just thought I'd give you one final update so others can find this info too. For CentOS, the ipr.k modules are in the "plus" kernels: Search results for ipr.ko : CentOS 5 ftp.centos.org/5.1/centosplus/x86_64/RPMS/kernel-xen-2.6.18-53.el5.centos.plus.x86_64.rpm CentOS 5 ftp.centos.org/5.1/centosplus/i386/RPMS/kernel-xen-2.6.18-53.el5.centos.plus.i686.rpm CentOS 5 ftp.centos.org/5.1/centosplus/x86_64/RPMS/kernel-xen-2.6.18-53.1.4.el5.centos.plus.x86_64.rpm CentOS 5 ftp.centos.org/5.1/centosplus/i386/RPMS/kernel-xen-2.6.18-53.1.4.el5.centos.plus.i686.rpm CentOS 5 ftp.centos.org/5.1/centosplus/i386/RPMS/kernel-PAE-2.6.18-53.el5.centos.plus.i686.rpm CentOS 5 ftp.centos.org/5.1/centosplus/i386/RPMS/kernel-PAE-2.6.18-53.1.4.el5.centos.plus.i686.rpm CentOS 5 ftp.centos.org/5.1/centosplus/x86_64/RPMS/kernel-2.6.18-53.el5.centos.plus.x86_64.rpm CentOS 5 ftp.centos.org/5.1/centosplus/i386/RPMS/kernel-2.6.18-53.el5.centos.plus.i686.rpm CentOS 5 ftp.centos.org/5.1/centosplus/x86_64/RPMS/kernel-2.6.18-53.1.4.el5.centos.plus.x86_64.rpm CentOS 5 ftp.centos.org/5.1/centosplus/i386/RPMS/kernel-2.6.18-53.1.4.el5.centos.plus.i686.rpm I could not force the module to load from a different module directory tree, so I had to recycle to the "plus" kernel. On boot, the driver loaded fine, and it immediately tried to access the attached array, which is a Compaq StorageWorks array. >From there I installed a newer firmware: [root@martha ewilson]# rpm -ivh pci.1069B166.08-0708000b-1.Linux.noarch.rpm Preparing... ########################################### [100%] 1:pci.1069B166.08 ########################################### [100%] and pushed it to the card: [root@martha ~]# iprupdate iprupdate[5936]: 0000:03:03.0: Updating adapter microcode from 0208001C to 0708000B. I'm now using the iprutils to initialize and format the DASD. all very smooth.... Thanks a ton for your great, well written tools and articulate advice. You Rock! Cheers; E! > Eric Wilson wrote: >> Brian: >> Thanks for the response. >> The card is an IBM card: >> [root@martha ~]# lspci -v -s 03:03.0 >> 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID >> 600/500/400/Sapphire support Device (rev 04) >> Subsystem: IBM Dual Channel PCI-X U320 SCSI Adapter >> Flags: bus master, 66MHz, slow devsel, latency 32, IRQ 7 BIST result: 00 >> Memory at dd200000 (64-bit, non-prefetchable) [size=256K] Memory at df800000 (64-bit, prefetchable) [size=8M] >> Capabilities: [40] PCI-X non-bridge device >> Capabilities: [50] Message Signalled Interrupts: 64bit+ >> Queue=0/0 >> Enable- >> Capabilities: [78] Power Management version 2 >> Let me as a stupid question first: All the references I see for the ipr >> driver only speak of Linux on Power. The xSeries uses a PowerRAID card. >> I realize this are two very different animals; one is a system >> architecture, and the other is a marketing name for a SCSI controller, but it's a bit confusing. >> So, Before for we go to much further, I should ask; is this card only for the POWER architecture, or will it work in the x86 arch? > > That card is an IBM System p / System i SCSI controller. It is only officially > supported by IBM on System p and System i servers. That being said, it should still work on most x86 systems. The ipr driver is written to be portable to x86 and I have ran it on x86 a bit as well. However, it is an unsupported, and untested configuration. > >> Then, if it will work in an x86 server, there is no ipr kernel module for >> an 2.6 x86 kernel in the sourceforge source. Where can I get it? > > The 2.6 ipr device driver is included in the mainstream kernel > (kernel.org) > and is also in the RHEL 5 kernel. It is possible that the kernel you are using does not have the ipr driver built by default on x86, but that > should be an easy problem to solve. > > -Brian > >> Thanks a bunch; >> Eric >>> Eric Wilson wrote: >>>> Hey guys: >>>> Say hey to a new list member... >>>> I'm having a bit of a disconnect between a card's detection and the driver that should load. >>>> I have a CentOS / RHEL v 5 box. It appears to detect the card: 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04) >>> This particular chip was used by two different family of adapters. To verify which one you have, use lspci -v and look at the Subsystem: line. If that indicates it is an IBM controller, then you need to load >>> the ipr device driver (ipr.ko). Otherwise, you probably need to load the DAC960 driver. >>>> But I cant seem to see a driver loaded for it, nor can I access the card >>>> or any DASD attached. >>>> I see an irdd driver for 2.4 kernels but none for 2.6. What should I >>>> see? >>>> I also downloaded and completed the irdutils, and they compile and run >>>> fine, but see no controller. >>> They will only see a controller if the driver is loaded. >>> -Brian >>>> Any assistance would be appreciated. >>>> Cheers; >>>> Eric >>>> This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com >>>> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Iprdd-commit mailing list >>>> Ipr...@li... >>>> https://lists.sourceforge.net/lists/listinfo/iprdd-commit >>> -- >>> Brian King >>> Linux on Power Virtualization >>> IBM Linux Technology Center >>> This email was Anti Virus checked by Astaro Security Gateway. >>> http://www.astaro.com >> This email was Anti Virus checked by Astaro Security Gateway. >> http://www.astaro.com > > > -- > Brian King > Linux on Power Virtualization > IBM Linux Technology Center > > This email was Anti Virus checked by Astaro Security Gateway. > http://www.astaro.com > > > This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com |
|
From: Eric W. <er...@wi...> - 2008-01-21 19:21:51
|
Brian: Excellent news! Thanks a bunch for your time and the response. I'll dig up the driver and let you know how it goes. Thanks again. Cheers; Eric > Eric Wilson wrote: >> Brian: >> >> Thanks for the response. >> >> The card is an IBM card: >> >> [root@martha ~]# lspci -v -s 03:03.0 >> 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID >> 600/500/400/Sapphire support Device (rev 04) >> Subsystem: IBM Dual Channel PCI-X U320 SCSI Adapter >> Flags: bus master, 66MHz, slow devsel, latency 32, IRQ 7 >> BIST result: 00 >> Memory at dd200000 (64-bit, non-prefetchable) [size=256K] >> Memory at df800000 (64-bit, prefetchable) [size=8M] >> Capabilities: [40] PCI-X non-bridge device >> Capabilities: [50] Message Signalled Interrupts: 64bit+ >> Queue=0/0 >> Enable- >> Capabilities: [78] Power Management version 2 >> >> >> Let me as a stupid question first: All the references I see for the >> ipr >> driver only speak of Linux on Power. The xSeries uses a PowerRAID >> card. >> I realize this are two very different animals; one is a system >> architecture, and the other is a marketing name for a SCSI controller, >> but it's a bit confusing. >> >> So, Before for we go to much further, I should ask; is this card only >> for the POWER architecture, or will it work in the x86 arch? > > That card is an IBM System p / System i SCSI controller. It is only > officially > supported by IBM on System p and System i servers. That being said, it > should still work on most x86 systems. The ipr driver is written to > be portable to x86 and I have ran it on x86 a bit as well. However, > it is an unsupported, and untested configuration. > >> Then, if it will work in an x86 server, there is no ipr kernel module >> for >> an 2.6 x86 kernel in the sourceforge source. Where can I get it? > > The 2.6 ipr device driver is included in the mainstream kernel > (kernel.org) > and is also in the RHEL 5 kernel. It is possible that the kernel > you are using does not have the ipr driver built by default on x86, but > that > should be an easy problem to solve. > > -Brian > >> >> Thanks a bunch; >> >> Eric >> >> >> >> >> >> >> >> >>> Eric Wilson wrote: >>>> Hey guys: >>>> >>>> Say hey to a new list member... >>>> >>>> I'm having a bit of a disconnect between a card's detection and the >>>> driver that should load. >>>> >>>> I have a CentOS / RHEL v 5 box. It appears to detect the card: >>>> >>>> 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID >>>> 600/500/400/Sapphire support Device (rev 04) >>> This particular chip was used by two different family of adapters. >>> To verify which one you have, use lspci -v and look at the Subsystem: >>> line. If that indicates it is an IBM controller, then you need to load >>> the ipr device driver (ipr.ko). Otherwise, you probably need to load >>> the DAC960 driver. >>> >>>> But I cant seem to see a driver loaded for it, nor can I access the >>>> card >>>> or any DASD attached. >>>> >>>> >>>> I see an irdd driver for 2.4 kernels but none for 2.6. What should I >>>> see? >>>> >>>> I also downloaded and completed the irdutils, and they compile and >>>> run >>>> fine, but see no controller. >>> They will only see a controller if the driver is loaded. >>> >>> -Brian >>> >>> >>>> >>>> Any assistance would be appreciated. >>>> >>>> Cheers; >>>> >>>> Eric >>>> >>>> >>>> >>>> This email was Anti Virus checked by Astaro Security Gateway. >>>> http://www.astaro.com >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Iprdd-commit mailing list >>>> Ipr...@li... >>>> https://lists.sourceforge.net/lists/listinfo/iprdd-commit >>> >>> -- >>> Brian King >>> Linux on Power Virtualization >>> IBM Linux Technology Center >>> >>> This email was Anti Virus checked by Astaro Security Gateway. >>> http://www.astaro.com >>> >>> >>> >> >> >> >> This email was Anti Virus checked by Astaro Security Gateway. >> http://www.astaro.com >> > > > -- > Brian King > Linux on Power Virtualization > IBM Linux Technology Center > > This email was Anti Virus checked by Astaro Security Gateway. > http://www.astaro.com > > > This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com |
|
From: Brian K. <br...@li...> - 2008-01-21 18:39:49
|
Eric Wilson wrote: > Brian: > > Thanks for the response. > > The card is an IBM card: > > [root@martha ~]# lspci -v -s 03:03.0 > 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID > 600/500/400/Sapphire support Device (rev 04) > Subsystem: IBM Dual Channel PCI-X U320 SCSI Adapter > Flags: bus master, 66MHz, slow devsel, latency 32, IRQ 7 > BIST result: 00 > Memory at dd200000 (64-bit, non-prefetchable) [size=256K] > Memory at df800000 (64-bit, prefetchable) [size=8M] > Capabilities: [40] PCI-X non-bridge device > Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0 > Enable- > Capabilities: [78] Power Management version 2 > > > Let me as a stupid question first: All the references I see for the ipr > driver only speak of Linux on Power. The xSeries uses a PowerRAID card. > I realize this are two very different animals; one is a system > architecture, and the other is a marketing name for a SCSI controller, > but it's a bit confusing. > > So, Before for we go to much further, I should ask; is this card only > for the POWER architecture, or will it work in the x86 arch? That card is an IBM System p / System i SCSI controller. It is only officially supported by IBM on System p and System i servers. That being said, it should still work on most x86 systems. The ipr driver is written to be portable to x86 and I have ran it on x86 a bit as well. However, it is an unsupported, and untested configuration. > Then, if it will work in an x86 server, there is no ipr kernel module for > an 2.6 x86 kernel in the sourceforge source. Where can I get it? The 2.6 ipr device driver is included in the mainstream kernel (kernel.org) and is also in the RHEL 5 kernel. It is possible that the kernel you are using does not have the ipr driver built by default on x86, but that should be an easy problem to solve. -Brian > > Thanks a bunch; > > Eric > > > > > > > > >> Eric Wilson wrote: >>> Hey guys: >>> >>> Say hey to a new list member... >>> >>> I'm having a bit of a disconnect between a card's detection and the >>> driver that should load. >>> >>> I have a CentOS / RHEL v 5 box. It appears to detect the card: >>> >>> 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID >>> 600/500/400/Sapphire support Device (rev 04) >> This particular chip was used by two different family of adapters. >> To verify which one you have, use lspci -v and look at the Subsystem: >> line. If that indicates it is an IBM controller, then you need to load >> the ipr device driver (ipr.ko). Otherwise, you probably need to load >> the DAC960 driver. >> >>> But I cant seem to see a driver loaded for it, nor can I access the >>> card >>> or any DASD attached. >>> >>> >>> I see an irdd driver for 2.4 kernels but none for 2.6. What should I >>> see? >>> >>> I also downloaded and completed the irdutils, and they compile and run >>> fine, but see no controller. >> They will only see a controller if the driver is loaded. >> >> -Brian >> >> >>> >>> Any assistance would be appreciated. >>> >>> Cheers; >>> >>> Eric >>> >>> >>> >>> This email was Anti Virus checked by Astaro Security Gateway. >>> http://www.astaro.com >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Iprdd-commit mailing list >>> Ipr...@li... >>> https://lists.sourceforge.net/lists/listinfo/iprdd-commit >> >> -- >> Brian King >> Linux on Power Virtualization >> IBM Linux Technology Center >> >> This email was Anti Virus checked by Astaro Security Gateway. >> http://www.astaro.com >> >> >> > > > > This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com > -- Brian King Linux on Power Virtualization IBM Linux Technology Center |
|
From: Eric W. <er...@wi...> - 2008-01-21 17:30:32
|
Brian:
Thanks for the response.
The card is an IBM card:
[root@martha ~]# lspci -v -s 03:03.0
03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID
600/500/400/Sapphire support Device (rev 04)
Subsystem: IBM Dual Channel PCI-X U320 SCSI Adapter
Flags: bus master, 66MHz, slow devsel, latency 32, IRQ 7
BIST result: 00
Memory at dd200000 (64-bit, non-prefetchable) [size=256K]
Memory at df800000 (64-bit, prefetchable) [size=8M]
Capabilities: [40] PCI-X non-bridge device
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0
Enable-
Capabilities: [78] Power Management version 2
Let me as a stupid question first: All the references I see for the ipr
driver only speak of Linux on Power. The xSeries uses a PowerRAID card.
I realize this are two very different animals; one is a system
architecture, and the other is a marketing name for a SCSI controller,
but it's a bit confusing.
So, Before for we go to much further, I should ask; is this card only
for the POWER architecture, or will it work in the x86 arch?
Then, if it will work in an x86 server, there is no ipr kernel module for
an 2.6 x86 kernel in the sourceforge source. Where can I get it?
Thanks a bunch;
Eric
> Eric Wilson wrote:
>> Hey guys:
>>
>> Say hey to a new list member...
>>
>> I'm having a bit of a disconnect between a card's detection and the
>> driver that should load.
>>
>> I have a CentOS / RHEL v 5 box. It appears to detect the card:
>>
>> 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID
>> 600/500/400/Sapphire support Device (rev 04)
>
> This particular chip was used by two different family of adapters.
> To verify which one you have, use lspci -v and look at the Subsystem:
> line. If that indicates it is an IBM controller, then you need to load
> the ipr device driver (ipr.ko). Otherwise, you probably need to load
> the DAC960 driver.
>
>> But I cant seem to see a driver loaded for it, nor can I access the
>> card
>> or any DASD attached.
>>
>>
>> I see an irdd driver for 2.4 kernels but none for 2.6. What should I
>> see?
>>
>> I also downloaded and completed the irdutils, and they compile and run
>> fine, but see no controller.
>
> They will only see a controller if the driver is loaded.
>
> -Brian
>
>
>>
>>
>> Any assistance would be appreciated.
>>
>> Cheers;
>>
>> Eric
>>
>>
>>
>> This email was Anti Virus checked by Astaro Security Gateway.
>> http://www.astaro.com
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Iprdd-commit mailing list
>> Ipr...@li...
>> https://lists.sourceforge.net/lists/listinfo/iprdd-commit
>
>
> --
> Brian King
> Linux on Power Virtualization
> IBM Linux Technology Center
>
> This email was Anti Virus checked by Astaro Security Gateway.
> http://www.astaro.com
>
>
>
This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com
|
|
From: Brian K. <br...@li...> - 2008-01-21 14:57:58
|
Eric Wilson wrote: > Hey guys: > > Say hey to a new list member... > > I'm having a bit of a disconnect between a card's detection and the > driver that should load. > > I have a CentOS / RHEL v 5 box. It appears to detect the card: > > 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID > 600/500/400/Sapphire support Device (rev 04) This particular chip was used by two different family of adapters. To verify which one you have, use lspci -v and look at the Subsystem: line. If that indicates it is an IBM controller, then you need to load the ipr device driver (ipr.ko). Otherwise, you probably need to load the DAC960 driver. > But I cant seem to see a driver loaded for it, nor can I access the card > or any DASD attached. > > > I see an irdd driver for 2.4 kernels but none for 2.6. What should I see? > > I also downloaded and completed the irdutils, and they compile and run > fine, but see no controller. They will only see a controller if the driver is loaded. -Brian > > > Any assistance would be appreciated. > > Cheers; > > Eric > > > > This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Iprdd-commit mailing list > Ipr...@li... > https://lists.sourceforge.net/lists/listinfo/iprdd-commit -- Brian King Linux on Power Virtualization IBM Linux Technology Center |
|
From: Eric W. <er...@wi...> - 2008-01-19 20:04:03
|
Hey guys: Say hey to a new list member... I'm having a bit of a disconnect between a card's detection and the driver that should load. I have a CentOS / RHEL v 5 box. It appears to detect the card: 03:03.0 SCSI storage controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04) But I cant seem to see a driver loaded for it, nor can I access the card or any DASD attached. I see an irdd driver for 2.4 kernels but none for 2.6. What should I see? I also downloaded and completed the irdutils, and they compile and run fine, but see no controller. Any assistance would be appreciated. Cheers; Eric This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com |
|
From: Brian K. <br...@us...> - 2007-09-20 15:59:54
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4504 Modified Files: version.mk Log Message: Release 2.2.8 Index: version.mk =================================================================== RCS file: /cvsroot/iprdd/iprutils/version.mk,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -r1.65 -r1.66 --- version.mk 4 Sep 2007 21:05:12 -0000 1.65 +++ version.mk 20 Sep 2007 15:59:51 -0000 1.66 @@ -6,9 +6,9 @@ IPR_MAJOR_RELEASE=2 IPR_MINOR_RELEASE=2 -IPR_FIX_LEVEL=7 +IPR_FIX_LEVEL=8 IPR_RELEASE=1 -IPR_FIX_DATE=(August 31, 2007) +IPR_FIX_DATE=(September 20, 2007) IPR_VERSION_STR=$(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL) $(IPR_FIX_DATE) |
|
From: Brian K. <br...@us...> - 2007-09-20 15:59:54
|
Update of /cvsroot/iprdd/iprutils/spec In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4504/spec Modified Files: iprutils.spec Log Message: Release 2.2.8 Index: iprutils.spec =================================================================== RCS file: /cvsroot/iprdd/iprutils/spec/iprutils.spec,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- iprutils.spec 4 Sep 2007 21:05:12 -0000 1.87 +++ iprutils.spec 20 Sep 2007 15:59:51 -0000 1.88 @@ -1,6 +1,6 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.2.7 +Version: 2.2.8 Release: 1 License: CPL Group: System Environment/Base @@ -81,6 +81,8 @@ %{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Sep 20 2007 Brian King <br...@us...> 2.2.8 +- Release 2.2.8 * Mon Aug 27 2007 Brian King <br...@us...> - Add support for setting dual adapter HA mode. * Thu Jun 21 2007 Brian King <br...@us...> 2.2.7 |
|
From: Brian K. <br...@us...> - 2007-09-04 21:05:13
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15698 Modified Files: iprconfig.8 iprconfig.c iprlib.c iprlib.h version.mk Log Message: Add support for settings dual adapter HA mode Index: version.mk =================================================================== RCS file: /cvsroot/iprdd/iprutils/version.mk,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- version.mk 21 Aug 2007 18:56:01 -0000 1.64 +++ version.mk 4 Sep 2007 21:05:12 -0000 1.65 @@ -8,7 +8,7 @@ IPR_MINOR_RELEASE=2 IPR_FIX_LEVEL=7 IPR_RELEASE=1 -IPR_FIX_DATE=(June 21, 2007) +IPR_FIX_DATE=(August 31, 2007) IPR_VERSION_STR=$(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL) $(IPR_FIX_DATE) Index: iprlib.c =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprlib.c,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- iprlib.c 1 May 2007 21:56:18 -0000 1.115 +++ iprlib.c 4 Sep 2007 21:05:10 -0000 1.116 @@ -3366,6 +3366,42 @@ sense_data, timeout_in_sec, 0); }; +int ipr_set_ha_mode(struct ipr_ioa *ioa, int gscsi_only_ha) +{ + int rc, len; + struct sense_data_t sense_data; + struct ipr_config_term_hdr *hdr; + struct ipr_subsys_config_term *term; + struct ipr_mode_pages pages; + struct ipr_mode_page25 *page; + + memset(&sense_data, 0, sizeof(sense_data)); + rc = mode_sense(&ioa->ioa, 0x25, &pages, &sense_data); + + if (!rc) { + page = (struct ipr_mode_page25 *)(pages.data + pages.hdr.block_desc_len); + + for_each_page25_term(hdr, page) { + if (hdr->term_id != IPR_SUBSYS_CONFIG_TERM_ID) + continue; + + term = (struct ipr_subsys_config_term *)hdr; + if (gscsi_only_ha) + term->config = IPR_GSCSI_ONLY_HA_SUBSYS; + else + term->config = IPR_AFDASD_SUBSYS; + + len = pages.hdr.length + 1; + pages.hdr.length = 0; + + return ipr_mode_select(&ioa->ioa, &pages, len); + } + + } + + return rc; +} + int ipr_set_preferred_primary(struct ipr_ioa *ioa, int preferred_primary) { int fd, rc; @@ -3417,6 +3453,22 @@ return 0; } +int set_ha_mode(struct ipr_ioa *ioa, int gscsi_only) +{ + char temp[100]; + int reset_needed = (gscsi_only != ioa->in_gscsi_only_ha); + + sprintf(temp, "%d", gscsi_only); + if (ipr_set_ha_mode(ioa, gscsi_only)) + return -EIO; + ipr_save_ioa_attr(ioa, IPR_GSCSI_HA_ONLY, temp, 1); + + if (reset_needed) + ipr_reset_adapter(ioa); + + return 0; +} + int get_scsi_dev_data(struct scsi_dev_data **scsi_dev_ref) { int num_devs = 0; @@ -3652,6 +3704,39 @@ sprintf(buf, "Unknown (%d)", state); } +static void get_subsys_config(struct ipr_ioa *ioa) +{ + int rc; + struct ipr_mode_pages pages; + struct ipr_mode_page25 *page; + struct ipr_config_term_hdr *hdr; + struct ipr_subsys_config_term *term; + struct sense_data_t sense_data; + + ioa->in_gscsi_only_ha = 0; + + if (!ioa->gscsi_only_ha) + return; + + memset(&sense_data, 0, sizeof(sense_data)); + rc = mode_sense(&ioa->ioa, 0x25, &pages, &sense_data); + + if (!rc) { + page = (struct ipr_mode_page25 *)(pages.data + pages.hdr.block_desc_len); + + for_each_page25_term(hdr, page) { + if (hdr->term_id != IPR_SUBSYS_CONFIG_TERM_ID) + continue; + + term = (struct ipr_subsys_config_term *)hdr; + if (term->config == IPR_GSCSI_ONLY_HA_SUBSYS) + ioa->in_gscsi_only_ha = 1; + return; + } + } + +} + static void get_dual_ioa_state(struct ipr_ioa *ioa) { int rc; @@ -3726,6 +3811,8 @@ ioa->is_aux_cache = 1; if (ioa_cap.can_attach_to_aux_cache && ioa_cap.is_dual_wide) ioa->protect_last_bus = 1; + if (ioa_cap.gscsi_only_ha) + ioa->gscsi_only_ha = 1; } } else ioa->ioa_dead = 1; @@ -3870,6 +3957,7 @@ get_ioa_cap(ioa); get_dual_ioa_state(ioa); + get_subsys_config(ioa); /* Get Query Array Config Data */ rc = ipr_query_array_config(ioa, allow_rebuild_refresh, 0, 0, qac_data); @@ -4423,6 +4511,7 @@ struct ipr_dual_ioa_entry *ioa_entry; attr->preferred_primary = 0; + attr->gscsi_only_ha = ioa->in_gscsi_only_ha; if (!ioa->dual_raid_support) return 0; @@ -4463,6 +4552,9 @@ rc = ipr_get_saved_ioa_attr(ioa, IPR_DA_PREFERRED_PRIMARY, temp); if (rc == RC_SUCCESS) sscanf(temp, "%d", &attr->preferred_primary); + rc = ipr_get_saved_ioa_attr(ioa, IPR_GSCSI_HA_ONLY, temp); + if (rc == RC_SUCCESS) + sscanf(temp, "%d", &attr->gscsi_only_ha); return 0; } @@ -4526,7 +4618,18 @@ ipr_save_ioa_attr(ioa, IPR_DA_PREFERRED_PRIMARY, temp, 1); } + if (attr->gscsi_only_ha != old_attr.gscsi_only_ha) { + sprintf(temp, "%d", attr->gscsi_only_ha); + + if (ipr_set_ha_mode(ioa, attr->gscsi_only_ha)) + return -EIO; + if (save) + ipr_save_ioa_attr(ioa, IPR_GSCSI_HA_ONLY, temp, 1); + ipr_reset_adapter(ioa); + } + get_dual_ioa_state(ioa); + get_subsys_config(ioa); return 0; } @@ -5921,11 +6024,17 @@ static void init_ioa_dev(struct ipr_dev *dev) { struct ipr_scsi_buses buses; + struct ipr_ioa_attr attr; if (!dev->ioa) return; if (polling_mode && !dev->ioa->should_init) return; + if (ipr_get_ioa_attr(dev->ioa, &attr)) + return; + ipr_modify_ioa_attr(dev->ioa, &attr); + if (ipr_set_ioa_attr(dev->ioa, &attr, 1)) + return; if (ipr_get_bus_attr(dev->ioa, &buses)) return; ipr_modify_bus_attr(dev->ioa, &buses); Index: iprlib.h =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprlib.h,v retrieving revision 1.98 retrieving revision 1.99 diff -u -d -r1.98 -r1.99 --- iprlib.h 1 May 2007 21:56:18 -0000 1.98 +++ iprlib.h 4 Sep 2007 21:05:11 -0000 1.99 @@ -958,6 +958,7 @@ #define IPR_CATEGORY_IOA "Adapter" #define IPR_DA_PREFERRED_PRIMARY "PREFERRED_PRIMARY" +#define IPR_GSCSI_HA_ONLY "JBOD_ONLY_HA" #define IPR_CATEGORY_BUS "Bus" #define IPR_QAS_CAPABILITY "QAS_CAPABILITY" @@ -1091,6 +1092,7 @@ struct ipr_ioa_attr { int preferred_primary; + int gscsi_only_ha; }; #define IPR_DEV_MAX_PATHS 2 @@ -1145,6 +1147,8 @@ u8 should_init:1; u8 is_aux_cache:1; u8 protect_last_bus:1; + u8 gscsi_only_ha:1; + u8 in_gscsi_only_ha:1; enum ipr_tcq_mode tcq_mode; u16 pci_vendor; u16 pci_device; @@ -1301,6 +1305,32 @@ #endif }; +struct ipr_config_term_hdr { + u8 term_id; + u8 len; +}; + +struct ipr_subsys_config_term { + struct ipr_config_term_hdr hdr; +#define IPR_SUBSYS_CONFIG_TERM_ID 0x02 + u8 config; +#define IPR_AFDASD_SUBSYS 0x00 +#define IPR_GSCSI_ONLY_HA_SUBSYS 0x01 + u8 reserved; +}; + +struct ipr_mode_page25 { + struct ipr_mode_page_hdr hdr; + u8 reserved[2]; + struct ipr_config_term_hdr term; + u8 data[256]; +}; + +#define for_each_page25_term(hdr, page) \ +for (hdr = &(page)->term; \ + (char *)hdr < ((char *)(page) + (page)->hdr.page_length + sizeof((page)->hdr)); \ + hdr = (struct ipr_config_term_hdr *)((char *)hdr + (hdr)->len + sizeof(*hdr))) + struct ipr_mode_page_28_header { struct ipr_mode_page_hdr header; u8 num_dev_entries; @@ -1439,7 +1469,8 @@ u8 reserved1; u8 page_length; u8 ascii_len; - u8 reserved2[3]; + u8 reserved2; + u8 sis_version[2]; #if defined (__BIG_ENDIAN_BITFIELD) u8 dual_ioa_raid:1; u8 dual_ioa_wcache:1; @@ -1448,7 +1479,8 @@ u8 can_attach_to_aux_cache:1; u8 is_aux_cache:1; u8 is_dual_wide:1; - u8 reserved3:5; + u8 gscsi_only_ha:1; + u8 reserved3:4; u8 reserved4[2]; #elif defined (__LITTLE_ENDIAN_BITFIELD) @@ -1456,7 +1488,8 @@ u8 dual_ioa_wcache:1; u8 dual_ioa_raid:1; - u8 reserved3:5; + u8 reserved3:4; + u8 gscsi_only_ha:1; u8 is_dual_wide:1; u8 is_aux_cache:1; u8 can_attach_to_aux_cache:1; @@ -1943,6 +1976,7 @@ int sg_ioctl(int, u8 *, void *, u32, u32, struct sense_data_t *, u32); int sg_ioctl_noretry(int, u8 *, void *, u32, u32, struct sense_data_t *, u32); int ipr_set_preferred_primary(struct ipr_ioa *, int); +int set_ha_mode(struct ipr_ioa *, int); int set_preferred_primary(struct ipr_ioa *, int); void check_current_config(bool); int num_device_opens(int, int, int, int); Index: iprconfig.8 =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprconfig.8,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- iprconfig.8 26 Apr 2007 19:55:10 -0000 1.18 +++ iprconfig.8 4 Sep 2007 21:05:10 -0000 1.19 @@ -122,10 +122,15 @@ .B 6. Work with disk configuration is used to change configurable disk attributes, such as queue depth. .PP -.B 7. Download microcode +.B 7. Work with adapter configuration +is used to change configurable adapter attributes, such as dual adapter settings. +Refer to the following command line options: primary, secondary, query-ha-mode, +and set-ha-mode for more information regarding these settings. +.PP +.B 8. Download microcode is used to download microcode to ipr adapters and attached SCSI disks. .PP -.B 8. Analyze Log +.B 9. Analyze Log is an option available to analyze /var/log/messages* files. By default it will use vi as the editor to open the concatenated error log files. This can be changed by using option 6 on the @@ -574,7 +579,34 @@ .B preferred primary adapter. Example: .br -.B iprconfig -c set-all-secondary +.B iprconfig -c set-all-secondary +.TP +.B query-ha-mode [IOA] +.br +When an adapter is configured in a highly available dual adapter configuration, +it may be able to be configured in one of two ways. The default mode is +.B Normal. +This mode is used for all SCSI adapters and many SAS adapters. +Some SAS adapters also support a +.B JBOD +dual adapter configuration. This mode is to be used when the dual adapter +configuration is to consist of JBOD disks rather than RAID arrays. If the adapter +is +.B NOT +going to be used in a dual adapter configuration, this mode +.B MUST +be set to +.B Normal. +Example: +.br +.B iprconfig -c query-ha-mode sg5 +.TP +.B set-ha-mode [IOA] [Normal | RAID] +Used to set the high-availability mode of the adapter. Refer to the +.B query-ha-mode +command for more information regarding these settings. Example: +.br +.B iprconfig -c set-ha-mode sg5 Normal .RE .TP .B \-\-version Index: iprconfig.c =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprconfig.c,v retrieving revision 1.132 retrieving revision 1.133 diff -u -d -r1.132 -r1.133 --- iprconfig.c 26 Apr 2007 13:32:30 -0000 1.132 +++ iprconfig.c 4 Sep 2007 21:05:10 -0000 1.133 @@ -7763,7 +7763,7 @@ for_each_ioa(ioa) { if (ioa->ioa.scsi_dev_data == NULL) continue; - if (!ioa->dual_raid_support) + if (!ioa->dual_raid_support && !ioa->gscsi_only_ha) continue; print_dev(k, &ioa->ioa, buffer, "%1", k); @@ -7800,6 +7800,7 @@ struct ioa_config_attr { int option; int preferred_primary; + int gscsi_only_ha; }; int ioa_config_menu(struct ioa_config_attr *ioa_config_attr, @@ -7818,20 +7819,28 @@ same line as the field in which the menu is opened for*/ start_row += 2; /* for title */ /* FIXME */ - if (ioa_config_attr->option == 1) { + if (ioa_config_attr->option == 1 || ioa_config_attr->option == 2) { num_menu_items = 2; menu_item = malloc(sizeof(ITEM **) * (num_menu_items + 1)); userptr = malloc(sizeof(int) * num_menu_items); menu_index = 0; - menu_item[menu_index] = new_item("None",""); + if (ioa_config_attr->option == 1) + menu_item[menu_index] = new_item("None",""); + else + menu_item[menu_index] = new_item("RAID",""); + userptr[menu_index] = 0; set_item_userptr(menu_item[menu_index], (char *)&userptr[menu_index]); menu_index++; - menu_item[menu_index] = new_item("Primary",""); + if (ioa_config_attr->option == 1) + menu_item[menu_index] = new_item("Primary",""); + else + menu_item[menu_index] = new_item("JBOD",""); + userptr[menu_index] = 1; set_item_userptr(menu_item[menu_index], (char *)&userptr[menu_index]); @@ -7839,8 +7848,12 @@ menu_item[menu_index] = (ITEM *)NULL; rc = display_menu(menu_item, start_row, menu_index, &retptr); - if (rc == RC_SUCCESS) - ioa_config_attr->preferred_primary = *retptr; + if (rc == RC_SUCCESS) { + if (ioa_config_attr->option == 1) + ioa_config_attr->preferred_primary = *retptr; + else + ioa_config_attr->gscsi_only_ha = *retptr; + } i = 0; while (menu_item[i] != NULL) @@ -7866,7 +7879,7 @@ struct ioa_config_attr ioa_config_attr[3]; struct ioa_config_attr *config_attr = NULL; struct ipr_ioa_attr ioa_attr; - int header_lines = 0; + int header_lines = 0, index = 0; char *body = NULL; struct screen_output *s_out; @@ -7901,14 +7914,27 @@ body = add_line_to_body(body, buffer, NULL); header_lines += 2; - body = add_line_to_body(body,_("Preferred Dual Adapter State"), "%13"); - ioa_config_attr[0].option = 1; - ioa_config_attr[0].preferred_primary = ioa_attr.preferred_primary; - if (ioa_attr.preferred_primary) - sprintf(pref_str, "Primary"); - else - sprintf(pref_str, "None"); - i_con = add_i_con(i_con, pref_str, &ioa_config_attr[0]); + if (dev->ioa->dual_raid_support) { + body = add_line_to_body(body,_("Preferred Dual Adapter State"), "%13"); + ioa_config_attr[index].option = 1; + ioa_config_attr[index].preferred_primary = ioa_attr.preferred_primary; + if (ioa_attr.preferred_primary) + sprintf(pref_str, "Primary"); + else + sprintf(pref_str, "None"); + i_con = add_i_con(i_con, pref_str, &ioa_config_attr[index++]); + } + + if (dev->ioa->gscsi_only_ha) { + body = add_line_to_body(body,_("High-Availability Mode"), "%13"); + ioa_config_attr[index].option = 2; + ioa_config_attr[index].gscsi_only_ha = ioa_attr.gscsi_only_ha; + if (ioa_attr.gscsi_only_ha) + sprintf(pref_str, "JBOD"); + else + sprintf(pref_str, "Normal"); + i_con = add_i_con(i_con, pref_str, &ioa_config_attr[index++]); + } n_change_ioa_config.body = body; while (1) { @@ -7930,6 +7956,12 @@ else sprintf(temp_i_con->field_data, "None"); ioa_attr.preferred_primary = config_attr->preferred_primary; + } else if (config_attr->option == 2) { + if (config_attr->gscsi_only_ha) + sprintf(temp_i_con->field_data, "JBOD"); + else + sprintf(temp_i_con->field_data, "Normal"); + ioa_attr.gscsi_only_ha = config_attr->gscsi_only_ha; } found++; break; @@ -11366,6 +11398,35 @@ return 0; } +static int get_ha_mode(char **args, int num_args) +{ + struct ipr_dev *dev = find_gen_dev(args[0]); + + if (!dev) + return -ENXIO; + + if (dev->ioa->in_gscsi_only_ha) + printf("JBOD\n"); + else + printf("Normal\n"); + return 0; +} + +static int __set_ha_mode(char **args, int num_args) +{ + struct ipr_dev *dev = find_gen_dev(args[0]); + + if (!dev) + return -ENXIO; + + if (!strncasecmp(args[1], "Normal", 4)) + return set_ha_mode(dev->ioa, 0); + else if (!strncasecmp(args[1], "JBOD", 4)) + return set_ha_mode(dev->ioa, 1); + + return -EINVAL; +} + static int __set_preferred_primary(char *sg_name, int preferred_primary) { struct ipr_dev *dev = find_gen_dev(sg_name); @@ -11460,6 +11521,8 @@ { "secondary", 1, 0, 1, set_secondary, "sg5" }, { "set-all-primary", 0, 0, 0, set_all_primary, "" }, { "set-all-secondary", 0, 0, 0, set_all_secondary, "" }, + { "query-ha-mode", 1, 0, 1, get_ha_mode, "sg5" }, + { "set-ha-mode", 2, 0, 2, __set_ha_mode, "sg5 [Normal | JBOD]" }, { "raid-create", 1, 1, 0, raid_create, "-r 5 -s 64 sda sdb sg6 sg7" }, { "raid-delete", 1, 0, 1, raid_delete, "sdb" }, { "raid-include", 2, 0, 17, raid_include_cmd, "sda sg6 sg7" }, |
|
From: Brian K. <br...@us...> - 2007-09-04 21:05:13
|
Update of /cvsroot/iprdd/iprutils/spec In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15698/spec Modified Files: iprutils.spec Log Message: Add support for settings dual adapter HA mode Index: iprutils.spec =================================================================== RCS file: /cvsroot/iprdd/iprutils/spec/iprutils.spec,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- iprutils.spec 21 Aug 2007 18:56:03 -0000 1.86 +++ iprutils.spec 4 Sep 2007 21:05:12 -0000 1.87 @@ -81,6 +81,8 @@ %{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Mon Aug 27 2007 Brian King <br...@us...> +- Add support for setting dual adapter HA mode. * Thu Jun 21 2007 Brian King <br...@us...> 2.2.7 - Fixes for init.d scripts to fix problems installing them on some systems. |
|
From: Brian K. <br...@us...> - 2007-08-21 18:56:03
|
Update of /cvsroot/iprdd/iprutils/init.d In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4450/init.d Modified Files: iprdump iprha iprinit iprupdate Log Message: init.d script fixes Index: iprupdate =================================================================== RCS file: /cvsroot/iprdd/iprutils/init.d/iprupdate,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- iprupdate 25 Feb 2005 20:39:32 -0000 1.11 +++ iprupdate 21 Aug 2007 18:56:03 -0000 1.12 @@ -12,8 +12,8 @@ # ### BEGIN INIT INFO # Provides: iprupdate -# Required-Start: $local_fs $syslog -# Should-Start: $remote_fs $netfs +# Required-Start: $local_fs +# Should-Start: $remote_fs $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 Index: iprinit =================================================================== RCS file: /cvsroot/iprdd/iprutils/init.d/iprinit,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- iprinit 16 Apr 2004 16:15:44 -0000 1.7 +++ iprinit 21 Aug 2007 18:56:03 -0000 1.8 @@ -12,8 +12,8 @@ # ### BEGIN INIT INFO # Provides: iprinit -# Required-Start: $local_fs $syslog -# Should-Start: $remote_fs $netfs +# Required-Start: $local_fs +# Should-Start: $remote_fs $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 Index: iprdump =================================================================== RCS file: /cvsroot/iprdd/iprutils/init.d/iprdump,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- iprdump 29 Apr 2004 16:49:26 -0000 1.9 +++ iprdump 21 Aug 2007 18:56:02 -0000 1.10 @@ -12,8 +12,8 @@ # ### BEGIN INIT INFO # Provides: iprdump -# Required-Start: $local_fs $syslog iprinit -# Should-Start: $remote_fs $netfs +# Required-Start: $local_fs iprinit +# Should-Start: $remote_fs $syslog # Required-Stop: $local_fs $syslog iprinit # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 Index: iprha =================================================================== RCS file: /cvsroot/iprdd/iprutils/init.d/iprha,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- iprha 26 Apr 2007 13:40:36 -0000 1.1 +++ iprha 21 Aug 2007 18:56:03 -0000 1.2 @@ -12,8 +12,8 @@ # ### BEGIN INIT INFO # Provides: iprha -# Required-Start: $local_fs $syslog -# Should-Start: $remote_fs $netfs +# Required-Start: $local_fs +# Should-Start: $remote_fs $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 |
|
From: Brian K. <br...@us...> - 2007-08-21 18:56:03
|
Update of /cvsroot/iprdd/iprutils/spec In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4450/spec Modified Files: iprutils.spec Log Message: init.d script fixes Index: iprutils.spec =================================================================== RCS file: /cvsroot/iprdd/iprutils/spec/iprutils.spec,v retrieving revision 1.85 retrieving revision 1.86 diff -u -d -r1.85 -r1.86 --- iprutils.spec 8 May 2007 18:23:51 -0000 1.85 +++ iprutils.spec 21 Aug 2007 18:56:03 -0000 1.86 @@ -1,6 +1,6 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.2.6 +Version: 2.2.7 Release: 1 License: CPL Group: System Environment/Base @@ -31,9 +31,23 @@ %ifarch ppc ppc64 %post -/usr/lib/lsb/install_initd %{_sysconfdir}/init.d/iprinit -/usr/lib/lsb/install_initd %{_sysconfdir}/init.d/iprdump -/usr/lib/lsb/install_initd %{_sysconfdir}/init.d/iprupdate +if [ $1 = 2 ]; then + echo "Restarting iprutils services" + %{_sysconfdir}/init.d/iprdump restart > /dev/null 2>&1 + %{_sysconfdir}/init.d/iprupdate restart > /dev/null 2>&1 + %{_sysconfdir}/init.d/iprinit restart > /dev/null 2>&1 +elif [ -f /usr/lib/lsb/install_initd ]; then + /usr/lib/lsb/install_initd %{_sysconfdir}/init.d/iprinit + /usr/lib/lsb/install_initd %{_sysconfdir}/init.d/iprdump + /usr/lib/lsb/install_initd %{_sysconfdir}/init.d/iprupdate +else + chkconfig --add iprinit > /dev/null 2>&1 + chkconfig --add iprdump > /dev/null 2>&1 + chkconfig --add iprupdate > /dev/null 2>&1 + chkconfig iprinit on > /dev/null 2>&1 + chkconfig iprdump on > /dev/null 2>&1 + chkconfig iprupdate on > /dev/null 2>&1 +fi %endif %ifarch ppc ppc64 @@ -42,9 +56,16 @@ %{_sysconfdir}/init.d/iprdump stop > /dev/null 2>&1 %{_sysconfdir}/init.d/iprupdate stop > /dev/null 2>&1 %{_sysconfdir}/init.d/iprinit stop > /dev/null 2>&1 - /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/iprdump - /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/iprupdate - /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/iprinit + + if [ -f /usr/lib/lsb/remove_initd ]; then + /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/iprdump + /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/iprupdate + /usr/lib/lsb/remove_initd %{_sysconfdir}/init.d/iprinit + else + chkconfig --del iprinit > /dev/null 2>&1 + chkconfig --del iprdump > /dev/null 2>&1 + chkconfig --del iprupdate > /dev/null 2>&1 + fi fi %endif @@ -60,6 +81,11 @@ %{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Thu Jun 21 2007 Brian King <br...@us...> 2.2.7 +- Fixes for init.d scripts to fix problems installing them on + some systems. +* Wed Jun 13 2007 Brian King <br...@us...> +- rpm spec file updates * Tue May 1 2007 Brian King <br...@us...> 2.2.6 - Fix iprinit dual initiator failover device rescanning code. * Wed Apr 25 2007 Brian King <br...@us...> |
|
From: Brian K. <br...@us...> - 2007-08-21 18:56:02
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4450 Modified Files: version.mk Log Message: init.d script fixes Index: version.mk =================================================================== RCS file: /cvsroot/iprdd/iprutils/version.mk,v retrieving revision 1.63 retrieving revision 1.64 diff -u -d -r1.63 -r1.64 --- version.mk 8 May 2007 18:23:47 -0000 1.63 +++ version.mk 21 Aug 2007 18:56:01 -0000 1.64 @@ -6,9 +6,9 @@ IPR_MAJOR_RELEASE=2 IPR_MINOR_RELEASE=2 -IPR_FIX_LEVEL=6 +IPR_FIX_LEVEL=7 IPR_RELEASE=1 -IPR_FIX_DATE=(May 7, 2007) +IPR_FIX_DATE=(June 21, 2007) IPR_VERSION_STR=$(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL) $(IPR_FIX_DATE) |
|
From: Brian K. <br...@us...> - 2007-05-08 18:23:57
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15087 Modified Files: version.mk Log Message: Version 2.2.6 Index: version.mk =================================================================== RCS file: /cvsroot/iprdd/iprutils/version.mk,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- version.mk 1 May 2007 21:56:18 -0000 1.62 +++ version.mk 8 May 2007 18:23:47 -0000 1.63 @@ -6,9 +6,9 @@ IPR_MAJOR_RELEASE=2 IPR_MINOR_RELEASE=2 -IPR_FIX_LEVEL=5.cvs +IPR_FIX_LEVEL=6 IPR_RELEASE=1 -IPR_FIX_DATE=(May 1, 2007) +IPR_FIX_DATE=(May 7, 2007) IPR_VERSION_STR=$(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL) $(IPR_FIX_DATE) |
|
From: Brian K. <br...@us...> - 2007-05-08 18:23:57
|
Update of /cvsroot/iprdd/iprutils/spec In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15087/spec Modified Files: iprutils.spec Log Message: Version 2.2.6 Index: iprutils.spec =================================================================== RCS file: /cvsroot/iprdd/iprutils/spec/iprutils.spec,v retrieving revision 1.84 retrieving revision 1.85 diff -u -d -r1.84 -r1.85 --- iprutils.spec 1 May 2007 21:56:18 -0000 1.84 +++ iprutils.spec 8 May 2007 18:23:51 -0000 1.85 @@ -1,6 +1,6 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.2.5.cvs +Version: 2.2.6 Release: 1 License: CPL Group: System Environment/Base @@ -60,7 +60,7 @@ %{_sysconfdir}/ha.d/resource.d/iprha %changelog -* Tue May 1 2007 Brian King <br...@us...> +* Tue May 1 2007 Brian King <br...@us...> 2.2.6 - Fix iprinit dual initiator failover device rescanning code. * Wed Apr 25 2007 Brian King <br...@us...> - Add iprha init.d script to enable/disable primary adapter mode |
|
From: Brian K. <br...@us...> - 2007-05-01 21:56:23
|
Update of /cvsroot/iprdd/iprutils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22403 Modified Files: iprlib.c iprlib.h version.mk Log Message: Fix iprinit dual initiator failover device rescanning code Index: version.mk =================================================================== RCS file: /cvsroot/iprdd/iprutils/version.mk,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- version.mk 26 Apr 2007 19:55:10 -0000 1.61 +++ version.mk 1 May 2007 21:56:18 -0000 1.62 @@ -6,9 +6,9 @@ IPR_MAJOR_RELEASE=2 IPR_MINOR_RELEASE=2 -IPR_FIX_LEVEL=5 +IPR_FIX_LEVEL=5.cvs IPR_RELEASE=1 -IPR_FIX_DATE=(April 26, 2007) +IPR_FIX_DATE=(May 1, 2007) IPR_VERSION_STR=$(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL) $(IPR_FIX_DATE) Index: iprlib.c =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprlib.c,v retrieving revision 1.114 retrieving revision 1.115 diff -u -d -r1.114 -r1.115 --- iprlib.c 26 Apr 2007 13:32:30 -0000 1.114 +++ iprlib.c 1 May 2007 21:56:18 -0000 1.115 @@ -678,13 +678,7 @@ int ipr_improper_device_type(struct ipr_dev *dev) { - struct ipr_ioa *ioa = dev->ioa; - - if (ioa->is_secondary && !ioa->was_secondary && - ipr_is_af_dasd_device(dev) && dev->scsi_dev_data) - return 1; - if (!ioa->is_secondary && ioa->was_secondary && - ipr_is_af_dasd_device(dev) && !dev->scsi_dev_data) + if (dev->rescan) return 1; if (!dev->scsi_dev_data) return 0; @@ -1176,6 +1170,8 @@ static int same_scsi_dev(struct scsi_dev_data *first, struct scsi_dev_data *second) { + if (!first || !second) + return 0; if (first->host != second->host) return 0; if (first->channel != second->channel) @@ -1188,8 +1184,6 @@ return 0; if (first->online != second->online) return 0; - if (first->handle != second->handle) - return 0; if (strcmp(first->vendor_id, second->vendor_id)) return 0; if (strcmp(first->product_id, second->product_id)) @@ -1203,15 +1197,32 @@ return 1; } +static int same_dev_rcd(struct ipr_dev_record *first, struct ipr_dev_record *second) +{ + if (memcmp(&first->resource_addr, &second->resource_addr, + sizeof(first->resource_addr))) + return 0; + if (memcmp(first->vendor_id, second->vendor_id, IPR_VENDOR_ID_LEN)) + return 0; + if (memcmp(first->product_id, second->product_id, IPR_PROD_ID_LEN)) + return 0; + if (memcmp(first->serial_num, second->serial_num, IPR_SERIAL_NUM_LEN)) + return 0; + return 1; +} + static int same_dev(struct ipr_dev *first, struct ipr_dev *second) { if (strcmp(first->dev_name, second->dev_name)) return 0; if (strcmp(first->gen_name, second->gen_name)) return 0; - if (!first->scsi_dev_data || !second->scsi_dev_data) - return 0; - if (!same_scsi_dev(first->scsi_dev_data, second->scsi_dev_data)) + if (!first->scsi_dev_data && !second->scsi_dev_data) { + if (!ipr_is_af_dasd_device(first) || !ipr_is_af_dasd_device(second)) + return 0; + if (!same_dev_rcd(first->dev_rcd, second->dev_rcd)) + return 0; + } else if (!same_scsi_dev(first->scsi_dev_data, second->scsi_dev_data)) return 0; return 1; } @@ -1234,6 +1245,12 @@ new->init_not_allowed = !dev_init_allowed(new); if (!old->init_not_allowed || new->init_not_allowed) new->should_init = 0; + if (new->ioa->is_secondary && !old->ioa->is_secondary && + ipr_is_af_dasd_device(new) && new->scsi_dev_data) + new->rescan = 1; + if (!new->ioa->is_secondary && old->ioa->is_secondary && + ipr_is_af_dasd_device(new) && !new->scsi_dev_data) + new->rescan = 1; } static void resolve_ioa(struct ipr_ioa *ioa, struct ipr_ioa *old_ioa) @@ -1241,13 +1258,13 @@ struct ipr_dev *dev, *old_dev; ioa->should_init = 0; - ioa->was_secondary = old_ioa->is_secondary; for_each_dev(ioa, dev) { for_each_dev(old_ioa, old_dev) { if (!same_dev(dev, old_dev)) continue; memcpy(&dev->attr, &old_dev->attr, sizeof(dev->attr)); + dev->rescan = old_dev->rescan; resolve_dev(dev, old_dev); break; } @@ -1261,7 +1278,6 @@ for_each_ioa(ioa) { ioa->should_init = 1; - ioa->was_secondary = 0; for_each_dev(ioa, dev) dev->should_init = 1; } @@ -6015,6 +6031,7 @@ if (!dev->local_flag) continue; dev->local_flag = 0; + dev->rescan = 0; ipr_for_each_unique_ra(dev, ipr_scan_ra); } Index: iprlib.h =================================================================== RCS file: /cvsroot/iprdd/iprutils/iprlib.h,v retrieving revision 1.97 retrieving revision 1.98 diff -u -d -r1.97 -r1.98 --- iprlib.h 26 Apr 2007 13:32:30 -0000 1.97 +++ iprlib.h 1 May 2007 21:56:18 -0000 1.98 @@ -1102,6 +1102,7 @@ u32 should_init:1; u32 init_not_allowed:1; u32 local_flag:1; + u32 rescan:1; struct scsi_dev_data *scsi_dev_data; struct ipr_dev *ses[IPR_DEV_MAX_PATHS]; struct ipr_res_addr res_addr[IPR_DEV_MAX_PATHS]; @@ -1141,7 +1142,6 @@ u8 scsi_id_changeable:1; u8 dual_raid_support:1; u8 is_secondary:1; - u8 was_secondary:1; u8 should_init:1; u8 is_aux_cache:1; u8 protect_last_bus:1; |
|
From: Brian K. <br...@us...> - 2007-05-01 21:56:23
|
Update of /cvsroot/iprdd/iprutils/spec In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22403/spec Modified Files: iprutils.spec Log Message: Fix iprinit dual initiator failover device rescanning code Index: iprutils.spec =================================================================== RCS file: /cvsroot/iprdd/iprutils/spec/iprutils.spec,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- iprutils.spec 26 Apr 2007 19:55:11 -0000 1.83 +++ iprutils.spec 1 May 2007 21:56:18 -0000 1.84 @@ -1,6 +1,6 @@ Summary: Utilities for the IBM Power Linux RAID adapters Name: iprutils -Version: 2.2.5 +Version: 2.2.5.cvs Release: 1 License: CPL Group: System Environment/Base @@ -60,6 +60,8 @@ %{_sysconfdir}/ha.d/resource.d/iprha %changelog +* Tue May 1 2007 Brian King <br...@us...> +- Fix iprinit dual initiator failover device rescanning code. * Wed Apr 25 2007 Brian King <br...@us...> - Add iprha init.d script to enable/disable primary adapter mode for dual initiator configs. |