- 论坛徽章:
- 0
|
redhat7.3 如何支持多LUN
还是要靠自己解决
还是要靠自己解决
How to enable multiple LUN support in Linux
Question
By default, the SCSI subsystem in Linux does not support multiple LUNs (Logical Unit Numbers). Devices using LUNs that go beyond LUN:0 (zero) will not be recognized.
This information applies to the following Product(s):
- Adaptec SCSI Card 39160, Adaptec SCSI Card 29160, Adaptec SCSI Card 29160LP, Adaptec SCSI Card 29160N, AHA-2940U2W, AHA-2940UW Pro, AHA-2940UW, AHA-2940 Ultra, AHA-2940AU, AHA-2940U, AHA-2944UW, AHA-2944UW/OF, AHA-3940AU, AHA-3940UW, AHA-3940UWD, AHA-2930CU, AHA-2930C, AHA-2930B, AHA-2930, AHA-2930UW
This information applies to the following Operating System(s):
- Red Hat Linux 8
- Red Hat Linux 7.3
- Red Hat Linux 7.2
- Red Hat Linux 7.1
- Red Hat Linux 7
- Red Hat Linux 6.2
- Red Hat Linux 6.1
- SuSE Linux 6.4
- SuSE Linux 7.0
Answer
1) Get the version of kernel that you are running. Run 'uname -a' and note the kernel version. e.g. 2.4.18-3
2) For recovery purposes, it is a good idea to have the Linux recovery floppy created prior to performing the driver update. To create a recovery disk, run '/sbin/mkbootdisk <your kernel version here>;' e.g. /sbin/mkbootdisk 2.4.18-3
3) Edit /etc/modules.conf and add the following line to the end of the file:
options scsi_mod max_scsi_luns=255
4) For the change to take effect, you must recreate your initrd boot image. First, save your original boot image by running 'cp /boot/initrd-<kernel version>;.img /boot/initrd-<kernel version>;.old'.
5) Now, create the new initrd image by running 'mkinitrd –f /boot/initrd-<kernel version>;.img <kernel version>;'.
6) If you are using GRUB for your boot loader, simply reboot. You should now see LUNs above LUN:0 being detected when the SCSI driver loads.
7) If you are using LILO for your boot loader, run 'lilo' then reboot.
If the system will not boot properly after the change, boot from the recovery diskette and restore the initrd-<kernel version>;.old. Again, if you are using GRUB, reboot. If you are using LILO, run 'lilo' then reboot. |
|