четверг, 28 марта 2019 г.

firewalld whitelist multiple sources



firewall-cmd --new-zone=mssql
firewall-cmd --zone=mssql --add-service=mssql

firewall-cmd --new-ipset=mssql_set --type=hash:net
firewall-cmd --ipset=mssql_set --add-entry=10.1.1.1
firewall-cmd --ipset=mssql_set --add-entry=172.16.1.0/24
firewall-cmd --zone=mssql --add-source=ipset:mssql_set

firewall-cmd --runtime-to-permanent

четверг, 14 марта 2019 г.

ESXi 5.5 MegaCli offline disk issue


cd /opt/lsi/MegaCLI
./MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat events.log
./MegaCli -PDOnline -PhysDrv [252:1] -aALL

Physical Disk: 1
Enclosure Device ID: 252
Slot Number: 1
Drive's position: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: N/A
Device Id: 11
WWN: (deleted)
Sequence Number: 23
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 1
Last Predictive Failure Event Seq Number: 6711
PD Type: SAS

Raw Size: 68.366 GB [0x88bb992 Sectors]
Non Coerced Size: 67.866 GB [0x87bb992 Sectors]
Coerced Size: 67.054 GB [0x861c000 Sectors]
Sector Size:  0
Firmware state: Online, Spun Up
Device Firmware Level: HPDG
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c500231b7f85
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: (deleted)
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 :32C (89.60 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 : Yes