From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4 Description of problem: sg_map has internal hardcoded limit of 256 SCSI devices and 128 scsi disks. On a system with a large storage configuration, sg_map will not report the mapping of any scsi device beyond the first 256 [sg255] nor any scsi disk beyond the first 128 [sddx]. Note that internally, the scsi generic driver supports ~32K scsi devices. Version-Release number of selected component (if applicable): sg3_utils-1.06 How reproducible: Always Steps to Reproduce: 1. on a system w/ >256 scsi devices and/or > 128 scsi disks, type 'sg_map -x' 2. 3. Actual Results: Note that the mappings for only the first 128 disks and 1st 256 scsi devices will be displayed. Expected Results: mappings for all configured scsi devices and disks, up to the number supported internally by the driver, should be displayed. Additional info: upstream sg3_utils-1.15 ups the disk limit to ~18000 [sda-sdzzz] but does not increase the number of supported scsi devices [?!!!].
Has this bug been sent to the sg3_utils upstream maintainers and is there a fix available from them? Read ya, Phil
No. I didn't see any link for reporting bugs against sg3_utils on the Linux SCSI Generic Driver pages. Guess I can send e-mail directly to Douglas Gilbert. Will do. I just wanted to give Red Hat a heads up on this.
Thanks for the info, it's really appreciated. If you get any news please let me know via this bugzilla. Thanks again, Read ya, Phil
I reported the limits to Doug Gilbert. He wasn't aware that Red Hat is shipping sg3_utils. He said that he would be happy to increase the limits. He added that he has kept the current sg3 utils compatible with 2.4 kernels, and is working on new utilities for 2.6+ that use sysfs. He sent me a preview of a new "lsscsi" utility that replaces sg_map. Very nice! I suggest you consider it for a future RHEL release.
That sounds great! Do you have any info when Doug wants to release a new version of sg3_utils? Read ya, Phil
Ok, RHEL-4.6 contains sg3_utils-1.22 which also increased the device numbers of scsi devices for sg_map to 2048, so i think this bug can be closed? Read ya, Phil