November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Disk usage 100% even after deleting files

Reducing Disk Usage When Linux complains that the disk is full, you will naturally try to delete some files or move them away from the filled-up partition. So you delete some large files, and check to see that the disk usage is much lower. $ sudo du -shx / 7.8G / But df tells you […]

RAID

RAID

A soft RAID vs Hard RAID: a> Software RAID is an abstraction layer in an OS between physical and logical disk, and this abstraction layer will consume some CPU resources. Hardware RAID is not the problem; b> can support hot-swappable RAID hard disks, the benefits of this can be brought online to replace a […]

RHEL6.4 Course Summary

RHEL6.4 Course Summary

Unit1 Tracking Security Updates Update the following three categories RHSA RHBA RHEA yum updateinfo list View all updates yum updateinfo list –cve = CVE-2013-0755 View an update yum –security list updates view security update yum updateinfo list | grep ‘Critical’ | cut -f1 -d ” | sort -u | wc -l

Unit2 […]

Linux Troubleshooting Commands

Biggest 10 Files du -sh * | sort -n | tail du -x -a . | sort -n -r | head -n 10

List All the Process By memory usage ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10 ps -eo pcpu,pid,user,args | […]

TOP 12 ‘PS’ PERFORMANCE COMMANDS

TOP 12 ‘PS’ PERFORMANCE COMMANDS

admin@UM 02:03 AIX, Unix I use following ps commands in order to check for performance probelms: 1) Displaying top CPU_consuming processes:

# ps aux|head -1; ps aux|sort -rn +2|head -10 2) Displaying top 10 memory-consuming processes:

# ps aux|head -1; ps aux|sort -rn +3|head 3) Displaying process in order […]

LINUX MEMORY

Find Memory Usage

System memory used and free

Total Used and Free Memory in MBytes (in that order)

free -m|grep “buffers/cache”|cut -d”:” -f2 Memory by Process

Raw

ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS Human readable

ps -e -orss=,args= | sort -b -k1,1n | awk ‘{ split( “KB MB GB” , v […]

JMAP, HISTO, Thread Dump, CPU Utilization

Dear Reader,

In a production environment Java Profiling is not an option, we have seen multiple times that our CPU has reached almost 100% or even 300% sometime. That is really a panic scenario especially when you are handling production environment or at client place to check what went wrong.

Fortunately, Java comes with some […]

Install Java 1.8 and tomcat 8 on Redhat 7 centos 7

mkdir software

64 BIT # wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-x64.tar.gz”

# tar xzf jdk-8u40-linux-x64.tar.gz 32 BIT # wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-i586.tar.gz”

 

wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.tar.gz”

 

# tar xzf jdk-8u40-linux-i586.tar.gz mkdir /usr/java/

cd /usr/java/jdk1.8.0_40/ [root@cluster1 java]# ln -s /usr/java/jdk1.8.0_40/bin/java /usr/bin/java [root@cluster1 java]# alternatives […]

Red Hat Enterprise Linux 6 to 7

Red Hat Enterprise Linux 6 to 7? Migrating existing Red Hat Enterprise Linux installations to new major versions

Migration vs. Upgrade •migration: Moving a set of running services from one installed system to another, including all configuration aspects and data. •upgrade: Upgrading the installed software to newer revisions. This process may or may not include […]

How to mount inactive LVM partitions

Cause This situation occurs because the same UUID is attached to each LVM disk. Any LVM command, such as pvscan or lvscan, fails because of that error. You can find more details about Bug 454645 ” Bringing a snapshot of an LVM on-line on the same system” here: https://bugzilla.redhat.com/show_bug.cgi?id=454645 This situation can also occur when […]