Posts

Showing posts from July, 2018

Linux Interview Questions

what is load average ? Number of jobs in run queue are waiting for disk IO averaged over 1, 5 and 15 mins. mpstat -P ALL 1 (produces all CPU's utilization for every 1 second) while true; do true; done debug cpu performance issue  ---------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- How to get a UUID of san devices from file?  ll /dev/disk/by-uuid/    how to block particular lun using multipath.conf file  Edit /etc/multipath/multipath.conf file and add your device in blacklist section  blacklist {       wwid 26353900f02796769       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"       devnode "^hd[a-z]" }  How to scan scsi and fc devices for new disks? FC :   # echo "1" > /sys/class/fc_host/host0/issue_lip # echo "1" > /sys/class/fc_host/host1/issue_lip SCSI # echo "- -

Ansible

Image
Ansible : We can use it for configuration management, orchestration and provisioning. Configuration Management : Whatever changes we do to our users, files, services, application related files.. etc.... is called configuration management.                            Any setup we are doing is install the software, configure it as per our environment and start to use it.                            We can use Ansible to do the configuration                           Provisioning : Building new servers.                We can use Ansible for provisioning as well.               Orchestration : Executing the steps in structured way. Latest Version of Ansible is 2.4 It is a open source tool. It also has a enterprise product called ansible tower. Agent less tool. (No agent need to be installed on the remote systems). It communicates to client based on SSH. Ansible Server : On system where we install the Ansible is called controller.                  On windows we can not i