Tuesday, November 21, 2017

How to check which causing for df command hung ?

try using # strace df -h


If strace not installed , then  run # yum install strace*  --enablerepo=*

How to check mounted filesystems when df command hung in linux ?

In general df is the regular command to check mounted filesystems. other than that ,   command # mount is the option to check .


# mount

can compare with # mount  vs   # cat  /etc/fstab

how to calculate load average in linux ?

load average: 0.00, 0.00, 0.00


load average gives 3 time intervals which are 1,5,15ms interval 

As above load average last 1min load is 0%  at last 5ms load is 0% and last 15ms load is 0%

uptime command in linux

load average: 0.00, 0.00, 0.00


load average gives 3 time intervals which are 1,5,15ms interval 

As above load average last 1min load is 0%  at last 5ms load is 0% and last 15ms load is 0%

df command hung in linux

what could be the reasons for df command hung ?

* NAS issue
- Try to see if your seeing any NFS stale erros with nas filesystems  or NFS server may not responding

* High load
- could be due to high load , check with uptime command for high load.  there could be chances of huge IO request on any filesystems , some hung commands like df ,ls,sshd ,defunct process


* I/O errors
- could be chances of IO errors with NAS and local disks.



how-to-check-which-causing-for-df command to hung ?


how-to-check-mounted-filesystems when df command hung

Thursday, November 16, 2017

How to fsck without root password ?


 You can give a try change the password going to single user mode .  and then do  fsck  at single user mode .


If its not going to single user mode due to inode issue or read only filesystem then give try to go shell prompt using  " init=/bin/bash"  option editing kernel at grub menu.

Refer below to go bash shell

How to get shell prompt in linux without root password ? 

How to fsck a filesystem in linux ?

fsck -y /dev/mapper/<vgname>/<lvname>


for example :-  fsck -y /dev/mapper/vglinux/lvvar

How to reset password in Linux ?



refer below URL

http://www.linuxtechnotes.com/2016/12/how-to-reset-password-from-vmware-work.html