Posts

Showing posts with the label Sysadm

Adding new HDD(hard disk) in Linux, detect it without rebooting - Experimented using Vmware

Image
This is explained below :- Im having Vmware 9 with CentOS 6.4 Up-Running. Im adding the hard disk :-   Next> Create a new virtual disk SCSI maximum disk size (GB): 1GB // you can select as per your requirement Additional HDD added:-   select >>OK  Open clone session on SSH : select tail -f /var/log/messages   Keep scanning the host . And, get detected in fdisk as well in /dev/* directory:  echo "- - -" > /sys/class/scsi_host/host0/scan echo "- - -" > /sys/class/scsi_host/host1/scan echo "- - -" > /sys/class/scsi_host/host2/scan As in my case i had host0,host1,host2   When the HDD is detected, in host2:- Remove the Added partition, using the following command:- i.e., # echo 1 > /sys/block/devName/device/delete Example,in our case is "/dev/sdb # echo 1 > /sys/block/sdb/device/delete
3 golden rule for linux sys-admin. Rule #1: Backup Everything ( and validate the backup regularly ) Rule #2: Master the Command Line ( and avoid the UI if possible ) Rule #3: Automate Everything ( and become lazy )   R ef. to article : http://www.thegeekstuff.com/2010/07/three-sysadmin-rules/