The script on script editor for IBM Storage Manager can be executed via command line using SMcli command:
datanode9, enclosure 85, slot 9 has an impending drive error today, use the following command to manually fail it:
SMcli datanode9_ds2a -c “set drive[85,9] operationalState=failed;”
BEFORE REPLACING THE DRIVE:
SMcli datanode9_ds2a -c “show drive[85,9]“
Performing syntax check…
Syntax check complete.
Executing script…
Drive at Enclosure 85, Slot 9
Status: Impending failure
Mode: Assigned
Raw capacity: 136.732 GB
Usable capacity: 136.232 GB
..
AFTER REPLACING THE DRIVE:
SMcli datanode9_ds2a -c “show drive[85,9];”
Performing syntax check…
Syntax check complete.
Executing script…
Drive at Enclosure 85, Slot 9
Status: Replaced
Mode: Assigned
Raw capacity: 136.732 GB
Usable capacity: 136.232 GB
…
BEFORE REPLACING THE DRIVE:
SMcli datanode9_ds2a -c “show storagesubsystem healthstatus;”
Performing syntax check…
Syntax check complete.
Executing script…
The following failures have been found:
Impending Drive Failure – Medium Data Availability Risk
Storage Subsystem: ****
Array: 2
RAID level: 5
Enclosure: Controller/Drive enclosure
Affected drive slot(s): 9
Service action (removal) allowed: Yes
Service action LED on component: Yes
Logical Drives: 2
Status: Optimal
Logical Drive – Hot Spare In Use
Storage Subsystem: *****
Array: 2
Failed drive at: enclosure 85, slot 9
Service action (removal) allowed: Yes
Service action LED on component: Yes
Replaced by drive at: enclosure 85, slot 12
Logical Drives: 2
RAID level: 5
Status: Optimal
Script execution complete.
SMcli completed successfully.
AFTER REPLACING THE DRIVE:
SMcli datanode9_ds2a -c “show storagesubsystem healthstatus;”
Performing syntax check…
Syntax check complete.
Executing script…
Storage Subsystem health status = fixing.
The following failures have been found:
Logical Drive – Hot Spare In Use
Storage Subsystem: *****
Array: 2
Failed drive at: enclosure 85, slot 9
Service action (removal) allowed: No
Service action LED on component: Yes
Replaced by drive at: enclosure 85, slot 12
Logical Drives: 2
RAID level: 5
Status: Optimal
Script execution complete.
SMcli completed successfully.
Getting all storage ip address:
SMcli -d | sort