How to enable disk locator on ZFS disk:
Suppose there is disk failure on ZFS, we can make disk locator "ON" so the failed disk can be identified easily at the time of disk replacement.
Login to ZFS shell login prompt and run below commands:
==================================================
ZFSC1:> maintenance hardware
ZFSC1:maintenance hardware> list
NAME STATE MANUFACTURER MODEL SERIAL RPM TYPE
chassis-003 1645HEN05Y faulted Oracle Oracle Storage DE2-24C 1645HEN05Y 7200 hdd
Here for chasis (chassis-000, chassis-001, chassis-002 etc..) the disk status is showing as 'OK' and for chassis-003 it is showing status as 'faulted' so we can say one of the disk present in chasis-003 could be failed.
ZFSC1:maintenance hardware> select chassis-003
ZFSC1:maintenance chassis-003> list
disk
fan
psu
slot
HBBLMSZFSC1:maintenance chassis-003> select disk
HBBLMSZFSC1:maintenance chassis-003 disk>
HBBLMSZFSC1:maintenance chassis-003 disk> show
Disks:
LABEL STATE MANUFACTURER MODEL SERIAL RPM TYPE
disk-000 HDD 0 ok HGST H7390A250SUN8.0T 000555PJG4LV VLJJG4LV 7200 data
disk-001 HDD 1 ok HGST H7390A250SUN8.0T 000555PJXALV VLJJXALV 7200 data
disk-002 HDD 2 ok HGST H7390A250SUN8.0T 000555PGGRPV VLJGGRPV 7200 data
disk-003 HDD 3 faulted HGST H7390A250SUN8.0T 000555PGHD0V VLJGHD0V 7200 data
ZFSC1:maintenance chassis-003 disk> select disk-003
ZFSC1:maintenance chassis-003 disk-003> ls
Properties:
label = HDD 3
present = true
faulted = true
manufacturer = HGST
model = H7390A250SUN8.0T
serial = 000555PGHD0V VLJGHD0V
revision = P9E2
size = 7.15T
type = data
use = data
rpm = 7200
device = c0t5000CCA2608B17DCd0
pathcount = 2
interface = SAS
locate = false
offline = false
ZFSC1:maintenance chassis-003 disk-003> set locate=true
locate = true (uncommitted)
ZFSC1:maintenance chassis-003 disk-003> commit
ZFSC1:maintenance chassis-003 disk-003> ls
Properties:
label = HDD 3
present = true
faulted = true
manufacturer = HGST
locate = true
offline = false
ZFSC1:maintenance chassis-003 disk-003>
Regards,
Kiran Jaddhav
No comments:
Post a Comment