Tag Archives: linux

linux high load average no reason

11:38:50 up 62 days, 1:12, 1 user, load average: 638.59, 755.02, 776.17
Cpu(s): 9.5%us, 9.5%sy, 0.0%ni, 76.2%id, 4.8%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 32753672k total, 5634300k used, 27119372k free, 617352k buffers

top –

660025 root 20 0 15560 1932 1008 R 100.0 0.0 0:00.21 top
717745 27 20 0 99516 41m 2472 S 70.2 0.1 145:04.24 /usr/libexec/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –socket=/var/lib/mysql/mysql.sock
1 root 20 0 19236 316 88 S 0.0 0.0 0:09.58 /sbin/init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.72 [kthreadd]
3 root RT 0 0 0 0 S 0.0 0.0 0:08.22 [migration/0]
4 root 20 0 0 0 0 S 0.0 0.0 1:11.89 [ksoftirqd/0]
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [stopper/0]
6 root RT 0 0 0 0 S 0.0 0.0 0:10.47 [watchdog/0]
7 root RT 0 0 0 0 S 0.0 0.0 0:27.77 [migration/1]
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [stopper/1]
9 root 20 0 0 0 0 S 0.0 0.0 27:23.15 [ksoftirqd/1]
10 root RT 0 0 0 0 S 0.0 0.0 0:03.64 [watchdog/1]
11 root RT 0 0 0 0 S 0.0 0.0 0:12.50 [migration/2]
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [stopper/2]

Try to find disk load:
ps aux | sort -rk 8 | awk '$8 == "D"' | tail -30
root 1015702 0.0 0.0 100992 104 ? D Apr05 0:00 /bin/df -P
root 1016451 0.0 0.0 100992 100 ? D Apr06 0:00 /bin/df -P
root 1020754 0.0 0.0 100992 100 ? D Apr05 0:00 /bin/df -P
root 1023815 0.0 0.0 100992 8 ? D Apr07 0:00 /bin/df -P
root 1026974 0.0 0.0 100992 100 ? D Apr05 0:00 /bin/df -P
root 1027504 0.0 0.0 100992 104 ? D Apr06 0:00 /bin/df -P
root 1027647 0.0 0.0 100992 104 ? D Apr06 0:00 /bin/df -P
root 1029003 0.0 0.0 100992 100 ? D Apr06 0:00 /bin/df -P
root 1029478 0.0 0.0 100992 12 ? D Apr04 0:00 /bin/df -P
root 1030382 0.0 0.0 100992 104 ? D Apr06 0:00 /bin/df -P
root 1031427 0.0 0.0 100992 100 ? D Apr07 0:00 /bin/df -P
root 1036867 0.0 0.0 100992 8 ? D Apr04 0:00 /bin/df -P
root 1037879 0.0 0.0 100992 104 ? D Apr05 0:00 /bin/df -P
root 1037958 0.0 0.0 100992 100 ? D Apr05 0:00 /bin/df -P
root 1038801 0.0 0.0 100992 100 ? D Apr05 0:00 /bin/df -P
root 1039219 0.0 0.0 100992 100 ? D Apr06 0:00 /bin/df -P

Fast fix:
ps aux | grep -w [d]f | awk '{print $2}' | xargs kill -9

It was caused by virtualizor:
ps aux | grep -w [v]irtualizor | awk '{print $2}' | xargs kill -9

linux protect directory with password

yum install fuse-encfs
encfs /root/encryptdir /root/decryptdir

he directory “/root/encryptdir/” does not exist. Should it be created? (y,N) y
The directory “/root/decryptdir/” does not exist. Should it be created? (y,N) y
Creating new encrypted volume.
Please choose from one of the following options:
enter “x” for expert configuration mode,
enter “p” for pre-configured paranoia mode,
anything else, or an empty line will select standard mode.
?> p

Paranoia configuration selected.

Configuration finished. The filesystem to be created has
the following properties:
Filesystem cipher: “ssl/aes”, version 3:0:2
Filename encoding: “nameio/block”, version 4:0:2
Key Size: 256 bits
Block Size: 1024 bytes, including 8 byte MAC header
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File data IV is chained to filename IV.
File holes passed through to ciphertext.

————————– WARNING ————————–
The external initialization-vector chaining option has been
enabled. This option disables the use of hard links on the
filesystem. Without hard links, some programs may not work.
The programs ‘mutt’ and ‘procmail’ are known to fail. For
more information, please see the encfs mailing list.
If you would like to choose another configuration setting,
please press CTRL-C now to abort and start over.

Now you will need to enter a password for your filesystem.
You will need to remember this password, as there is absolutely
no recovery mechanism. However, the password can be changed
later using encfsctl.

New Encfs Password:
Verify Encfs Password:

mount
encfs on /root/decryptdir type fuse.encfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions)

mv -v /root/secret.tar.gz /root/decryptdir
fusermount -u /root/decryptdir

To access data:
encfs ~/encryptdir/ ~/decryptdir/
EncFS Password: