Free code from http://hwraid.le-vert.net
elverde / hwraid Goto Github PK
View Code? Open in Web Editor NEWHWRaid: Free code from http://hwraid.le-vert.net
License: GNU General Public License v2.0
HWRaid: Free code from http://hwraid.le-vert.net
License: GNU General Public License v2.0
Free code from http://hwraid.le-vert.net
Megaclisas-status works really well for me. However, some of my enclosures (Infortrend DS S12S-J2000-R, so 3rd party) do not have an ID set, and this seems to cause some issues when the script is parsing the MegaCLI output. Here is an example where MegaCLI reports the correct rebuild status whereas the wrapper script is stuck at 0%:
# ./MegaCli64 -PDRbld -ShowProg -PhysDrv [:67] -a0
Rebuild Progress on Device at Enclosure N/A, Slot 67 Completed 31% in 959 Minutes.
Exit Code: 0x00
# ./megaclisas-status.py | grep ":67"
c0u7p5 | HDD | TOSHIBA MK2001TRKB 010642E0A0FRFM13 | 1.818 TB | Rebuilding (0%) | 6.0Gb/s | 28C | [N/A:67] | 67
It would be great if you could fix the issue.
I run NRPE that normaly runs as "nagios" user (it isn't possible to run as root).
Executing it as nagios user gives the following:
$ sas2ircu-status --nagios
RAID OK - Arrays: OK:0 Bad:0 - Disks: OK:0 Bad:0
But when running as root:
$ sudo sas2ircu-status --nagios
RAID ERROR - Arrays: OK:0 Bad:1 - Disks: OK:1 Bad:1
I suggest that the sas2ircu-status return ERROR when hitting a permissions problem, or maybe if we have no arrays / disks at all. In my case it stayed OK because of being run as the nagios user, but I did notice the problems anyway.
Other than that "sas2ircu-status --nagios" works fine.
arraymap is indexed by controller id but a single controller can have multiple arrays causing sas2ircu-status to only list disks on the last volume
the following fixed it for my situation (1 controller, 2 volumes) but i don't have multiple controllers to test it
@@ -138,8 +138,8 @@ if not nagiosmode:
print '-- Arrays informations --'
print '-- ID | Type | Size | Status'
for ctrl in ctrls:
- for array in getArrayList(ctrl[0]):
- arraymap[ctrl[0]]=array
+ arraymap[ctrl[0]]=getArrayList(ctrl[0])
+ for array in arraymap[ctrl[0]]:
if not array[3] in ['Okay (OKY)', 'Inactive, Okay (OKY)']:
bad=True
nagiosbadarray=nagiosbadarray+1
@@ -156,7 +156,7 @@ if not nagiosmode:
for ctrl in ctrls:
for disk in getDiskList(ctrl[0]):
# Compare disk enc/slot to array's ones
- for array in [arraymap.get(ctrl[0])]:
+ for array in arraymap[ctrl[0]]:
for arraydisk in array[4]:
if arraydisk == disk[4]:
if not disk[1] == 'Optimal (OPT)':
Hi,
When a disk was not configured in a array/LD (but used in JBOD mode (it's now possible with the H730P)) its flag was 'ready', but megaraidsas-status only check online et hotspare states.
Could you, please, consider the 'ready' state like you did for megaclisas-status?
(by adding at line 100 of megaraidsas-status a third test of the return keyword 'ready')
Regards.
#Problem
Running 3ware-status gives following error message:
root@jw02:/home/jw# uname -a
Linux jw02 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u3 (2017-08-15) i686 GNU/Linux
root@jw02:/home/jw# 3ware-status
-- Controller informations --
-- ID | Model
Traceback (most recent call last):
File "/usr/sbin/3ware-status", line 95, in <module>
model = getOutput(cmd)[0].split(' = ')[1].strip()
IndexError: list index out of range
root@jw02:/home/jw# 3ware-status --nagios
RAID OK - Arrays: OK:4 Bad:0 - Disks: OK:7 Bad:0
root@jw02:/home/jw#
First time I receive the error messages. It was working fine for years on Debian jessie.
Line 95 looks like:
# List available controller
if not nagiosmode:
print '-- Controller informations --'
print '-- ID | Model'
for controller in controllerlist:
cmd = binarypath+' info '+controller+' model'
model = getOutput(cmd)[0].split(' = ')[1].strip()
print controller+' | '+model
print ''
It looks like the version in hwraid (9.20) is out of date - I'm running into this annoying little error message on Debian:
$ sudo hpacucli ctrl slot=0 pd all show status
Smart Array P420i in Slot 0 (Embedded)
APPLICATION UPGRADE REQUIRED: This controller has been configured with a more
recent version of software.
To prevent data loss, configuration changes to
this controller are not allowed.
Please upgrade to the latest version to be able
to continue to configure this controller.
9.40-12.0 exists here: https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_9a45caa3b8be46398c1bd4d016
Could we get this updated?
Hello Adam,
today I installed a new machine with a Microsemi (ex Adaptec) controller serie 8
as usual I used your useful repo, the version provided by you is this one:
/usr/sbin/arcconf -v
| UCLI | Adaptec by PMC uniform command line interface
| UCLI | Version 7.31 (B18856)
| UCLI | (C) Adaptec by PMC 2003-2011
| UCLI | All Rights Reserved
but not support my new controller
arcconf GETCONFIG 1 AL
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Status : Inaccessible
so googling a bit I discovered various new version of arcconf, this seems the last one
http://storage.microsemi.com/en-us/speed/raid/storage_manager/arcconf_v2_01_22270_zip.php
and it support my new controller. The problem is that the last version has a different syntax so your utility aacraid-status has some problems.
Using an intermediate version like 1.7 seems all fine, also aacraid-status.
http://storage.microsemi.com/en-us/support/_eula/license-agree.php?arcconf_v1_7_21229.zip
Thank you for your support,
cheers iotaka
if 2 debs from diffent repos have the same filename but differnt fiel size its really hard to mirror your repo to a lokal repo.
could you ranme the packages or add the distro name to the package name
Hi,
I have been fighting for a few weeks with the my NAS returning Partially Degraded status, in alarm when I reboot it, but then showing all disks as apparently OK. Can someone help or point me to help?
My setup
Here is what megaclisas-status returns
-- Controller information --
-- ID | H/W Model | RAM | Temp | BBU | Firmware
c0 | LSI MegaRAID SAS 9260-16i | 512MB | N/A | Absent | FW: 12.12.0-0111
-- Array information --
-- ID | Type | Size | Strpsz | Flags | DskCache | Status | OS Path | CacheCade |InProgress
c0u0 | RAID-6 | 12731G | 64 KB | RA,WB | Enabled | Partially Degraded | /dev/sda | None |None
-- Disk information --
-- ID | Type | Drive Model | Size | Status | Speed | Temp | Slot ID | LSI Device ID
c0u0p0 | HDD | WD-WCC4M1583504WDC WD20EFRX-68EUZN0 80.00A80 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 36C | [245:0] | 18
c0u0p1 | HDD | WD-WCC4M1495492WDC WD20EFRX-68EUZN0 80.00A80 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 37C | [245:1] | 19
c0u0p2 | HDD | WD-WCC1T1404488WDC WD20EFRX-68AX9N0 80.00A80 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 37C | [245:2] | 20
c0u0p3 | HDD | WD-WCC1T1397322WDC WD20EFRX-68AX9N0 80.00A80 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 37C | [245:3] | 21
c0u0p4 | HDD | WD-WCC4M3080096WDC WD20EFRX-68EUZN0 80.00A80 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 36C | [245:4] | 16
c0u0p5 | HDD | WD-WCC4M1584280WDC WD20EFRX-68EUZN0 80.00A80 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 37C | [245:5] | 17
c0u0p6 | HDD | WD-WCC4M2SLXSDUWDC WD20EFRX-68EUZN0 82.00A82 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 36C | [245:6] | 22
c0u0p7 | HDD | WD-WCC4M3XRZX7YWDC WD20EFRX-68EUZN0 82.00A82 | 1.818 TB | Online, Spun Up | 6.0Gb/s | 37C | [245:7] | 23
There is at least one disk/array in a NOT OPTIMAL state.
Happy to provide more information as needed
Thank you for your support
E
Here is related KB from LSI site http://mycusthelp.info/LSI/_cs/AnswerDetail.aspx?inc=8374 with patched binary.
Looks like related issue with ubuntu http://serverfault.com/questions/525923/lsi-3ware-tw-cli-and-tdm2-segfault-with-debian-linux-kernels-after-3-8
I'm using successfully patched version with 3.14 kernel on Debian jessie
Hey!
Would it be possible to provide Xenial packages? Jessie packages should work fine but people looking at Xenial packages can't know that.
Two small details with this MegaRAID SAS board
More info about the RAID controller :
lspci :
RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS-3 3108 [Invader] (rev 02)
megacli :
Adapter #0
===============================================================
Versions
================
Product Name : AVAGO 3108 MegaRAID
Serial No :
FW Package Build: 24.15.0-0018
Mfg. Data
================
Mfg. Date : 00/00/00
Rework Date : 00/00/00
Revision No :
Battery FRU : N/A
Image Versions in Flash:
================
BIOS Version : 6.31.03.0_4.17.08.00_0x06140200
Ctrl-R Version : 5.16-0300
Preboot CLI Version: 01.07-05:#%0000
FW Version : 4.650.00-6223
NVDATA Version : 3.1602.00-0003
Boot Block Version : 3.07.00.00-0003
Pending Images in Flash
================
None
PCI Info
================
Controller Id : 0000
Vendor Id : 1000
Device Id : 005d
SubVendorId : 15d9
SubDeviceId : 0809
Host Interface : PCIE
ChipRevision : C0
Link Speed : 0
Number of Frontend Port: 0
Device Interface : PCIE
....
Capabilities
================
RAID Level Supported : RAID0, RAID1, RAID5, RAID6, RAID00, RAID10, RAID50, RAID60, PRL 11, PRL 11 with spanning, SRL 3 supported, PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span
Supported Drives : SAS, SATA
May be you can update megaclisas-status whit this version that includes snmp and cachecade support.
https://github.com/macmonac/megaclisas-status/blob/master/megaclisas-status
Regards
Hi,
is there a plan to release the tools for Ubuntu 16.04 too?
Can I help with something to get this done?
On Debian amd64 trying to add a LD on a Perc5i with the latest megacli tool. It would appear that this is an issue with the latest version from LSI too. I tried the smae with version 4.00.16 (v old I know!) from LSI and it works. I guess an "old" version of the package would be helpful here.
# megacli -CfgSpanAdd -r10 -Array0[10:2,10:3] Array1[10:6,10:7] WB RA Direct CachedBadBBU -a0
Adapter 0: Configure Adapter Failed
Exit Code: 0x03
# megacli -CfgLdAdd -r1 [10:2,10:3] WB RA Cached CachedBadBBU -a0
Adapter 0: Configure Adapter Failed
Exit Code: 0x03
Hi,
I have similar error like bug #51, but on Ubuntu 12.04 & 16.04 AMD64. Ubuntu installed on IBM x3550 with 02:00.0 RAID bus controller [0104]: Adaptec AAC-RAID (Rocket) [9005:0286] (rev 02).
Only version 7.31.18856-1 works, newer 1:1.05.20942-1, 1:1.07.21229-1, 1:1.08.21375-1 and 1:2.02.22404-1 generate after arcconf GETCONFIG 1 -> Segmentation fault.
Do newer versions have any relevant features? If not, how can I "lock" to not update version 7.31.18856-1 to newer.
Hello,
I find that the current version of megacli does not report FANs that are present and working on a LSI SAS expander, behind a LSI 9266-8i card.
root@host:~# dpkg -l | grep megacli
ii megacli 8.04.07-1 amd64 LSI Logic MegaRAID SAS MegaCLI
root@host:~# /usr/sbin/megacli -EncInfo -aALL | grep Fan\ Status
Fan Status : Not Installed
Fan Status : Not Installed
Fan Status : Not Installed
Fan Status : Unknown
Fan Status : Unknown
Fan Status : Unknown
Fan Status : Unknown
Fan Status : Unknown
With the newer 8.07.07 version of MegaCLI I see correct info:
root@host:~# MegaCLI-8.07.07/MegaCli64 -EncInfo -aALL | grep Fan\ Status
Fan Status : Not Installed
Fan Status : Not Installed
Fan Status : Not Installed
Fan Status : OK
Fan Status : OK
Fan Status : OK
Fan Status : Unknown
Fan Status : Unknown
The version above came from http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.07.07_MegaCLI.zip but I think there may be a newer release as well.
sorry if I am wrong here, just trying to find a solution:
I have a Fujitsu TX1330M3 server with Debian stretch on it and plugged in a SAS controller card to control a HP Ultrium LTO3 drive:
02:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2008 [Falcon] (rev 03)
This card works fine with gentoo linux, it uses the megaraid_sas kernel module and in gentoo I automatically get the according tape device files (/dev/st0, /dev/nst0, etc). The card and the drive work fine there (doing backups etc).
In debian: no tape device files!
module "st" doesn't get loaded, if I do manually, no device files either
#dmesg
megaraid_sas 0000:02:00.0: Failed to init firmware
Do I miss some firmware files here?
Do I have to install some specific packages from your repo?
pls advise how to debug that issue, thanks!
I also started a thread on the amanda-users-ml:
https://www.mail-archive.com/[email protected]/msg49305.html
Hello,
it appears you have rebuilt/changed the packages in your repo without updating their versions; for example, i now have:
32899957 5360 -rw-r--r-- 2 root root 5486420 Jul 6 2015 pool/ce/61/3dm2_2.11.00.019+10.2.1+KB16625-1_amd64.deb
32113554 4852 -rw-r--r-- 1 root root 4964368 Oct 3 17:29 pool/b9/0a/3dm2_2.11.00.019+10.2.1+KB16625-1_amd64.deb
so same file, same exact version but different sizes (first line is from the wheezy repo, the second one if from the stretch one)
what's going on here?
when hw-raid support debian stretch?
Hi,
we have an unconfigured hotspare drive and megaclisas-status reports the RAID as not optimal.
This patch fixes it for me:
diff --git a/wrapper-scripts/megaclisas-status b/wrapper-scripts/megaclisas-status
index c212e03..891f6ba 100755
--- a/wrapper-scripts/megaclisas-status
+++ b/wrapper-scripts/megaclisas-status
@@ -756,7 +756,7 @@ if totalunconfdrivenumber:
arraydisk = returnUnconfDiskInfo(output,controllerid)
for array in arraydisk:
dbgprint('Disk c'+str(controllerid)+'uXpY status : ' + array[3])
- if array[3] not in [ 'Online', 'Unconfigured(good), Spun Up', 'JBOD' ]:
+ if array[3] not in [ 'Online', 'Unconfigured(good), Spun Up', 'JBOD','Hotspare, Spun Up' ]:
bad = True
nagiosbaddisk=nagiosbaddisk+1
else:
Not sure, if it could be 'Hotspare' only...
Best regards,
Dirk
Hello,
please change repository signing from SHA1 to SHA256. I get message:
..../Release.gpg: Signature by key 0073C11919A641464163F7116005210E23B3D3B4 uses weak digest algorithm (SHA1)
when using apt-get update
on Debian Stretch or Sid (I have apt 1.2.10 version).
I solve this warning by changing preferences of keys and adding --digest-algo SHA256
to gpg
command on my repository.
Thanks
The reason I am asking is that there is a difference in their output:
root@james:~# megaclisas-status
-- Controller informations --
-- ID | Model
c0 | LSI MegaRAID SAS 9260-4i
-- Arrays informations --
-- ID | Type | Size | Status | InProgress
c0u0 | RAID1 | 1818G | Optimal | None
-- Disks informations
-- ID | Model | Status
c0u0p0 | PN2134P6JLE8SPHGST HUS724020ALA640 MF6OAA70 | Online, Spun Up
c0u0p1 | PN2134P6JLJJETHGST HUS724020ALA640 MF6OAA70 | Online, Spun Up
root@james:~# megasasctl
a0 LSI MegaRAID SAS 9260-4i encl:1 ldrv:1 batt:good
a0d0 1862GiB RAID 1 1x2 optimal
a0e252s0 1863GiB a0d0 online
a0e252s1 1863GiB a0d0 online
I am much more interested in the second one as it is using megasasctl but I am unsure how to use this script and where to get a wrapper for it and how to set it to continuously run just like megaclisas-statusd
Ubuntu 16.04 here. Though I've seen issue #50. While it's not available, I've tried to install Debian 8 package which are often compatible with Ubuntu 16.04.
Steps to reproduce:
# echo "deb http://hwraid.le-vert.net/distrib jessie main" >> /etc/apt/sources.list
# wget -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add -
# apt-get update
Hit:1 http://mirrors.online.net/ubuntu xenial InRelease
Hit:2 http://mirrors.online.net/ubuntu xenial-updates InRelease
Get:3 http://mirrors.online.net/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:5 http://repositories.sensuapp.org/apt sensu InRelease
Hit:6 http://repositories.sensuapp.org/apt sensu Release
Ign:7 http://hwraid.le-vert.net/distrib jessie InRelease
Ign:8 http://hwraid.le-vert.net/distrib jessie Release
Ign:9 http://hwraid.le-vert.net/distrib jessie/main amd64 Packages
Ign:10 http://hwraid.le-vert.net/distrib jessie/main i386 Packages
Ign:12 http://hwraid.le-vert.net/distrib jessie/main all Packages
Ign:13 http://hwraid.le-vert.net/distrib jessie/main Translation-en_US
Ign:14 http://hwraid.le-vert.net/distrib jessie/main Translation-en
Ign:15 http://hwraid.le-vert.net/distrib jessie/main Translation-fr
Ign:9 http://hwraid.le-vert.net/distrib jessie/main amd64 Packages
Ign:10 http://hwraid.le-vert.net/distrib jessie/main i386 Packages
Ign:12 http://hwraid.le-vert.net/distrib jessie/main all Packages
Ign:13 http://hwraid.le-vert.net/distrib jessie/main Translation-en_US
Ign:14 http://hwraid.le-vert.net/distrib jessie/main Translation-en
Ign:15 http://hwraid.le-vert.net/distrib jessie/main Translation-fr
Hit:16 https://deb.nodesource.com/node_6.x xenial InRelease
Ign:9 http://hwraid.le-vert.net/distrib jessie/main amd64 Packages
Ign:10 http://hwraid.le-vert.net/distrib jessie/main i386 Packages
Ign:12 http://hwraid.le-vert.net/distrib jessie/main all Packages
Ign:13 http://hwraid.le-vert.net/distrib jessie/main Translation-en_US
Ign:14 http://hwraid.le-vert.net/distrib jessie/main Translation-en
Ign:15 http://hwraid.le-vert.net/distrib jessie/main Translation-fr
Ign:9 http://hwraid.le-vert.net/distrib jessie/main amd64 Packages
Ign:10 http://hwraid.le-vert.net/distrib jessie/main i386 Packages
Ign:12 http://hwraid.le-vert.net/distrib jessie/main all Packages
Ign:13 http://hwraid.le-vert.net/distrib jessie/main Translation-en_US
Ign:14 http://hwraid.le-vert.net/distrib jessie/main Translation-en
Ign:15 http://hwraid.le-vert.net/distrib jessie/main Translation-fr
Ign:9 http://hwraid.le-vert.net/distrib jessie/main amd64 Packages
Ign:10 http://hwraid.le-vert.net/distrib jessie/main i386 Packages
Ign:12 http://hwraid.le-vert.net/distrib jessie/main all Packages
Ign:13 http://hwraid.le-vert.net/distrib jessie/main Translation-en_US
Ign:14 http://hwraid.le-vert.net/distrib jessie/main Translation-en
Ign:15 http://hwraid.le-vert.net/distrib jessie/main Translation-fr
Err:9 http://hwraid.le-vert.net/distrib jessie/main amd64 Packages
404 Not Found [IP: 195.154.194.248 80]
Ign:10 http://hwraid.le-vert.net/distrib jessie/main i386 Packages
Ign:12 http://hwraid.le-vert.net/distrib jessie/main all Packages
Ign:13 http://hwraid.le-vert.net/distrib jessie/main Translation-en_US
Ign:14 http://hwraid.le-vert.net/distrib jessie/main Translation-en
Ign:15 http://hwraid.le-vert.net/distrib jessie/main Translation-fr
Fetched 204 kB in 2s (78.3 kB/s)
Reading package lists... Done
W: The repository 'http://hwraid.le-vert.net/distrib jessie Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://hwraid.le-vert.net/distrib/dists/jessie/main/binary-amd64/Packages 404 Not Found [IP: 195.154.194.248 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Hi, any information when there will be a release file for stretch?
Thank you :)
I have patched somewhat megaclisas-status 0.7 to do this:
-- Controller information --
-- ID | Model
c0 | LSI MegaRAID SAS 9271-8i (1024MB) FW: 23.32.0-0009
-- Arrays information --
-- ID | Type | Size | Status | InProgress
c0u0 | RAID-1 | 1817G | Optimal | None
c0u1 | RAID-5 | 10913G | Optimal | None
-- Disks information --
-- ID | Model | Status | Speed | Temperature | Slot ID | LSI Device ID
c0u0p0 | WD-WMC300422505WDC WD20EFRX-68AX9N0 80.00A80 | Online, Spun Up | 6.0Gb/s | 32C | ID: '[252:4]' | 17
c0u0p1 | WD-WMC300421817WDC WD20EFRX-68AX9N0 80.00A80 | Online, Spun Up | 6.0Gb/s | 32C | ID: '[252:5]' | 18
c0u1p0 | WD-WCC4E0346870WDC WD40EFRX-68WT0N0 80.00A80 | Online, Spun Up | 6.0Gb/s | 34C | ID: '[252:0]' | 15
c0u1p1 | WD-WCC4E0348247WDC WD40EFRX-68WT0N0 80.00A80 | Online, Spun Up | 6.0Gb/s | 33C | ID: '[252:1]' | 12
c0u1p2 | WD-WCC4E0346931WDC WD40EFRX-68WT0N0 80.00A80 | Online, Spun Up | 6.0Gb/s | 35C | ID: '[252:6]' | 14
c0u1p3 | WD-WCC4E0344739WDC WD40EFRX-68WT0N0 80.00A80 | Online, Spun Up | 6.0Gb/s | 34C | ID: '[252:7]' | 16
-- Unconfigured Disks information --
-- ID | Model | Status | Speed | Temperature | Slot ID | LSI Device ID
c0uXpY | WD-WMC4N1837213WDC WD30EFRX-68EUZN0 80.00A80 | Unconfigured(good), Spun down | 6.0Gb/s | 32C | ID: '[252:1]' | 0
[root@palanthas ~]# megacli -CfgLdAdd -r0[252:1] -a0
Adapter 0: Created VD 1
Adapter 0: Configured the Adapter!!
[...]
-- Disks information --
-- ID | Model | Status | Speed | Temperature | Slot ID | LSI Device ID
c0u0p0 | S1KRNEAFB01520M Samsung SSD 840 EVO 1TB mSATA EXT42B6Q | Online, Spun Up | 6.0Gb/s | 33C | ID: '[252:0]' | 1
c0u1p0 | WD-WMC4N1837213WDC WD30EFRX-68EUZN0 80.00A80 | Online, Spun Up | 6.0Gb/s | 32C | ID: '[252:1]' | 0
Hello:
wget -4 -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key
--> OK
wget -6 -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key
--> KO
Can you get IPv6 back ?
Hi,
I see this trying to fire up arcconf on CentOS 7:
Segmentation fault
linux-vdso.so.1 => (0x00007ffe6fa6f000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8c260f2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8c25ed6000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f8c25bcc000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8c258ca000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8c256b4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8c252f2000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8c262ff000)
CentOS Linux release 7.3.1611 (Core)
Linux blabla 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
We have a controller where array 0 was deleted leaving just array 1 & 2, reporting this for tracking.
PR incoming.
sudo megaclisas-status
-- Controller informations --
-- ID | Model
c0 | Cisco 12G SAS Modular Raid Controller
-- Arrays informations --
-- ID | Type | Size | Status | InProgress
Traceback (most recent call last):
File "/usr/sbin/megaclisas-status", line 166, in <module>
arrayinfo = returnArrayInfo(output,controllerid,arrayid)
File "/usr/sbin/megaclisas-status", line 103, in returnArrayInfo
if ldpdcount and (int(spandepth) > 1):
UnboundLocalError: local variable 'ldpdcount' referenced before assignment
sudo megacli -LDInfo -Lall -a0
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 1 (Target Id: 1)
Name :home
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
Size : 1.813 TB
Sector Size : 512
Is VD emulated : Yes
Parity Size : 371.597 GB
State : Optimal
Strip Size : 64 KB
Number Of Drives : 6
Span Depth : 1
Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
PI type: No PI
Is VD Cached: No
Virtual Drive: 2 (Target Id: 2)
Name :root
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 1.089 TB
Sector Size : 512
Is VD emulated : No
Mirror Data : 1.089 TB
State : Optimal
Strip Size : 1.0 MB
Number Of Drives : 2
Span Depth : 1
Default Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAheadNone, Cached, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
PI type: No PI
Is VD Cached: No
Exit Code: 0x00
hwraid does not currently have a package for Areca's CLI utility.
The cli is available here: http://www.areca.com.tw/support/s_linux/linux.htm
I'll have a hack at it in a day or 2.
On some systems (ubuntu 12.04, debian wheezy) after installed the new libc packages, the megaclisas-status not working:
13:40 root@xxx:/usr/sbin # ./megaclisas-status
-- Controller information --
-- ID | H/W Model | RAM | Temp | BBU | Firmware
c0 | LSI 2208 MegaRAID | 1024MB | 70C | Good | FW: 23.33.0-0025
-- Array information --
hangup, after i ctrl+c this message is going on:
^CTraceback (most recent call last):
File "./megaclisas-status", line 580, in
if re.match(r'^Virtual Drive:',line.strip()):
File "/usr/lib/python2.7/re.py", line 134, in match
def match(pattern, string, flags=0):
KeyboardInterrupt
With debug i see this:
forever :), after ctrl+c:
^CTraceback (most recent call last):
File "./megaclisas-status", line 580, in
if re.match(r'^Virtual Drive:',line.strip()):
KeyboardInterrupt
Please help me :) Thanks
I want to use megacli on the alpha architecture,Where can I find compileable source code, generate alpha schema binary files?Thank you
Hi,
Thank you for your work on this repo!
LSI have released a new (usable!) management tool that will most likely replace megacli in the future; StorCLI. The parameter-syntax reminds you very much of the syntax from tw_cli.
It would be nice if you included this tool into the repo.
http://www.lsi.com/support/Pages/Download-Results.aspx?keyword=storcli
Do you plan to release a repository for trusty (14.04)?
Thanks a lot.
Sorry if I write here, this isn't a bug, but I hope it will save time to other users.
Problem:
I got this error (italian)
E: Impossibile trovare un driver per il metodo /usr/lib/apt/methods/http
I checked my sources.list multiple times and it was fine.
I noticed tough that nano hightlighting didn't color all the string:
deb http://hwraid.le-vert.net/debian jessie main
The words 'jessie' and 'main' were white instead of red and violet.
I changed the LANG variable to report the error in english
export LANG='en_US'
Once I run 'nano /etc/apt/sources.list' I noticed there were "strange" characters, between 'deb' and 'http'.
Something like:
deb **^ ^** http://hwraid.le-vert.net/debian jessie main
So I understood the problem was about copy / paste from the Internet site!
So the solution is to delete those characters or manually type all the string.
0c:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS2004 PCI-Express Fusion-MPT SAS-2 [Spitfire] [1000:0070](rev 03)
from
IBM BladeCenter HS23
Please put up Ubuntu builds for trusty. Should be a simple 1:1 of precise for now?
This is available from e.g. https://www.broadcom.com/products/storage/host-bus-adapters/sas-9302-16e#downloads
Restarting the process results in a defunct/zombie process. It is eventually removed from the process list and is probably harmless, but it points out that the child process is not being clean up properly.
uname -a
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) x86_64 GNU/Linux
To recreate the situation:
systemctl restart megaraidsas-statusd
ps -A | grep mega
10503 ? 00:00:00 megaraidsas-sta
16302 ? 00:00:00 megaraidsas-sta
Hello,
Since the latest update I get segmentation faults. What do you need from me to debug?
Cheers,
Manu
Hi,
I need your help regarding an issue related with smartmontools apps.
I have a linux server (Debian GNU/Linux 8 (jessie), installed on a Supermicro 2U 6027R-E1R12L with a raid controller LSI.
root@pm03:~# lspci | egrep -i 'raid|adaptec'
03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)
On LSI I have 2 raid configuration:
root@pm03:~#_ smartctl --scan
/dev/sda_ -d scsi # /dev/sda, SCSI device
/dev/sdb_ -d scsi # /dev/sdb, SCSI device
/dev/bus/0_ -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0_ -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device
/dev/bus/0_ -d megaraid,2 # /dev/bus/0 [megaraid_disk_02], SCSI device
/dev/bus/0_ -d megaraid,3 # /dev/bus/0 [megaraid_disk_03], SCSI device
/dev/bus/0_ -d megaraid,4 # /dev/bus/0 [megaraid_disk_04], SCSI device
/dev/bus/0__ -d megaraid,5 # /dev/bus/0 [megaraid_disk_05], SCSI device
/dev/bus/0_ -d megaraid,6 # /dev/bus/0 [megaraid_disk_06], SCSI device
/dev/bus/0_ -d megaraid,7 # /dev/bus/0 [megaraid_disk_07], SCSI device
/dev/bus/0 -d megaraid,15 # /dev/bus/0 [megaraid_disk_15], SCSI device spare
issue - I have received an error log "SMART error (FailedReadSmartSelfTestLog) detected on host: xxx" (see the message logs).
This_ message was generated by the smartd daemon running on:
host_ name: XXXX
DNS_ domain: mydomain.int
The_ following warning/error was logged by the smartd daemon:
Device:_ /dev/bus/0 [megaraid_disk_08], Read SMART Self-Test Log Failed
Device_ info:
[SEAGATE_ ST2000NM0023 0004], lu id: 0x5000c500628f5dcf, S/N: Z1Y2C8G90000C5124838, 2.00 TB
For details see host's SYSLOG.
You can also use the smartctl utility for further investigation.
Another message will be sent in 24 hours if the problem persists._
This message was generated by the smartd daemon running on:
host name: pm03
DNS domain: mercury.int
The following warning/error was logged by the smartd daemon:
Device: /dev/bus/0 [megaraid_disk_15], Read SMART Self-Test Log Failed
Device info:
[SEAGATE ST2000NM0023 0004], lu id: 0x5000c500845a1abf, S/N: Z1X5VF2R0000C6095M9C, 2.00 TB
For details see host's SYSLOG.
You can also use the smartctl utility for further investigation.
Another message will be sent in 24 hours if the problem persists.
Another problem that I noticed after I have detect is that I cannot see in -- Disk information -- about the spare disk, using the command megaclisas-status && megasasctl
before
https://drive.google.com/open?id=0B5sUwIIchHUgUlA4UGwyZTZaSjQ
after
https://drive.google.com/open?id=0B5sUwIIchHUgMXBDRzExaXhZOE0
root@pm03:~# smartctl -a /dev/bus/0 -d megaraid,15
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.4.35-1-pve] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SEAGATE
Product: ST2000NM0023
Revision: 0004
Compliance: SPC-4
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Logical block size: 512 bytes
LU is fully provisioned
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000c500845a1abf
Serial number: Z1X5VF2R0000C6095M9C
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Fri Jan 13 13:54:06 2017 EET
SMART support is: Unavailable - device lacks SMART capability.
=== START OF READ SMART DATA SECTION ===
Current Drive Temperature: 0 C
Drive Trip Temperature: 0 C
Error Counter logging not supported
Device does not support Self Test logging
Thanks
Immediately after my last disk device, there is a device in the DISPLAY output delimited by "Device is a unknown device". It has all the same serial number and other attributes as a real disk, but it is a backplane (Dell r510).
So when the last append to the list is run, all of those attributes from the last disk have been written over by this "unknown device", not being one of the delimiters for to append previously seen data when it is not the last.
So I just added "Device is a unknown device" to the possible delimiters, the last disk and then the last backplane get put into the list returned by getDiskList() and the backplanes get filtered out anyway by not being mentioned in the array list.
See patch below
--- /usr/sbin/sas2ircu-status 2014-01-26 15:46:10.000000000 +0000
+++ sas2ircu-status 2015-10-03 03:47:48.542352893 +0000
@@ -95,7 +95,7 @@
slotid=''
realid=['','']
for line in res:
Since upgrading to Debian 8 (Jessie) megacli and megaclisas-status do not report any information and do not function.
lanrat@serv:~$ megaclisas-status
-- Controller informations --
-- ID | Model
-- Arrays informations --
-- ID | Type | Size | Status | InProgress
-- Disks informations
-- ID | Model | Status
lanrat@serv:~$ MegaCli -AdpAllInfo -aAll
Exit Code: 0x00
please excuse the lazy bug report:
not getting a response on IPv6.
wget -S http://hwraid.le-vert.net/ -O /dev/null
--2015-02-26 15:14:13-- http://hwraid.le-vert.net/
Resolving hwraid.le-vert.net... 2001:bc8:357c::1, 195.154.194.248
Connecting to hwraid.le-vert.net|2001:bc8:357c::1|:80... failed: Connection timed out.
Connecting to hwraid.le-vert.net|195.154.194.248|:80... connected.
HTTP request sent, awaiting response...
root@pve1:~# sas2ircu list
LSI Corporation SAS2 IR Configuration Utility.
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved.
Adapter Vendor Device SubSys SubSys
Index Type ID ID Pci Address Ven ID Dev ID
----- ------------ ------ ------ ----------------- ------ ------
0 SAS2004 1000h 70h 00h:01h:00h:00h 1000h 3010h
SAS2IRCU: Utility Completed Successfully.
root@pve1:~# sas2ircu 0 DISPLAY
LSI Corporation SAS2 IR Configuration Utility.
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved.
Read configuration has been initiated for controller 0
------------------------------------------------------------------------
Controller information
------------------------------------------------------------------------
Controller type : SAS2004
BIOS version : 7.39.02.00
Firmware version : 20.00.07.00
Channel description : 1 Serial Attached SCSI
Initiator ID : 0
Maximum physical devices : 255
Concurrent commands supported : 1720
Slot : 10
Segment : 0
Bus : 1
Device : 0
Function : 0
RAID Support : Yes
------------------------------------------------------------------------
IR Volume information
------------------------------------------------------------------------
IR volume 1
Volume ID : 286
Status of volume : Okay (OKY)
Volume wwid : 03b1af2ecb4eb1ec
RAID level : RAID10
Size (in MB) : 278472
Physical hard disks :
PHY[0] Enclosure#/Slot# : 2:0
PHY[1] Enclosure#/Slot# : 2:1
PHY[2] Enclosure#/Slot# : 2:2
PHY[3] Enclosure#/Slot# : 2:3
------------------------------------------------------------------------
Physical device information
------------------------------------------------------------------------
Initiator at ID #0
Device is a Enclosure services device
Enclosure # : 2
Slot # : 0
SAS Address : 5000e0c-e-36b1-200b
State : Standby (SBY)
Manufacturer : ESG-SHV.
Model Number : SCA HSBP M1.....
Firmware Revision : 2.17
Serial No : ESGSHVqa217
GUID : N/A
Protocol : SAS
Device Type : Enclosure services device
Device is a Hard disk
Enclosure # : 2
Slot # : 0
SAS Address : 5000cca-0-1121-ea39
State : Optimal (OPT)
Size (in MB)/(in sectors) : 140205/287140276
Manufacturer : HITACHI
Model Number : HUS153014VLS300
Firmware Revision : A410
Serial No : JNVLN6LC
GUID : 5000cca01121ea38
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 2
Slot # : 1
SAS Address : 5000cca-0-1123-4ae5
State : Optimal (OPT)
Size (in MB)/(in sectors) : 140205/287140276
Manufacturer : HITACHI
Model Number : HUS153014VLS300
Firmware Revision : A410
Serial No : JNVMDPPC
GUID : 5000cca011234ae4
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 2
Slot # : 2
SAS Address : 5000cca-0-1123-4d75
State : Optimal (OPT)
Size (in MB)/(in sectors) : 140205/287140276
Manufacturer : HITACHI
Model Number : HUS153014VLS300
Firmware Revision : A410
Serial No : JNVMDVZC
GUID : 5000cca011234d74
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 2
Slot # : 3
SAS Address : 5000cca-0-1126-c97d
State : Optimal (OPT)
Size (in MB)/(in sectors) : 140205/287140276
Manufacturer : HITACHI
Model Number : HUS153014VLS300
Firmware Revision : A410
Serial No : JNVPA8LC
GUID : 5000cca01126c97c
Protocol : SAS
Drive Type : SAS_HDD
Device is a Hard disk
Enclosure # : 2
Slot # : 4
SAS Address : 5000cca-0-1121-7f45
State : Hot Spare (HSP)
Size (in MB)/(in sectors) : 140205/287140276
Manufacturer : HITACHI
Model Number : HUS153014VLS300
Firmware Revision : A410
Serial No : JNVLE2TC
GUID : 5000cca011217f44
Protocol : SAS
Drive Type : SAS_HDD
------------------------------------------------------------------------
Enclosure information
------------------------------------------------------------------------
Enclosure# : 1
Logical ID : 500062b0:002e2b80
Numslots : 4
StartSlot : 0
Enclosure# : 2
Logical ID : 5000e0ce:36b12000
Numslots : 9
StartSlot : 0
------------------------------------------------------------------------
SAS2IRCU: Command DISPLAY Completed Successfully.
SAS2IRCU: Utility Completed Successfully.
sas2ircu 0 STATUS
LSI Corporation SAS2 IR Configuration Utility.
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved.
Background command progress status for controller 0...
IR Volume 1
Volume ID : 286
Current operation : None
Volume status : Enabled
Volume state : Optimal
Volume wwid : 03b1af2ecb4eb1ec
Physical disk I/Os : Not quiesced
SAS2IRCU: Command STATUS Completed Successfully.
SAS2IRCU: Utility Completed Successfully.
root@pve1:~# sas2ircu-status
-- Controller informations --
-- ID | Model
c0 | SAS2004
-- Arrays informations --
-- ID | Type | Size | Status
c0u0 | RAID10 | 278G | Okay (OKY)
-- Disks informations
-- ID | Model | Status
c0u0p0 | SCA HSBP M1..... (ESGSHVqa217) | Standby (SBY)
c0u0p1 | HUS153014VLS300 (JNVLN6LC) | Optimal (OPT)
c0u0p2 | HUS153014VLS300 (JNVMDPPC) | Optimal (OPT)
c0u0p3 | HUS153014VLS300 (JNVMDVZC) | Optimal (OPT)
c0u0p4 | HUS153014VLS300 (JNVPA8LC) | Optimal (OPT)
There is at least one disk/array in a NOT OPTIMAL state.
As you can see, the presence of a hot spare, but the script sas2ircu-status it does not show, and gives incorrect status of the array.
megaclisas-statusd checks every 10 minutes for a state change, but should only email every 2 hours for a status change. One of our disks failed, so we should be getting emailed every 2 hours now. However, because the temperature of the disks are constantly changing by one or two degrees, the text result of megaclisas-status changes slightly every 10 minutes, so megaclisas-statusd emails every time.
When run from cron (and how else would one run it?) megaclisas-status returns
# This script requires Administrator privs! e.g :
sudo /usr/sbin/megaclisas-status
Line 42 should read
if os.getenv('LOGNAME') != 'root':
instead of
if os.getenv('USER') != 'root':
Hi all,
thanks for maintaining this repository and scripts, it's a life-saver :)
That being said, I seem to have an issue with my JBOD setup, (which might be a regression, I'm not sure)
Controller: PERC H730P Mini
os: debian jessie, 64bit
version(s) installed: megacli 8.07.14-1, megaclisas-status 0.15, daemon 0.6.4, python 2.7.9
Edit: arrays are consecutive (0-24)
# megaclisas-status
-- Controller information --
-- ID | H/W Model | RAM | Temp | BBU | Firmware
c0 | PERC H730P Mini | 2048MB | 48C | Good | FW: 25.4.1.0004
-- Array information --
Traceback (most recent call last):
File "/usr/sbin/megaclisas-status", line 637, in <module>
arrayinfo = returnArrayInfo(output, controllerid, ldid, arrayindex)
File "/usr/sbin/megaclisas-status", line 369, in returnArrayInfo
NestedLDTable[int(controllerid)][int(arrayindex)] = False
IndexError: list assignment index out of range
I've also tried a few versions from @ElCoyote27 (including latest), and it also fails.
Interestingly enough, --debug says it fails with logical drive 16 (out of 24)?!
# megaclisas-status --debug
...
-- Array information --
# DEBUG : Not a Cached value: /usr/sbin/megacli -LDInfo -lall -a0 -NoLog
# DEBUG : Not a Cached value: /usr/sbin/megacli -LDInfo -l0 -a0 -NoLog
...
# DEBUG : Not a Cached value: /usr/sbin/megacli -LDInfo -l24 -a0 -NoLog
# DEBUG : Got Cached value: /usr/sbin/megacli -LDInfo -l0 -a0 -NoLog
# DEBUG : RAID Level: 1 Span Depth: 1 Disk Per Span: 0 Raid Type: RAID-1
............
# DEBUG : Got Cached value: /usr/sbin/megacli -LDInfo -l16 -a0 -NoLog
Traceback (most recent call last):
File "/usr/sbin/megaclisas-status", line 637, in <module>
arrayinfo = returnArrayInfo(output, controllerid, ldid, arrayindex)
File "/usr/sbin/megaclisas-status", line 369, in returnArrayInfo
NestedLDTable[int(controllerid)][int(arrayindex)] = False
IndexError: list assignment index out of range
Thanks for looking into it,
camypaj
Hi!
The release file for Ubuntu Precise says:
Architectures: i386 amd64
Components: hwraid
Date: Thu, 22 May 2014 10:22:39 UTC
Label: hwraid.le-vert.net
Origin: hwraid.le-vert.net
Suite: precise
The component should be main
. Some tool (aptly) seem to choke on this.
Hiya,
First off - thanks for an AWESOME repo!
Could you add code tags to the https://hwraid.le-vert.net/wiki/DebianPackages page around the sources.list examples at the top because that little icon between the deb and http throws off copy & pastes of the URL
copying the above link results in the following bytes appearing in the text when pasted (the first deb line is manually typed. The second, with highlighted extra bytes, is copy and pasted from wiki page)
Thanks,
Alex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.