Tools to check for OpenSSL Heartbleed bug

Tools to check for the bug:

List of vulnerable Linux distributions: http://www.circl.lu/pub/tr-21/

 

List top 10 largest MySQL databases in Linux

Run the following command as root to list the top 10 largest MySQL databases in Linux.

du -s /var/lib/mysql/* | sort -n| cut -f 2-|xargs -i du -sh {} |tail -10

You may need to change the directory to match your configuration. /var/lib/mysql is the default MySQL directory on a cPanel server.

Some RHEL software RAID commands

Copy partitions from good drive to new drive:

sfdisk -d /dev/sda | sfdisk /dev/sdb

or

sfdisk -d /dev/sda | sfdisk --force /dev/sdb

Add partitions back into RAID:

mdadm /dev/md0 --add /dev/sdb1
mdadm /dev/md1 --add /dev/sdb2

Check status:

cat /proc/mdstat

or

mdadm --detail /dev/md0