Verificare raid scsi controller perc 4
Verificare raid scsi controller perc 4
– Download
mkdir /home/megarc cd /home/megarc wget https://blog.panait.us/wp-content/uploads/2014/02/ut_linux_megarc_1.11.zip unzip ut_linux_megarc_1.11.zip chmod -R 777 ../megarc*
– Acum verificăm
/home/megarc/megarc -dispCfg -a0
Finding Devices On Each MegaRAID Adapter…
Scanning Ha 0, Chnl 1 Target 15**********************************************************************
Existing Logical Drive Information
By LSI Logic Corp.,USA
**********************************************************************
[Note: For SATA-2, 4 and 6 channel controllers, please specify
Ch=0 Id=0..15 for specifying physical drive(Ch=channel, Id=Target)]Logical Drive : 0( Adapter: 0 ): Status: OPTIMAL
—————————————————
SpanDepth :01 RaidLevel: 5 RdAhead : Adaptive Cache: DirectIo
StripSz :064KB Stripes : 5 WrPolicy: WriteBackLogical Drive 0 : SpanLevel_0 Disks
Chnl Target StartBlock Blocks Physical Target Status
—- —— ———- —— ———————-
0 00 0x00000000 0x043bc000 ONLINE
0 01 0x00000000 0x043bc000 ONLINE
0 02 0x00000000 0x043bc000 ONLINE
0 03 0x00000000 0x043bc000 ONLINE
0 04 0x00000000 0x043bc000 ONLINEHotSpare Disk at Channel No. 0 and ID No. 5
– Dacă vreți să fiți și anunțați pe mail pentru a urmări dacă va cade vre-un disk, facem și un script care rulează automat în fiecare duminică dimineața și trimite pe mail rezultatul:
– modificati fisierul /home/megarc/megarc a reflecte calea adevarata (ultima linie):
# Execute the megarc binary with the cmd line parameters
/home/megarc/megarc.bin $*
– schimbați textul scris cu roșu cu ce aveți voi:
vi /home/raidtest
– și introduceți în el:
/home/megarc/megarc -dispCfg -a0 > /home/raidstatusmail -s "raid status server cutare, `date +%F`" adresata@mail.com < /home/raidstatus
– adăugați și în crontab
crontab -e 23 4 * * 0 /home/raidtest
-that’s all folks…
Ultimele știri scsi:
- 12 Healthiest Bottled Water Options Available in Stores
- Abaddon Is a Place and a Figure, Both Chaotic and Destructive
- Amphibians vs. Reptiles: Do You Know the Actual Difference?
- The Richest Kid in the World Is Worth $5B — Which Royal Is It?
- The Divine Feminine in Mythology, Religion, and Spiritual Practices
Leave a Reply
Want to join the discussion?Feel free to contribute!