wtorek, 24 listopada 2015

CloudLinux MySQL SQLSTATE[HY000] [2002] No such file

Sprawdzamy czy ścieżka do datadir MySQL znajduje się w

/etc/cagefs/cagefs.mp

jeśli nie to dodajemy i remount all w cagefs

cagefsctl --remount-all

piątek, 13 listopada 2015

MegaCLI

MegaCli -AdpAllInfo -aAll

View information about the battery backup-up unit state

MegaCli -AdpBbuCmd -aAll

View information about virtual disks Useful for checking RAID level, stripe size, cache policy and RAID state:

MegaCli -LDInfo -Lall -aALL

View information about physical drives

MegaCli -PDList -aALL

To see information about the patrol read state and the delay between patrol read runs:

MegaCli -AdpPR -Info -aALL

To find out the current patrol read rate, execute

MegaCli -AdpGetProp PatrolReadRate -aALL

To reduce patrol read resource usage to 2% in order to minimize the performance impact:

MegaCli -AdpSetProp PatrolReadRate 2 -aALL

To disable automatic patrol read:

MegaCli -AdpPR -Dsbl -aALL

To start a manual patrol read scan:

MegaCli -AdpPR -Start -aALL

To stop a patrol read scan:

MegaCli -AdpPR -Stop -aALL

If your system is not connected to a UPS, you should disable the physical disk cache in order to prevent data loss.

MegaCli -LDGetProp EnDskCache -LAll -aALL

To enable it (only do this if you have a UPS and redundant power supplies):

MegaCli -LDGetProp DisDskCache -LAll -aALL

Detail about disks:

MegaCli -ShowSummary -aALL

Check patrol read warnings:

MegaCli -AdpEventLog -GetSinceReboot -warning -fatal -a0