Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th October 2010, 11:03
terekhov terekhov is offline
Junior Member
 
Join Date: Feb 2010
Location: Russia
Posts: 5
Thanks: 0
Thanked 5 Times in 3 Posts
Default Adaptec 2405 + ISP Config 3.0.3

Hi.

I'm added some code for monitor my Adaptec 2405 RAID Controller.
First, you need to install Storage Manager software, download it here. Default install path is /usr/StorMan, set permission 755 for /usr/StorMan/arcconf , and add to /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php this code:

Code:
                /*
        ADAPTEC 2405
                */
                if(file_exists('/usr/StorMan/arcconf')) {
                        $data['output'] = shell_exec('/usr/StorMan/arcconf GETCONFIG 1');
                        $state = 'ok';
                } else {
                        $state = 'critical';
                        $data['output']= '';
                }

                /*
        ADAPTEC 2405
                */

after:
Code:
                                                /* we don't know the state. so we set the state to critical, that the
                                                 * admin is warned, that something is wrong
                                                */
                                                $this->_setState($state, 'critical');
                                        }
                                }
                        }
                }
This simple code allows you to see the full state controller, without a strong code changes. Maybe someone wants to modify the code for a correct display of the status of hard drives or controller. for me enough this.


Last edited by terekhov; 27th October 2010 at 11:18.
Reply With Quote
The Following User Says Thank You to terekhov For This Useful Post:
till (27th October 2010)
Sponsored Links
  #2  
Old 27th October 2010, 11:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,173 Times in 4,055 Posts
Default

Thanks for the code. I've added it as feature request in the bugtracker:

http://bugtracker.ispconfig.org/inde...s&task_id=1390
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th October 2010, 12:23
terekhov terekhov is offline
Junior Member
 
Join Date: Feb 2010
Location: Russia
Posts: 5
Thanks: 0
Thanked 5 Times in 3 Posts
Default

Quote:
Originally Posted by till View Post
Thanks for the code. I've added it as feature request in the bugtracker:

http://bugtracker.ispconfig.org/inde...s&task_id=1390
Thanks, Till. If interested, I added the full information output from the controller.

Unfortunately, I can't test poweroff of harddrive, failure or rebuilding the array.

Code:
root@terekhov:/usr/StorMan# ./arcconf GETCONFIG 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                        : Optimal
   Channel description                      : SAS/SATA
   Controller Model                         : Adaptec 2405
   Controller Serial Number                 : 9D371133DD4
   Physical Slot                            : 6
   Temperature                              : 51 C/ 123 F (Normal)
   Installed memory                         : 128 MB
   Copyback                                 : Disabled
   Background consistency check             : Disabled
   Automatic Failover                       : Enabled
   Global task priority                     : High
   Performance Mode                         : Default/Dynamic
   Stayawake period                         : Disabled
   Spinup limit internal drives             : 0
   Spinup limit external drives             : 0
   Defunct disk drive count                 : 0
   Logical devices/Failed/Degraded          : 2/0/0
   SSDs assigned to MaxIQ Cache pool        : 0
   Maximum SSDs allowed in MaxIQ Cache pool : 8
   NCQ status                               : Enabled
   Statistics data collection mode          : Enabled
   --------------------------------------------------------
   Controller Version Information
   --------------------------------------------------------
   BIOS                                     : 5.2-0 (17517)
   Firmware                                 : 5.2-0 (17517)
   Driver                                   : 1.1-5 (2461)
   Boot Flash                               : 5.2-0 (17517)

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : main
   RAID level                               : 1
   Status of logical device                 : Optimal
   Size                                     : 476150 MB
   Read-cache mode                          : Enabled
   MaxIQ preferred cache setting            : Enabled
   MaxIQ cache setting                      : Disabled
   Write-cache mode                         : Disabled (write-through)
   Write-cache setting                      : Disabled (write-through)
   Partitioned                              : Yes
   Protected by Hot-Spare                   : No
   Bootable                                 : Yes
   Failed stripes                           : No
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Present (0,0)       JPB530HN26MU7B
   Segment 1                                : Present (0,1)       JPB530HN27878B

Logical device number 1
   Logical device name                      : backup
   RAID level                               : 1
   Status of logical device                 : Optimal
   Size                                     : 238290 MB
   Read-cache mode                          : Enabled
   MaxIQ preferred cache setting            : Enabled
   MaxIQ cache setting                      : Disabled
   Write-cache mode                         : Disabled (write-through)
   Write-cache setting                      : Disabled (write-through)
   Partitioned                              : Yes
   Protected by Hot-Spare                   : No
   Bootable                                 : No
   Failed stripes                           : No
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Present (0,2)             9SF1ATJ5
   Segment 1                                : Present (0,3)             9SF1AK3G


----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
      Device #0
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,0(0:0)
         Reported Location                  : Connector 0, Device 0
         Vendor                             : Hitachi
         Model                              : HDS721050CLA362
         Firmware                           : JP2OA39C
         Serial number                      : JPB530HN26MU7B
         Size                               : 476940 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off,Reduced rpm
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled
      Device #1
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,1(1:0)
         Reported Location                  : Connector 0, Device 1
         Vendor                             : Hitachi
         Model                              : HDS721050CLA362
         Firmware                           : JP2OA39C
         Serial number                      : JPB530HN27878B
         Size                               : 476940 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off,Reduced rpm
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled
      Device #2
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : SATA 1.5 Gb/s
         Reported Channel,Device(T:L)       : 0,2(2:0)
         Reported Location                  : Connector 0, Device 2
         Vendor                             : 
         Model                              : ST3250310NS
         Firmware                           : SN06
         Serial number                      : 9SF1ATJ5
         Size                               : 238475 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled
      Device #3
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : SATA 1.5 Gb/s
         Reported Channel,Device(T:L)       : 0,3(3:0)
         Reported Location                  : Connector 0, Device 3
         Vendor                             : 
         Model                              : ST3250310NS
         Firmware                           : SN06
         Serial number                      : 9SF1AK3G
         Size                               : 238475 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled


Command completed successfully.
Reply With Quote
  #4  
Old 3rd November 2010, 13:54
Trojan Hussar Trojan Hussar is offline
Junior Member
 
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adaptec 2405 + Hitachi HDS721050CLA362

There is a known fault with the firmware in this Hitachi 500Gb which means the array will not build beyond the 137Gb point. Until Hitachi release a firmware upgrade this drive will not work with the Adaptec 1210, 2405 or 2410.

Regards,
TH.
Reply With Quote
  #5  
Old 3rd November 2010, 14:04
terekhov terekhov is offline
Junior Member
 
Join Date: Feb 2010
Location: Russia
Posts: 5
Thanks: 0
Thanked 5 Times in 3 Posts
 
Default

Quote:
Originally Posted by Trojan Hussar View Post
There is a known fault with the firmware in this Hitachi 500Gb which means the array will not build beyond the 137Gb point. Until Hitachi release a firmware upgrade this drive will not work with the Adaptec 1210, 2405 or 2410.

Regards,
TH.
Hmm.. As you can see - all right with array. Or i'm don't see this?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
Problem with the apache (I can't start ist) M.Behrens Installation/Configuration 11 31st March 2006 10:48


All times are GMT +2. The time now is 09:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.