VMware Cloud Community
vmwareadm
Contributor
Contributor

rescan SCSI bus in Ubuntu 8.04 Guest OS

Hi,

a virtual machine with Ubuntu 8.04 Server is using two RDM

devices (on ESX side, these are iSCSI LUNs). Now a LUN has been

dynamically resized on the storage. The ESX servers see the change

after a rescan of the iSCSI SW initiator. But inside the VM, rescanning

the scsi bus via 'scsiadd', 'rescan-scsi-bus.sh' or via

echo "- - -" > /sys/class/scsi_host/host0/scan

does not reflect the change in size. Does anyone has an idea how to do this in Ubuntu 8.04?

Thanks in advance

Reply
0 Kudos
3 Replies
AWo
Immortal
Immortal

Does a rescan help if the size has changed?

However:

apt-get install scsitools

rescan-scsi-bus.sh


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
vmwareadm
Contributor
Contributor

>Does a rescan help if the size has changed?

It does not only help, it's necessary because of the change in geometry. You have to do this every time you change a virtual disk in size.

>However:

>

>apt-get install scsitools

>rescan-scsi-bus.sh

As is wrote, I used rescan-scsi-bus.sh, both from scsitools and the latest "stand-alone" script, and it did not work as expexted - that's why I am posting here.

Reply
0 Kudos
AWo
Immortal
Immortal

http://linux.derkeiler.com/Mailing-Lists/Kernel/2008-08/msg12882.html


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos