Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently installed Debian 6 in a VM on ESXi 4.1, but I noticed there is no /proc/scsi/scsi. Am I missing a module which provides that, or is there a different way of doing things like echo "scsi add-single-device 0 0 1 0">/proc/scsi/scsi?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

On recent kernels the /proc/scsi is being "migrated" to sysfs. You can recompile the kernel and enable the CONFIG_SCSI_PROC_FS: legacy /proc/scsi/ support to the scsi subsystem, or see if something under /sys/class/scsi_host and other sysfs dirs have what you need. The legacy support is a good route if you have many tools that rely on /proc/scsi to work.

share|improve this answer

The new way of adding scsi devices is.

echo "$c $t $l" > /sys/class/scsi_host/host$h/scan

$h is the HBA number, $c is the channel on the HBA, $t is the SCSI target ID, and $l is the LUN.

If you don't know all of that, you can use wildcards.

echo "- - -" > /sys/class/scsi_host/host$h/scan

This is documented in the online storage management section of Red Hat's storage administration guide.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.