echo "- - -" > /sys/class/scsi_host/host0/scan
then fdisk, mkfs, etc.
echo "- - -" > /sys/class/scsi_host/host0/scan
then fdisk, mkfs, etc.
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