Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Wednesday, August 20, 2014

root file system is 100% + HPUX

My root file system is 100%

1. First thing to do is look for core files:

  # find / -name core

2. Then check for mistakes in the /dev directory (usually caused by someone       mistyping a device name:

  /dev/rmt/Omn instead of /dev/rmt/0mn, for example)


3.1) # find / -xdev -size +10000 -exec ll {} \; > /tmp/hugefiles

    It will give you a list of all big files ( >10000) under root.

3.2) 10 largest directories in the root filesystem:

    $ du -kx / | sort -rn -k1 | head -n 10

3.3) 10 largest files in the root filesystem:

     $ find / -type f -xdev -print | xargs -e ll | sort -rn -k5 | head -n 10

3.4)  Recently modified files in the root filesystem:

     $ find / -type f -xdev -mtime -1 -print | xargs ll | sort -rn -k5

4.  If we run any LVM commands then it will change the VG configuration files     under /etc/lvmconf

5.  check your crontab if any script running and writing somewhere under /

7.  Run cleanup -F

8. There is nothing special about this file. It’s a sequential text file.
    /root/dead.letter if it is there we can trim it.




Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment