Notes:
CentOS7 would be: systemctl stop nwappliance.service && systemctl stop nwconcentrator.service
Steps for Replacing Single Disk
Use nwraidutil.pl to confirm Adapter and whether disk is on-board the appliance head unit or on a DAC
nwraidutil.pl - How to Download and Use the RSA NetWitness RAID Utility
Note 1: In RSA NetWitness 11.x, a version of nwraidutil.pl has been included in rsa-sa-tools RPM which installs to /opt/rsa/saTools/nwraidutil.pl. This may not be the newest version of this script.
Note 2: In RSA NetWitness 11.3 above, nwraidutil.pl has been deprecated by /opt/rsa/saTools/nwraidtool.py which uses perccli instead of MegaCli64. In this case, You can find hard disk drive replacement guide in https://community.rsa.com/docs/DOC-57956.
Record the enclosure number and the slot number of the disk to be replaced if not already known, for example, Enclosure 15 Slot 2 is referred to as [15:2] in commands below.
Please see Example 2 in the notes below.
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv[ENCLOSURE:SLOT] -a<adapter_num>
Example - Replacing the 14th disk in 1st DAC Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv[15:13] -a1 Example Output: Adapter: 1: EnclId-15 SlotId-13 is marked Offline. Exit Code: 0x00Disk state may change to (U) for Unconfigured.
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PdMarkMissing -physdrv[ENCLOSURE:SLOT] -a<adapter_num>
Example - Replacing the 14th disk in 1st DAC Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PdMarkMissing -physdrv[15:13] -a1 Example Output: Adapter: 1: EnclId-15 SlotId-13 is marked Missing. Exit Code: 0x00
Note: This does not need to be done if the disk is not currently part of a VD and so does not show as (O) in Logical Disk Information.
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PdPrpRmv -physdrv[ENCLOSURE:SLOT] -a<adapter_num>
Example - Replacing the 14th disk in 1st DAC Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PdPrpRmv -physdrv[15:13] -a1 Example Output: Prepare for removal Success Exit Code: 0x00
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv[ENCLOSURE:SLOT] -a<adapter_num>
Example - Watching rebuild of hotspare to member of VD Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv[15:14] -a1 Example Output: Rebuild Progress on Device at Enclosure 15, Slot 14 Completed 3% in 7 Minutes. Exit Code: 0x00
Start Flashing a Drives Amber LED: (you may need to remove DAC faceplate to properly see drive LEDs) /opt/MegaRAID/MegaCli/MegaCli64 -PdLocate -start -physdrv[ENCLOSURE:SLOT] -a<adapter_num>
Stop Flashing a Drives LED: /opt/MegaRAID/MegaCli/MegaCli64 -PdLocate -stop -physdrv[ENCLOSURE:SLOT] -a<adapter_num>
This is optional if Step4 was skipped or failed but physical disk status shows as (U) - Unconfigured.
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PdGetMissing -a<adapter_num>
Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PdGetMissing -a1 Example Output 1: Adapter 1 - No Missing Drive is Found. Exit Code: 0x00 Example Output 2: Adapter 1 - Missing Physical drives No. Array Row Size Expected 1 1 13 139392 MB Exit Code: 0x00
If the output shows "No Missing Drive is Found" then can skip Step 10.
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv[ENCLOSURE:SLOT] -Array<N> -row<N> -a<adapter_num> Note: Arrays start a 0 so first array is Array0 Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv[15:13] -Array1 -row13 -a1 Example Output: Adapter: 1: Missing PD at Array 1, Row 13 is replaced. Exit Code: 0x00
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 -PDOnline -PhysDrv[ENCLOSURE:SLOT] -a<adapter_num> Example Command: /opt/MegaRAID/MegaCli/MegaCli64 -PDOnline -PhysDrv[15:13] -a1 Example Output: EnclId-15SlotId-13 state changed to OnLine. Exit Code: 0x00
Example Output: 15 14 (U) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKNKHTK
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 pdhsp set enclaffinity physdrv[ENCLOSURE:SLOT] -a<adapter_num>After running this command disk status will show as GEI.
For disks from enclosures after the 1st DAC, it is usually recommended to configure hotspare as Virtual Disk dedicated hotspare:
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 pdhsp set dedicated Array<N> physdrv[ENCLOSURE:SLOT] –a<adapter_num>
Example: Setting 14th SATA disk in the 1st DAC of a packet concentrator as VD dedicated hotspare /opt/MegaRAID/MegaCli/MegaCli64 pdhsp set dedicated Array1 physdrv[15:13] -a1After running this command disk status will show as ID-X. Above example creates a hotspare for 2nd VD (Array1), and so disk status will show as ID-1.
Example Status in nwraidutil.pl output (script version prior to 2015.08.10):
15 14 (?) 0 2.728 TB SEAGATE ST3000NXCLAR3000GS18Z1Y1H6A1
Example Status in nwraidutil.pl output (script version 2015.08.10 and later):
15 14 (C) 0 2.728 TB SEAGATE ST3000NXCLAR3000GS18Z1Y1H6A1
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 adpeventlog getsinceshutdown –f <output_filename.log> –a<adapter_num>
Example Command: /opt/MegaRAID/MegaCli/MegaCli64 adpeventlog getsinceshutdown –f raid_events_since_boot.log –a1See Example 3 in Notes below for an example of raid adapter event log.
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 pdcpybk showprog physdrv[ENCLOSURE:SLOT] –a<adapter_num>
Example Command: /opt/MegaRAID/MegaCli/MegaCli64 pdcpybk showprog physdrv[15:13] -a1 Example Output: Copyback Progress on Device at Enclosure 15, Slot 13 Completed 5% in 21 minutes Exit Code: 0x00
Syntax: /opt/MegaRAID/MegaCli/MegaCli64 pdcpybk stop physdrv[ENCLOSURE:SLOT] –a<adapter_num>
Example Command: /opt/MegaRAID/MegaCli/MegaCli64 pdcpybk stop physdrv[15:13] -a1
/opt/MegaRAID/MegaCli/MegaCli64for
/opt/MegaRAID/CmdTool2/CmdTool2
------------------------ Logical Disk Information ------------------------ Physical Drive State Legend ------------------------------------------------------------------------------------- B Unconfigured(Bad) O Online D Dedicated Hotspare and associated virtual drive number R Rebuild E Hotspare prefers same enclosure S Solid-State Drive F Foreign U Unconfigured(Good) G Global hotspare X Offline I Hotspare is revertible ! Failed M Missing ? Unknown state ------------------------------------------------------------------------------------- NOTE: 'E' does not prohibit a hotspare from being used in another enclosure, it is merely a preference Logical Drive State Legend ------------------------------------------------ D Degraded X Offline O Optimal ! Failed P Partially Degraded ? Unknown state R Rebuild ------------------------------------------------ Adapter: 0 - PERC H710P Mini Virtual Disk: 0 (O) - Found 2 of 2 {Raid Level 1, 136.125 GB, 128 KB Stripe Size, WriteBack, ReadAdaptive, Cached, Write Cache OK if Bad BBU} PD: 0 Enclosure: 32 Slot: 0 (O) 136.732 GB SEAGATE ST9146853SS YS0A6XM3H6HP PD: 1 Enclosure: 32 Slot: 1 (O) 136.732 GB SEAGATE ST9146853SS YS0A6XM3H7DG Virtual Disk: 1 (O) - Found 2 of 2 {Raid Level 1, 931.0 GB, 128 KB Stripe Size, WriteBack, ReadAdaptive, Cached, Write Cache OK if Bad BBU} PD: 0 Enclosure: 32 Slot: 2 (O) 931.512 GB SEAGATE ST91000640SS AS099XG5SYBG PD: 1 Enclosure: 32 Slot: 3 (O) 931.512 GB SEAGATE ST91000640SS AS099XG5SXBT Adapter: 1 - PERC H810 Adapter Virtual Disk: 0 (O) - Found 7 of 7 {Raid Level 5, 10.913 TB, 128 KB Stripe Size, WriteBack, ReadAdaptive, Cached, Write Cache OK if Bad BBU} PD: 0 Enclosure: 15 Slot: 7 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKV9MJK PD: 1 Enclosure: 15 Slot: 8 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKUYZDK PD: 2 Enclosure: 15 Slot: 9 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKTAXWK PD: 3 Enclosure: 15 Slot: 10 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKU290K PD: 4 Enclosure: 15 Slot: 11 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKV6S9K PD: 5 Enclosure: 15 Slot: 12 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKNP24K PD: 6 Enclosure: 15 Slot: 13 (O) 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKNKHTK Virtual Disk: 1 (O) - Found 7 of 7 {Raid Level 5, 1.087 TB, 128 KB Stripe Size, WriteBack, ReadAdaptive, Cached, Write Cache OK if Bad BBU} PD: 0 Enclosure: 15 Slot: 0 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVDY5A PD: 1 Enclosure: 15 Slot: 1 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVZHMA PD: 2 Enclosure: 15 Slot: 2 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVUX9RA PD: 3 Enclosure: 15 Slot: 3 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVZ9LA PD: 4 Enclosure: 15 Slot: 4 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVW9RA PD: 5 Enclosure: 15 Slot: 5 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVW1VEA PD: 6 Enclosure: 15 Slot: 6 (OS) 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVAG6A No logical disk problems found.
------------------------- Physical Disk Information ------------------------- Physical Drive State Legend ------------------------------------------------------------------------------------- B Unconfigured(Bad) O Online D Dedicated Hotspare and associated virtual drive number R Rebuild E Hotspare prefers same enclosure S Solid-State Drive F Foreign U Unconfigured(Good) G Global hotspare X Offline I Hotspare is revertible ! Failed M Missing ? Unknown state ------------------------------------------------------------------------------------- NOTE: 'E' does not prohibit a hotspare from being used in another enclosure, it is merely a preference Adapters found: 2 Adapter 0 (PERC H710P Mini) enclosures found: 1 Adapter 0 (PERC H710P Mini) enclosure 32 slots found: 4 Encl Slot State P.Fail.Count Raw Size Inquiry Data 32 0 (O) 0 136.732 GB SEAGATE ST9146853SS YS0A6XM3H6HP 32 1 (O) 0 136.732 GB SEAGATE ST9146853SS YS0A6XM3H7DG 32 2 (O) 0 931.512 GB SEAGATE ST91000640SS AS099XG5SYBG 32 3 (O) 0 931.512 GB SEAGATE ST91000640SS AS099XG5SXBT Adapter 1 (PERC H810 Adapter) enclosures found: 1 Adapter 1 (PERC H810 Adapter) enclosure 15 slots found: 15 Encl Slot State P.Fail.Count Raw Size Inquiry Data 15 0 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVDY5A 15 1 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVZHMA 15 2 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVUX9RA 15 3 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVZ9LA 15 4 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVW9RA 15 5 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVW1VEA 15 6 (OS) 0 186.310 GB HITACHI HUSRL402 CLAR200C190XTVVAG6A 15 7 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKV9MJK 15 8 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKUYZDK 15 9 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKTAXWK 15 10 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKU290K 15 11 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YFKV6S9K 15 12 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKNP24K 15 13 (O) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKNKHTK 15 14 (GEI) 0 1.819 TB HITACHI HUS72302CLAR2000C1D6YGKNVJKK Hotspare Information No physical disk problems found.
seqNum: 0x00001c68 Time: Tue Nov 4 09:24:15 2014 Code: 0x0000002a Class: 0 Locale: 0x20 Event Description: Shutdown command received from host Event Data: =========== None seqNum: 0x00001c69 Seconds since last reboot: 4 Code: 0x00000000 Class: 0 Locale: 0x20 Event Description: Firmware initialization started (PCI ID 005b/1000/1f2d/1028) Event Data: =========== VendorId: 1000 DeviceId: 5b SubVendorId: 1028 SubDeviceId: 1f2d seqNum: 0x00001d6a Seconds since last reboot: 131 Code: 0x00000119 Class: 0 Locale: 0x02 Event Description: CopyBack automatically started on PD 39(e0x3f/s5) from PD 30(e0x3f/s14) Event Data: =========== None seqNum: 0x00001d6b Seconds since last reboot: 131 Code: 0x00000072 Class: 0 Locale: 0x02 Event Description: State change on PD 39(e0x3f/s5) from UNCONFIGURED_GOOD(0) to COPYBACK(20) Event Data: =========== Device ID: 57 Enclosure Index: 63 Slot Number: 5 Previous state: 0 New state: 32 seqNum: 0x00001e6a Time: Tue Nov 4 16:13:51 2014 Code: 0x00000116 Class: 0 Locale: 0x02 Event Description: CopyBack complete on PD 39(e0x3f/s5) from PD 30(e0x3f/s14) Event Data: =========== None