Monday, February 10, 2025

How to add hot spare on existing Adaptec RAID array using arcconf

Background


Adaptec Raid 7805 hardware raid controller card is installed on a x64 PC. I'd like to run Proxmox VE 8 (flavor of Debian). I failed to run Adaptec MaxView web user interface on Proxmox 8 but the commandline program arcconf works flawlessly on Proxmox.

Total 9x 4TB harddrives are installed on a SAS expander enclosure.

8 drives are to be a member of RAID 10. Remaining 1 drive is to be used as a hot spare.

Potentially booting Proxmox from Adaptec is possible but I decided to boot Proxmox from two onboard SATA SSDs ZFS mirror.

It seems there is no step-by-step guide on this topic on Internet 😀

Setup procedure

 

8 drives RAID 10 array is created using legacy BIOS CTRL-A Adaptec utility before booting OS. Press ctrl-a during computer startup to show Ctrl-a Adaptec utility.

Install Proxmox VE.

Start Proxmox.

Download Adaptec ARCCONF Command Line Utility on Adaptec Raid 7805 storage manager downloads. There are many methods to do this, I downloaded it using Windows PC and send the file to Proxmox PC using Tera term ssh connection, [File][SSH SCP]


Finding channel number and device number of the spare drive


Single Adaptec raid controller is installed. on this case, as far as I know,  controller number is always 1.

Getting device number of the spare drive of raid controller #1:


# ./arcconf getconfig 1

 

Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                        : Optimal
   Controller Mode                          : Default/RAID
   Channel description                      : SAS/SATA
   Controller Model                         : Adaptec ASR7805
   Controller Serial Number                 : 3A12130E56E
   Physical Slot                            : 3
   Temperature                              : 73 C/ 163 F (Normal)
   Installed memory                         : 1024 MB
   Copyback                                 : Disabled
   Background consistency check             : Enabled
   Automatic Failover                       : Enabled
   Global task priority                     : High
   Performance Mode                         : Default/Dynamic
   Host bus type                            : PCIe
   Host bus speed                           : 8000 MHz
   Host bus link width                      : 8 bit(s)/link(s)
   Stayawake period                         : Disabled
   Spinup limit internal drives             : 1
   Spinup limit external drives             : 1
   Defunct disk drive count                 : 0
   Logical devices/Failed/Degraded          : 1/0/0
   NCQ status                               : Enabled
   Statistics data collection mode          : Enabled
   --------------------------------------------------------
   Controller Version Information
   --------------------------------------------------------
   BIOS                                     : 7.5-0 (32118)
   Firmware                                 : 7.5-0 (32118)
   Driver                                   : 1.2-1 (50983)
   Boot Flash                               : 7.5-0 (32118)

   --------------------------------------------------------
   Controller Cache Backup Unit Information
   --------------------------------------------------------

    Overall Backup Unit Status              : Ready

         Backup Unit Type                   : AFM-700/700LP
         Non-Volatile Storage Status        : Ready
         Supercap Status                    : Ready

         -----------------------------------
         Supercap Information
         -----------------------------------
         Current Temperature                : 24 deg C
         Threshold Temperature              : 51 deg C
         Life-time Temperature Recorded
         (Min/Max)                          : 8 deg C/ 47 deg C

         Voltage(Present/Max)               : 4918 mV/ 5302 mV
         Life-time Max Voltage Recorded     : 5432 mV

         Current Drawn(Present/Max)         : -9 mA/ 560 mA
         Health                             : 100 percent
         Charge Level                       : 100 percent
         Estimated Life-time                : 5 Years, 0 Month
         Serial Number                      : 3A161D15549

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : Raid10
   Block Size of member drives              : 512 Bytes
   RAID level                               : 10
   Status of logical device                 : Optimal
   Size                                     : 15257590 MB
   Parity space                             : 15257600 MB
   Stripe-unit size                         : 256 KB
   Read-cache setting                       : Enabled
   Read-cache status                        : On
   Write-cache setting                      : On when protected by battery/ZMM
   Write-cache status                       : On
   Partitioned                              : No
   Protected by Hot-Spare                   : No
   Bootable                                 : Yes
   Failed stripes                           : No
   Power settings                           : Enabled
   Slow down after(Minutes)                 : 30m
   Power off after(Minutes)                 : 1h
   Verify after(Hours)                      : 24h
   Power State                              : Active
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Group 0, Segment 0                       : Present (Controller:1,Enclosure:0,Slot:12)      WD-WCC7K1XV444P
   Group 0, Segment 1                       : Present (Controller:1,Enclosure:0,Slot:16)      WD-WCC7K4SLFCLU
   Group 1, Segment 0                       : Present (Controller:1,Enclosure:0,Slot:17)      WD-WCC7K6FVPTR7
   Group 1, Segment 1                       : Present (Controller:1,Enclosure:0,Slot:18)      WD-WCC7K2LJ0YF3
   Group 2, Segment 0                       : Present (Controller:1,Enclosure:0,Slot:19)      WD-WCC7K2NH509H
   Group 2, Segment 1                       : Present (Controller:1,Enclosure:0,Slot:20)             ZGY58L8C
   Group 3, Segment 0                       : Present (Controller:1,Enclosure:0,Slot:21)      WD-WCC7K4FJFJJY
   Group 3, Segment 1                       : Present (Controller:1,Enclosure:0,Slot:22)      WD-WCC7K1NE95P4


