procedures:replace_disk
Pour des cartes LSI/Adaptec (les perc dell quoi, HP c'est hpacucli qu'il faut utiliser).
Liste les disques :
root@hv02:~# megacli -pdlist -aALL Adapter #0 Enclosure Device ID: 32 Slot Number: 0 Drive's position: DiskGroup: 0, Span: 0, Arm: 0 Enclosure position: N/A Device Id: 0 WWN: 5000CCA00A707437 Sequence Number: 2 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS Raw Size: 136.732 GB [0x11177330 Sectors] Non Coerced Size: 136.232 GB [0x11077330 Sectors] Coerced Size: 136.125 GB [0x11040000 Sectors] Sector Size: 0 Firmware state: Online, Spun Up Device Firmware Level: HPD6 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x5000cca00a707435 SAS Address(1): 0x0 Connected Port Number: 4(path0) Inquiry Data: HP DG0146FARVU HPD6PCWZV6RE FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive: Not Certified Drive Temperature :38C (100.40 F) PI Eligibility: No Drive is formatted for PI information: No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: Unknown Drive has flagged a S.M.A.R.T alert : No Enclosure Device ID: 32 Slot Number: 1 Drive's position: DiskGroup: 0, Span: 0, Arm: 1 Enclosure position: N/A Device Id: 1 WWN: 5000CCA000901567 Sequence Number: 17 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS Raw Size: 136.732 GB [0x11177330 Sectors] Non Coerced Size: 136.232 GB [0x11077330 Sectors] Coerced Size: 136.125 GB [0x11040000 Sectors] Sector Size: 0 Firmware state: Online, Spun Up Device Firmware Level: HPDA Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x5000cca000901565 SAS Address(1): 0x0 Connected Port Number: 3(path0) Inquiry Data: HP DG146BAAJB HPDAP4XK7GHA FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 3.0Gb/s Link Speed: 3.0Gb/s Media Type: Hard Disk Device Drive: Not Certified Drive Temperature :42C (107.60 F) PI Eligibility: No Drive is formatted for PI information: No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 3.0Gb/s Port-1 : Port status: Active Port's Linkspeed: Unknown Drive has flagged a S.M.A.R.T alert : No ...
Enclosure ID : numéro du backplane
root@hv02:~# megacli -EncInfo -a0 Number of enclosures on adapter 0 -- 1 Enclosure 0: Device ID : 32 Number of Slots : 6 Number of Power Supplies : 0 Number of Fans : 0 Number of Temperature Sensors : 0 Number of Alarms : 0 Number of SIM Modules : 0 Number of Physical Drives : 6 Status : Normal Position : 0 Connector Name : Unavailable Enclosure type : SES FRU Part Number : N/A Enclosure Serial Number : N/A ESM Serial Number : N/A Enclosure Zoning Mode : N/A Partner Device Id : 65535 Inquiry data : Vendor Identification : DP Product Identification : BACKPLANE Product Revision Level : 1.07 Vendor Specific : 95Q00K2 Exit Code: 0x00
Détail sur le disque :
root@hv02:~# megacli -PDInfo -PhysDrv [32:1] -a0 Enclosure Device ID: 32 Slot Number: 1 Drive's position: DiskGroup: 0, Span: 0, Arm: 1 Enclosure position: N/A Device Id: 1 WWN: 5000CCA000901567 Sequence Number: 17 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS Raw Size: 136.732 GB [0x11177330 Sectors] Non Coerced Size: 136.232 GB [0x11077330 Sectors] Coerced Size: 136.125 GB [0x11040000 Sectors] Sector Size: 0 Firmware state: Online, Spun Up Device Firmware Level: HPDA Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x5000cca000901565 SAS Address(1): 0x0 Connected Port Number: 3(path0) Inquiry Data: HP DG146BAAJB HPDAP4XK7GHA FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 3.0Gb/s Link Speed: 3.0Gb/s Media Type: Hard Disk Device Drive: Not Certified Drive Temperature :42C (107.60 F) PI Eligibility: No Drive is formatted for PI information: No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 3.0Gb/s Port-1 : Port status: Active Port's Linkspeed: Unknown Drive has flagged a S.M.A.R.T alert : No Exit Code: 0x00
Détails des arguments :
- -PDInfo : Physical Disk Info
- -PhysDrv [32:1] : Adresse du disque en question : 32 = enclosure ID, 1 = Slot Number
- -a0 : Adresse du contrôleur
Ensuite, il faut passer le disque offline :
megacli -pdoffline -physdrv[32:1] -a0
Le marquer comme absent :
megacli -PDMarkMissing -physdrv[32:1] -a0
Préparer le disque pour le retirer :
megacli -PdPrpRmv -physdrv[32:1] -a0
Remplacer physiquement le disque et voir la progression du rebuild :
root@hv02:~# megacli -PDRbld -ShowProg -PhysDrv[32:1] -a0 Rebuild Progress on Device at Enclosure 32, Slot 1 Completed 20% in 5 Minutes.
ATTENTION! On ne peut pas mixer dans le même array du SAS et du SATA.
procedures/replace_disk.txt · Dernière modification : 2022/05/27 12:13 de gizmo