-
Notifications
You must be signed in to change notification settings - Fork 3
megalib
遇见王斌 edited this page Nov 2, 2017
·
5 revisions
>>>from megalib import MegaCLI, MegaCLIError
>>>cli = MegaCLI()
>>>cli.adapters()
等同于
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL
>>>cli.logicaldrives()
等同于
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LAll -aAll
>>>cli.physicaldrives()
等同于
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll
>>>cli.get_rebuild_process("252:6",1)
u'device(encl-252 slot-6) is not in rebuild process'
等同于
MegaCli -pdrbld -showprog -physdrv[252:6] -a1
- enclosure_id :背板 ID
- slot_number :槽位 ID
- raw_size :大小
- firmware_state :健康状态
- drive_position : 磁盘所属于的逻辑卷,热备盘没有哦
- id :逻辑磁盘 ID
- number_of_drives :逻辑磁盘中磁盘数量
- size :大小
- state :状态
- raid_level :raid 等级