Monthly Archives: September 2017

Command to re-read new VM disk CentOS 6/RHEL 6

System: CentOS 6.9

Case:
Added new VM disk in CentOS 6 not showing the new VM disk when run fdisk -l.

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

ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

Continue reading

Setup Banner on Console and Remote login CentOS/RHEL 6

Example add below banner.


********************************************************************
*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Unauthorized access to this machine is prohibited                *
* Press Ctrl+D if you are not an authorized user                   *
*                                                                  *
* Anyone using this system expressly consents to such monitoring   *
* and is advised that if such monitoring reveals possible          *
* evidence of criminal activity, system personnel may provide the  *
* evidence from such monitoring to law enforcement officials.      *
*                                                                  *
********************************************************************

Continue reading