Apr 11, 2012
Adding Additional Disks RHEL 6
Ever wondered how to add an additional disk to RHEL 5/6 and create a new LVM(Logical Volume Manager). In this post I will try to show how to do just that. This is assuming a second disk was added (/dev/sdb) to the system. If the disk is different (dev/sdc…) just make the changes to the command. # fdisk /dev/sdb Create the Physical Volume # pvcreate /dev/sdb Physical volume “/dev/sdb”... read more
Feb 25, 2012
Find Large Files in Linux
Recently had the need to find large files in Linux to clear up some space. With the use of the find, print and awk commands I was able to find files bigger than 50 MB. You can change the values to suit your needs. To find all files over 50,000KB (50MB+) in size and display their names, along with size, use following syntax: find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} \; | awk... read more
Oct 1, 2011
Configure SNMP for RHEL 6
SNMP is a very powerful and useful tool to add to your Linux system. It is great for sending alerts to different monitoring systems like Nagios and many other great products. But first it needs to be installed and configured before you can put this under rated tool to work. Install SNMP using yum, you will need net-snmp-utils, net-snmp, net-snmp-libs. $ sudo yum install –y net-snmp-utils net-snmp... read more
Oct 1, 2011