How to add SCSI disk on RHEL 5 in VMWare

by Eddy on

VMware allows systems administrators to add additional SCSI disks onto Linux virtual machines (CentOS, Ubuntu,RHEL 5, Fedora ). In RHEL 5 or other Linux flavors you can rescan the newly added disk drive without rebooting the machines.

The ability to dynamically add new additional SCSI disk drives in VMWare allows greater flexibility to  add disk drives on Virtual machines (VM) running in Production environment, extra disks can be added or removed without rebooting the Linux OS Рthis works for both RHEL 5 physical and virtual servers.

How to add the disk drive

1.Once newly created LUN is presented to the RHEL 5 server, run the command to scan the SCSI bus:
# echo "- - -" >/sys/class/scsi_host/host#/scan

The “- – -” is used for Bus Channel , for Target id and Lun .
2.Check the /var/log/messages file to find the device name , in example the secondary disk device name is sdb

# tail -f /var/log/messages
# fdisk -l /dev/sdb

News Tags:

Leave a Comment

Previous post:

Next post: