Adding disk to VM and rescanning SCSI bus in CentOS

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

then fdisk, mkfs, etc.

hat tip: http://jcollie.blogspot.com/2008/05/how-to-re-scan-scsi-bus-on-linux.html

Find Dell Service Tag from Linux, ESX console

Try this first:


# dmidecode -s system-serial-number

The “-s” option didn’t work on the Kernel 2.4-based ESX service console, but this should:


# dmidecode | grep --extended-regexp Serial[[:space:]]Number:[[:space:]]*[A-Z0-9]{7}$ | uniq

Credit to Noah@Noah.org