- 论坛徽章:
- 2
|
Missing Solaris disksSolaris' SCSI driver configuration file, /kernel/drv/sd.conf, by default only probes for SCSI devices with LUNs of 0 during system boot. If you attach storage arrays or other SCSI devices to your system that have a SCSI LUN other than 0, the device will not be seen by the operating system. If you are able to see the devices with the Open Boot Prompt probe-scsi-all command but not with the operating system's format command, then sd.conf likely has to be modified.
Here is example format output before sd.conf changes:
# format
Searching for disks...doneAVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@1f,4000/scsi@3/sd@0,0 1. c0t8d0 /pci@1f,4000/scsi@3/sd@8,0 2. c1t0d0 /pci@1f,4000/scsi@5/sd@0,0 3. c1t1d0 /pci@1f,4000/scsi@5/sd@1,0 4. c1t2d0 /pci@1f,4000/scsi@5/sd@2,0 5. c1t3d0 /pci@1f,4000/scsi@5/sd@3,0Specify disk (enter its number):
Note that only SCSI disks with a LUN of 0 are recognized by the operating system. The output of probe-scsi-all shows that I have SCSI disks with targets of 0, 1, 2, and 3, with LUNs of 0 through 6. I have to add these target/LUN combinations to sd.conf and perform a reconfiguration reboot, as the commands drvconfig;devlinks;disks do not appear to recognize these disks on a running system.
Additions to /kernel/drv/sd.conf:
name="sd" class="scsi" class_prop="atapi" target=0 lun=1;name="sd" class="scsi" class_prop="atapi" target=0 lun=2;name="sd" class="scsi" class_prop="atapi" target=0 lun=3;name="sd" class="scsi" class_prop="atapi" target=0 lun=4;name="sd" class="scsi" class_prop="atapi" target=0 lun=5;name="sd" class="scsi" class_prop="atapi" target=0 lun=6;
name="sd" class="scsi" class_prop="atapi" target=1 lun=1;name="sd" class="scsi" class_prop="atapi" target=1 lun=2;name="sd" class="scsi" class_prop="atapi" target=1 lun=3;name="sd" class="scsi" class_prop="atapi" target=1 lun=4;name="sd" class="scsi" class_prop="atapi" target=1 lun=5;name="sd" class="scsi" class_prop="atapi" target=1 lun=6;name="sd" class="scsi" class_prop="atapi" target=2 lun=1;name="sd" class="scsi" class_prop="atapi" target=2 lun=2;name="sd" class="scsi" class_prop="atapi" target=2 lun=3;name="sd" class="scsi" class_prop="atapi" target=2 lun=4;name="sd" class="scsi" class_prop="atapi" target=2 lun=5;name="sd" class="scsi" class_prop="atapi" target=2 lun=6;name="sd" class="scsi" class_prop="atapi" target=3 lun=1;name="sd" class="scsi" class_prop="atapi" target=3 lun=2;name="sd" class="scsi" class_prop="atapi" target=3 lun=3;name="sd" class="scsi" class_prop="atapi" target=3 lun=4;name="sd" class="scsi" class_prop="atapi" target=3 lun=5;name="sd" class="scsi" class_prop="atapi" target=3 lun=6;
Perform a reconfiguration reboot with reboot -- -rv or with boot -rv at the Open Boot Prompt.
Here is example format output after the sd.conf changes and a reconfiguration reboot:
# format
Searching for disks...doneAVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@1f,4000/scsi@3/sd@0,0 1. c0t8d0 /pci@1f,4000/scsi@3/sd@8,0 2. c1t0d0 /pci@1f,4000/scsi@5/sd@0,0 3. c1t0d1 /pci@1f,4000/scsi@5/sd@0,1 4. c1t0d2 /pci@1f,4000/scsi@5/sd@0,2 5. c1t0d3 /pci@1f,4000/scsi@5/sd@0,3 6. c1t0d4 /pci@1f,4000/scsi@5/sd@0,4 7. c1t0d5 /pci@1f,4000/scsi@5/sd@0,5 8. c1t0d6 /pci@1f,4000/scsi@5/sd@0,6 9. c1t1d0 /pci@1f,4000/scsi@5/sd@1,0 10. c1t1d1 /pci@1f,4000/scsi@5/sd@1,1 11. c1t1d2 /pci@1f,4000/scsi@5/sd@1,2 12. c1t1d3 /pci@1f,4000/scsi@5/sd@1,3 13. c1t1d4 /pci@1f,4000/scsi@5/sd@1,4 14. c1t1d5 /pci@1f,4000/scsi@5/sd@1,5 15. c1t1d6 /pci@1f,4000/scsi@5/sd@1,6 16. c1t2d0 /pci@1f,4000/scsi@5/sd@2,0 17. c1t2d1 /pci@1f,4000/scsi@5/sd@2,1 18. c1t2d2 /pci@1f,4000/scsi@5/sd@2,2 19. c1t2d3 /pci@1f,4000/scsi@5/sd@2,3 20. c1t2d4 /pci@1f,4000/scsi@5/sd@2,4 21. c1t2d5 /pci@1f,4000/scsi@5/sd@2,5 22. c1t2d6 /pci@1f,4000/scsi@5/sd@2,6 23. c1t3d0 /pci@1f,4000/scsi@5/sd@3,0 24. c1t3d1 /pci@1f,4000/scsi@5/sd@3,1Specify disk (enter its number):
Adding SCSI target/LUN combinations to sd.conf that are not available on your system should result in only a minor slowdown during boot, according to this
comp.unix.solaris post
.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/76/showart_84198.html |
|