Monthly Archives: May 2017

Install lm_sensors to monitor temperature hardware on CentOS/RHEL

Scenario: Install lm_sensors to monitor hardware temperature CentOS/RHEL

System: CentOS/RHEL 6/7

Install and configure lm_sensors,login as root
# yum install lm_sensors

Configure lm_sensors by answering “yes”
# sensors-detect
Continue reading

Command to re-read added new VM disk that not showing real size CentOS 6

System: CentOS 6.9

Case:
– User request in ESXi to add new 30 GB VM disk(2nd disk it mean sdb) but accidentally wrong added VM disk only 10 GB,after remove the 10 Gb and added 30 GB when run fdisk -l still showing 10 GB VM disk size.

Resolution:
Login as root, run this command to re-read the new disk size without reboot the server.

# echo 1 > /sys/block/sdb/device/rescan

Continue reading