Mengganti Hardisk Rusak pada LSI RAID DISK dengan MEGACLI


Status
Not open for further replies.

antochoy

Expert 1.0
Verified Provider
kadang2 saya mengganti hardisk yang rusak, dan kadang lupa langkah dan caranya...
biar saya gk lupa... ada yang mengatakan,
Ikatlah ilmu dengan menulis
yasudah saya tulis saja disini,
mohon ijin ya master2 server , jika ada yang kurang mohon dikoreksi

Jika anda menggunakan LSI Hardware raid , dan ada hardisk yang rusak ,
anda bisa menggunakan megacli untuk mereplace hardisk yang rusak tersebut..
asumsi ini hotswap yaa

Code:
[[email protected]]# /opt/MegaRAID/MegaCli/MegaCli64  -ldinfo -lALL -aALL
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 2.728 TB
Sector Size         : 512
Is VD emulated      : No
Mirror Data         : 2.728 TB
State               : Degraded
Strip Size          : 256 KB
Number Of Drives    : 2
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disk's Default
Encryption Type     : None
Bad Blocks Exist: No
Is VD Cached: No

cari yang Degraded



Code:
/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -aALL
Enclosure Device ID: 252
 Slot Number: 0
 ….
 Firmware state: Online, Spun Up

Enclosure Device ID: 252
 Slot Number: 1
 ….
 Firmware state: Offline

Enclosure Device ID: 252
 Slot Number: 2
 ….
 Firmware state: Online, Spun Up

Enclosure Device ID: 252
 Slot Number: 3
 ….
 Firmware state: Online, Spun Up


kalo uda ketemu Enclosure Device ID danSlot Number nya ,
contoh yang rusak:
Enclosure Device ID: 252
Slot Number: 1

nanti nulisnya spt ini ya: 252:1

jangan sampe salah,
kalo salah bisa zonk

baru bisa eksekusi


1. cek fisik disknya dimana:
/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -aALL

2. offlinekan dulu aja
/opt/MegaRAID/MegaCli/MegaCli64 -pdoffline -physdrv[252:1] -a0
3. tandai yang missing
/opt/MegaRAID/MegaCli/MegaCli64 -pdmarkmissing -physdrv[252:1] -aAll
4. siap utk remove disknya
/opt/MegaRAID/MegaCli/MegaCli64 -pdprprmv -physdrv[252:1] -a0

hardisk siap dicopot
5. ganti hardisk baru
/opt/MegaRAID/MegaCli/MegaCli64 -pdlocate -start -physdrv[252:1] -a0


/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set -PhysDrv[252:1] -a0


6. cek rebuild progress
/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv[252:1] -a0


sekian semoga membantu...
kalo ada yang salah mohon dikoreksi
 
Last edited:

idnix

Hosting Guru
Verified Provider
nice tutorial. semoga bisa di sticky :D
 

antochoy

Expert 1.0
Verified Provider
Btw skalian install megacli nya di includekan di tutorial om

install megacli
contoh untuk centos 6
Code:
[[email protected]~]#wget https://ginernet.com/downloads/MegaCli-8.07.14-1.noarch.rpm
[[email protected]~]#rpm -Uhv MegaCli-8.07.14-1.noarch.rpm

[[email protected]~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -Aall

Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 2.728 TB
Sector Size         : 512
Is VD emulated      : No
Mirror Data         : 2.728 TB
State               : Optimal
Strip Size          : 256 KB
Number Of Drives    : 2
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disk's Default
Encryption Type     : None
Bad Blocks Exist: No
Is VD Cached: No



Exit Code: 0x00

untuk centos 7 cari disini ada:
http://sarepos.cpanel.net/centos/7/noarch/MegaCli-8.07.14-1.el7.centos.noarch.rpm
 
Status
Not open for further replies.


Top