Skip to main content

Posts

Showing posts with the label Vmware

Add a New Hard Disk Without Rebooting Guest

A rescan can be issued by typing the following command: echo "- - -" > /sys/class/scsi_host/ host# /scan fdisk -l tail -f /var/log/message Replace host# with actual value such as host0. You can find scsi_host value using the following command: # ls /sys/class/scsi_host Output: host0 Now type the following to send a rescan request: echo "- - -" > /sys/class/scsi_host/ host0 /scan fdisk -l tail -f /var/log/message How Do I Delete a Single Device Called /dev/sdc? In addition to re-scanning the entire bus, a specific device can be added or existing device deleted using the following command: # echo 1 > /sys/block/ devName /device/delete # echo 1 > /sys/block/ sdc /device/delete How Do I Add a Single Device Called /dev/sdc? To add a single device explicitly, use the following syntax: # echo "scsi add-single-device <H> <B> <T> <L>" > /proc/scsi/scsi Where, <H> : Host <B> : Bus (Cha