To add SCSI disks to your RHEL6 system without rebooting your machine, you have to rescan the newly disks using the following commands.
If you are running your OS in a Production environment, extra disks can be added or removed without a need of rebooting the Linux machine.
How to add a new disk :
Once you have present your new disk or Lun to the RHEL OS run :
# echo "- - -" >/sys/class/scsi_host/host#/scan
The "- - -" is used for the bus channel, Target Id and Lun.
Check the /var/log/messages to find the new device name or by checking the /proc/partitions file.
# tail -f /var/log/messages
# cat /proc/partitions
If your new disk name is /dev/sdb , get more information about it by running
# fdisk -l /dev/sdb
If you are running your OS in a Production environment, extra disks can be added or removed without a need of rebooting the Linux machine.
How to add a new disk :
Once you have present your new disk or Lun to the RHEL OS run :
# echo "- - -" >/sys/class/scsi_host/host#/scan
The "- - -" is used for the bus channel, Target Id and Lun.
Check the /var/log/messages to find the new device name or by checking the /proc/partitions file.
# tail -f /var/log/messages
# cat /proc/partitions
If your new disk name is /dev/sdb , get more information about it by running
# fdisk -l /dev/sdb
Comments
Post a Comment