Re: How to add/drop SCSI drives from within the driver?
From: Brian King
Date: Wed Dec 08 2004 - 18:48:12 EST
Bagalkote, Sreenivas wrote:
Adding a drive:- For application to use sysfs to scan newly added drive,
it needs to know the HCTL (SCSI address - Host, Channel, Target & Lun)
of the drive. Driver is the only one that knows the mapping between a
drive and the corresponding HCTL.
Can you explain from a high level how megaraid adds logical devices?
I assume a management app of some sort sends a command to the adapter
to create a disk array. What interface is used for this?
Does this trigger any notification from the adapter to the device
Removing a drive:- There is no sane way for the application to map out
drives to /dev/sd<x>.
This information is all available in sysfs. Have you looked at libsysfs
eServer Storage I/O
IBM Linux Technology Center
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/