CIFS Samba mount hangs for several minutes

Symptom

Add a network share folder in /etc/fstab

//windows-server/shared /mnt/shared cifs  iocharset=utf8,credentials=/root/.naspasswd,dir_mode=0750,file_mode=0750  0 0

Most time it works well. But every few days or weeks, the connection or the mount point seems to go dead or hang, such that any process that tries to access the mount point gets stuck in D state (disk, or I/O wait). those processed become impervious to TERM and KILL signals. The frozen state lasts for 5+ minutes.

Read More

Install Ansible on Mac OSX

Brew Install

  • Install Homebrew if there is no brew.
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • Install Ansible
    brew install ansible
    
Read More

McAfee Installation Process Hung

When I installed McAfee Antivirus Enterprise v8.8 on a Windows 8.1, it was hung. Checked the log @ c:\users$user\AppData\Local\Temp\McAfeeLogs and found a messge “Waiting on McShield to report RUNNING or STOPPED (current state 2)” in installation log.

Read More

Force Removing Windows Services

Some services are denied administrator to access on Windows such as McAfee services. I don’t know why administrator cannot manage every thing on Windows system. I think vrius maker and hacker already know this technology. How does administrator fight with them?

Read More

Change hostname and static IP on Centos 7

Change hostname

  • Edit file: /etc/sysconfig/network
    HOSTNAME=servername.domain.com
    
  • Add the servername in /etc/hosts file
  • Run hostname command
    sudo hostname servername.domain.com
    
  • Restart network service
    sudo /etc/init.d/network restart
    
Read More