Adding a new disk to SUSE Linux when running on VMware

You will see that the vm does not see the new disk, ie running the command:

fdisk -l

Shows only the existing disks, there is no sign of the new one.

What we need to do is, re-scan the SCSI bus, without rebooting the vm. To do this run the following command:

echo “- – -” >/sys/class/scsi_host/host#/scan

Where the # is replaced with the SCSI host value, usually 0

Now we re-run the command:

fdisk -l

We can now see our additional disk and can carry on configuring it using the usual tools, I.e. fdisk and mkfs or partitioner through yast, etc

Leave a Reply

Your email address will not be published. Required fields are marked *

seven + 19 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.