I‘ve Adaptec RAID 1 set via 5405 PCI card. I know how to get check the health of Adaptec RAID array under Linux, but how do I find information about my RAID card, RAID status, disk failure and other information via command line?
aac is Adaptec AdvancedRAID Controller driver under FreeBSD operating system that works with HP NetRAID, IBM ServeRAID, Sun STK RAID, Dell PERC / CERC, and Adaptec SCSI / SATA systems. The Adaptec AAC family of SCSI Ultra2, Ultra160, and Ultra320, SATA and SAS RAID controllers.
Find Out Information About Your RAID Device
Type the following commands:
# dmesg | grep -i RAID
Sample Outputs:
aac0: mem 0xe8000000-0xe81fffff irq 16 at device 0.0 on pci6 aacd0: on aac0
# pciconf -l | grep -i aac
Output:
aac0@pci0:6:0:0: class=0x010400 card=0x02d19005 chip=0x02859005 rev=0x09 hdr=0x00
FreeBSD arcconf
arcconf is command Line Interface for the Adaptec SCSI RAID family of RAID controllers, used to configure and manage connected storage devices. It can be used to get detailed information about RAID configuration including health status.
FreeBSD Install arcconf
Type the following commands:
# portsnap fetch update
# cd /usr/ports/sysutils/arcconf
# make install clean && rehash
How Do I Use arcconf To Information About The Health Of My Adaptec RAID Array?
Type the following command at a shell prompt to get the information controller # 1:
# /usr/local/sbin/arcconf getconfig 1
Sample Outputs:
Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 5405 Controller Serial Number : 8C4310BD20D Physical Slot : 2 Temperature : 58 C/ 136 F (Normal) Installed memory : 256 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 : 1/0/0 -------------------------------------------------------- Controller Version Information -------------------------------------------------------- BIOS : 5.2-0 (16501) Firmware : 5.2-0 (16501) Driver : 5.2-0 (16501) Boot Flash : 5.2-0 (16501) -------------------------------------------------------- Controller Battery Information -------------------------------------------------------- Status : Optimal Over temperature : No Capacity remaining : 99 percent Time remaining (at current draw) : 3 days, 0 hours, 52 minutes ---------------------------------------------------------------------- Logical device information ---------------------------------------------------------------------- Logical device number 0 Logical device name : RAID1-A RAID level : 1 Status of logical device : Optimal Size : 285686 MB Read-cache mode : Enabled Write-cache mode : Enabled (write-back) Write-cache setting : Enabled (write-back) when protected by battery Partitioned : Yes Protected by Hot-Spare : No Bootable : Yes Failed stripes : No Power settings : Disabled -------------------------------------------------------- Logical device segment information -------------------------------------------------------- Segment 0 : Present (0,0) 3LM44BDA00009839M228 Segment 1 : Present (0,1) 3LM4C6B000009841PEW9 ---------------------------------------------------------------------- Physical Device information ---------------------------------------------------------------------- Device #0 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SAS 3.0 Gb/s Reported Channel,Device(T:L) : 0,0(0:0) Reported Location : Connector 0, Device 0 Vendor : SEAGATE Model : ST3300655SS Firmware : 0004 Serial number : 3LM44BDA00009839M228 World-wide name : 5000C50006EDAD74 Size : 286102 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No Device #1 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SAS 3.0 Gb/s Reported Channel,Device(T:L) : 0,1(1:0) Reported Location : Connector 0, Device 1 Vendor : SEAGATE Model : ST3300655SS Firmware : 0004 Serial number : 3LM4C6B000009841PEW9 World-wide name : 5000C50006EF88D8 Size : 286102 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No Command completed successfully.
🐧 4 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Hey agreeable Information. It is much of use Soon you Apply it. Much obliging. Mahalo.
So many thanks Vivek. Great post. It is just what I needed. I will sleep better knowing I can monitor my array
Hi
This is exactly what I was looking for but I am getting no results from the dmesg or pciconf commands.
When I run arcconf I get this:
bsd# /usr/local/sbin/arcconf getconfig 1
Controllers found: 0
Invalid controller number.
I use FreeBSD 8.2 and have two RAID arrays. One is a 2ch Adaptec SCSI controller with two disks attached. The other is a Highpoint Rocketraid 2320 with 8 SATA2s attached.
Is the advice above still relevant on 8.2? I would expect so.
Thanks :)
Thank you very much, it was really helpful in maintaining the functioning of a Server FreeBSD 8.2-STABLE amd64 with a UPTIME of 1675 days !!!
Have a nice day …