Linux
惠普智能陣列;如何安全地從陣列中移除具有 SMART 預測性故障的物理驅動器以便更換?
hpacucli 控制器插槽=1 ld 1 顯示詳細資訊
Smart Array P400 in Slot 1 array A Logical Drive: 1 Size: 273.3 GB Fault Tolerance: RAID 1+0 Heads: 255 Sectors Per Track: 32 Cylinders: 65535 Stripe Size: 128 KB Status: OK Array Accelerator: Enabled Unique Identifier: xxxx Disk Name: /dev/cciss/c0d0 Mount Points: /boot 196 MB, / 7.8 GB Logical Drive Label: xxxxx Mirror Group 0: physicaldrive 1I:1:8 (port 1I:box 1:bay 8, SAS, 72 GB, Predictive Failure) physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SAS, 72 GB, OK) physicaldrive 1I:1:6 (port 1I:box 1:bay 6, SAS, 72 GB, OK) physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 72 GB, OK) Mirror Group 1: physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 72 GB, OK) physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 72 GB, OK) physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 72 GB, OK) physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 72 GB, OK)
hpacucli 控制器插槽=1 顯示
Smart Array P400 in Slot 1 Bus Interface: PCI Slot: 1 Serial Number: xxxx Cache Serial Number: xxxx RAID 6 (ADG) Status: Disabled Controller Status: OK Chassis Slot: Hardware Revision: Rev D Firmware Version: 4.06 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 15 secs Post Prompt Timeout: 0 secs Cache Board Present: True Cache Status: OK Accelerator Ratio: 100% Read / 0% Write Drive Write Cache: Disabled Total Cache Size: 256 MB Battery Pack Count: 0 SATA NCQ Supported: True
執行這一系列命令是否安全?
hpacucli controller slot=1 array A remove drives=1:8 hpacucli controller slot=1 pd 1:8 modify led=on
讓遠端手卸下驅動器並更換。然後執行:
hpacucli controller slot=1 array A add drives=1:8
這會讓陣列安全地重建嗎?
執行這些命令是安全的。鏡像組可以在沒有一個磁碟的情況下繼續存在。它應該會自動重建,但如果沒有,您已經確定的命令會將其啟動。
您只需拉出死磁碟並更換它 - 根本不需要作業系統參與。