Installing and Configuring ELK
– Part one(1) – Install OS (OEL 7.2), Tuning
– Part two(2) – Configure KVM, Tuning
– Part three(3) – install elasticsearch, configuration
– Part four(4) – Install logstash, configuration
– Part five(5) – Install Kibana, configuration
– Part six(6) – General platform tips & tricks
This is Part two(2) – Configure KVM, Tuning
Configure Storage needed for Elasticsearch
Make sure FC zoning and lun masking is done
To get WWN/P
cat /sys/class/scsi_host/host*/device/fc_host/host*/node_name # Example 0x20000025b5c1000a 0x20000025b5c1000a # anther way to get WWN/P # systool command is provided by the rpm package “sysfsutils” systool -c fc_host -v | grep “port_name”
Configure multipathing
cp /usr/share/doc/device-mapper-multipath-/multipath.conf /etc mpathconf –enable –with_multipathd y # Verify it works as expected multipath -ll
For Villon or 3Par configure round robin multipath
Add to /etc/multipath.conf
devices { device { vendor "VIOLIN" product "SAN ARRAY" path_grouping_policy group_by_serial path_checker tur path_selector "round-robin 0" hardware_handler "0" failback immediate rr_weight uniform no_path_retry fail rr_min_io 4 } device { vendor "3PARdata" product "VV" path_grouping_policy multibus path_checker tur path_selector "round-robin 0" hardware_handler "0" failback immediate features "0" rr_weight uniform no_path_retry 18 #rr_min_io_rq 1 } }
Then run the below
multipath -F multipath -v2 # Verify config (or reboot) multipath -ll
nstalling linux multipath with violin
Prepare CD for KVM use
Copy OEL 7.2 CD ISO
cp oel-7.2.iso /var/lib/libvirt/images
Install OEL-7.2 KVM/VM
Use virt-manager
Select Local install & select OEL ISO
Select OS type as Linux and Version RHEL 7.2
Select Proper Memory & CPU size (as per table in part one)
Select Disk size 25Gb
Change hostname, select network br0
Note: Check the box for Customize configuration, otherwise your keyboard wont work.
Once on the configure screen
Select Display Spice >
Change Type VNC Server
Change Address All Interface
Select install options
Set swap 2Gb
Set XFS or Ext4 for file system
Note: Leave most space in /
In the Software selection, select performance tools
OS Tuning
Turn swaping off and expand MMap stack
# swaping off swapoff -a ## # turn off swapping vm.swappiness = 1 # up the number of connections per port net.core.somaxconn = 65535 #(default) http://www.redhat.com/magazine/001nov04/features/vm vm.max_map_count = 262144 # http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap6sec72.html fs.file-max = 518144 # Activate changes sysctl -p /etc/sysctl.conf
File descriptors & memory lock
/etc/security/limits.conf [...] snip * soft nofile 65000 * hard nofile 65000 * soft memlock unlimited * hard memlock unlimited
Complete services pre-requisite
Disable firewalld & selinux
cat /etc/selinux/config SELINUX=disabled SELINUXTYPE=targeted SETLOCALDEFS=0 # Without reboot (temp disabled) setenforce 0
Start the proper services
# Disable firewall systemctl stop firewalld systemctl disable firewalld
KVM Help
https://help.ubuntu.com/community/KVM/Managing
Next Part three(3) – install elasticsearch, configuration