----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
      Device #0
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,44(44:0)
         Reported Location                  : Enclosure 0, Slot 12
                  Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K1XV444P
         World-wide name                    : 50014EE267ADB7A7
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #1
         Device is a Hard drive
         State                              : Raw (Pass Through)
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,45(45:0)
         Reported Location                  : Enclosure 0, Slot 13
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : TOSHIBA MN08ACA1
         Firmware                           : 0601
         Serial number                      : Y1N0A0CXFW4G
         World-wide name                    : 5000039B48DAC90B
         Reserved Size                      : 0 KB
         Used Size                          : 0 MB
         Unused Size                        : 15259648 MB
         Total Size                         : 15259648 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
         NCQ status                         : Enabled
      Device #2
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,48(48:0)
         Reported Location                  : Enclosure 0, Slot 16
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
        Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K4SLFCLU
         World-wide name                    : 50014EE267ADC550
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #3
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,49(49:0)
         Reported Location                  : Enclosure 0, Slot 17
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K6FVPTR7
         World-wide name                    : 50014EE2BD01B094
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #4
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,50(50:0)
         Reported Location                  : Enclosure 0, Slot 18
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K2LJ0YF3
:        World-wide name                    : 50014EE212569CFA
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #5
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,51(51:0)
         Reported Location                  : Enclosure 0, Slot 19
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K2NH509H
         World-wide name                    : 50014EE2125694D1
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #6
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,52(52:0)
         Reported Location                  : Enclosure 0, Slot 20
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : ST4000VN008-2DR1
         Firmware                           : SC60
         Serial number                      : ZGY58L8C
         World-wide name                    : 5000C500B68A16CF
         Reserved Size                      : 1072920 KB
        Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #7
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,53(53:0)
         Reported Location                  : Enclosure 0, Slot 21
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K4FJFJJY
         World-wide name                    : 50014EE21256970B
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #8
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,54(54:0)
         Reported Location                  : Enclosure 0, Slot 22
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K1NE95P4
         World-wide name                    : 50014EE212587634
         Reserved Size                      : 1072920 KB
         Used Size                          : 3814400 MB
         Unused Size                        : 64 KB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #9
         Device is a Hard drive
         State                              : Ready
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 6.0 Gb/s
         Reported Channel,Device(T:L)       : 0,55(55:0)
         Reported Location                  : Enclosure 0, Slot 23
         Reported ESD(T:L)                  : 2,0(0:0)
         Vendor                             : ATA
         Model                              : WDC WD40EZRZ-00G
         Firmware                           : 80.00A80
         Serial number                      : WD-WCC7K1YK8283
         World-wide name                    : 50014EE2BD039777
         Reserved Size                      : 1072920 KB
         Used Size                          : 0 MB
         Unused Size                        : 3814400 MB
         Total Size                         : 3815447 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
         NCQ status                         : Enabled
      Device #10
         Device is an Enclosure services device
         Reported Channel,Device(T:L)       : 2,0(0:0)
         Enclosure ID                       : 0
         Type                               : SES2
         Vendor                             : ADAPTEC
         Model                              : AEC-82885T
         Firmware                           : B059
         Status of Enclosure services device
            Fan 1 status                    : 0 rpm (Not supported)
            Fan 2 status                    : 0 rpm (Not supported)
            Fan 3 status                    : 0 rpm (Not supported)
            Fan 4 status                    : 0 rpm (Not supported)
            Power supply 1 status           : Optimal
            Power supply 2 status           : Optimal
            Temperature Sensor Status 1     : Unknown
            Temperature Sensor Status 2     : Unknown
            Speaker status                  : Off


Command completed successfully.


Found the spare drive is 

  • Device 9 
  • CHANNEL# 0
  • DEVICE# 55

The report above is lengthy and a bit confusing but device number we need is 55.


RAID 10 array logical device number LD# is 0

ASR-7805 raid CONTROLLER# is 1

 

Executing hot spare adding command

 

Hot spare adding command syntax is 

# ./arcconf setstate CONTROLLER# device CHANNEL# DEVICE# hsp logicaldrive LD#

 

Therefore,

# ./arcconf setstate 1 device 0 55 hsp logicaldrive 0
Controllers found: 1

Command completed successfully.

 

Hot spare drive is successfully added onto the RAID 10 array.

































 

 

 

No comments:

Post a Comment