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 # e...

Ansible

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.               Orchestra...