Aacraid monitoring
Материал из noname.com.ua
Adaptec Raid Monitoring
После года эксплуотации мне пришла в голову мысль, что никак кроме как по состоянию "лампочек" я не узнаю, живые ли винты в рейде. А их у меня аж 2, в шасси от SuperMicro
04:01.0 RAID bus controller: Adaptec AAC-RAID (rev 02) Subsystem: Adaptec ASR-4000 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+ Stepping+ SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 32 (250ns min, 250ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at d8200000 (64-bit, non-prefetchable) [size=2M] Region 2: Memory at d8000000 (32-bit, non-prefetchable) [size=2M] Region 4: Memory at c0000000 (32-bit, prefetchable) [size=256M] Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable- Address: 0000000000000000 Data: 0000 Capabilities: [e0] PCI-X non-bridge device Command: DPERE- ERO- RBC=512 OST=4 Status: Dev=04:01.0 64bit+ 133MHz+ SCD- USC- DC=bridge DMMRBC=1024 DMOST=4 DMCRS=16 RSCEM- 266MHz- 533MHz- Kernel driver in use: aacraid
# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit multilib rpm versionator DESCRIPTION="Storage manager for Adaptec RAID controller" HOMEPAGE="http://www.adaptec.com/en-US/downloads/" LICENSE="Adaptec" SLOT="0" KEYWORDS="~amd64" IUSE="X" RESTRICT="mirror" SRC_URI_BASE="http://download.adaptec.com/raid/storage_manager" SRC_URI_amd64="${SRC_URI_BASE}/${PN}_linux_x64_v${PV}.rpm" SRC_URI="amd64? ( ${SRC_URI_amd64} )" RDEPEND="sys-libs/libstdc++-v3 !=sys-devel/gcc-3* X? ( dev-java/sun-jdk:1.5[X] ) !X? ( dev-java/sun-jdk:1.5 )" S="${WORKDIR}/usr/StorMan" src_unpack() { rpm_src_unpack } src_configure() { # binpkg - nothing to do here :; } src_compile() { # binpkg - nothing to do here :; } src_install() { if use X ; then cd "${S}" || die insinto /opt/StorMan doins index.html *.jar *.pps *.so # StorMan needs the help inside of /opt/StorMan doins -r help into /opt dobin "${FILESDIR}"/StorMan.sh dosed "s:%LIBDIR%:/usr/$(get_libdir):" /opt/bin/StorMan.sh dobin "${FILESDIR}"/StorAgnt.sh dosed "s:%LIBDIR%:/usr/$(get_libdir):" /opt/bin/StorAgnt.sh dosed 's:\(\.log=\):\1/var/log:g' /opt/StorMan/RaidLog.pps fi into /opt/StorMan dobin {arc,hr}conf dosym ../StorMan/bin/arcconf /opt/bin/arcconf dosym ../StorMan/bin/hrconf /opt/bin/hrconf dodoc README.TXT }