HP SureStore 7400 Linux Configuration HP VA 7100/7400 - Page 12

return FAILURE, return SUCCESS

Page 12 highlights

Linux Configuration HP VA 7100/7400 5. Apply patch to allow pass-through SCSI commands to succeed. Open the file "scsi_error.c" with vi, and search for this entry: case DID_ABORT: /* * Note - this means that we just report the status back to the * top level driver, not that we actually think that it indicates * success. */ return FAILURE; The "return FAILURE;" line needs to be changed to "return SUCCESS;" 6. Edit the kernel Makefile to set the EXTRAVERSION to discriminate between the "stock" 2.2.16-3 or 2.2.19-6.2.7 kernel, and the modified version you will make, as follows: VERSION = 2 PATCHLEVEL = 2 SUBLEVEL = 16 EXTRAVERSION = -3HP 7. Build and install the kernel. Remember to configure LILO to boot your new kernel, but keep the option of booting to the previous version in case the new version won't boot. NOTE: The kernel should be built with loadable modules. This will allow you to remove and insert the HBA driver to force an initialization and corresponding scan for current LUNs. NOTE: {version} = 2.2.16-3 or 2.2.19-6.2.7 cd /usr/src/linux make mrproper Å only once on SMP systems make clean Å only if re-building make xconfig Å you will need an initial .config file as noted above make dep make bzImage make modules make modules_install cp arch/i386/boot/bzImage /boot/vmlinuz-{version}HP cp System.map /boot/System.map-{version}HP cd /boot ln -fs System.map-{version}HP System.map modprobe loop mkinitrd -v -f /boot/initrd-{version}HP.img {version}HP By default Linux will probe SCSI devices for a single LUN. The "max_scsi_luns" parameter instructs the kernel to probe for multiple LUNs during boot-up. 8. Edit /etc/lilo.conf to point to the new boot image and to set the max_scsi_luns kernel parameter as follows: append="max_scsi_luns=8" The append statement can include multiple kernel directives as described in the following paragraph. Rev 2002-01-23 Page 12

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

Linux Configuration
HP VA 7100/7400
Rev 2002-01-23
Page 12
5. Apply patch to allow pass-through SCSI commands to succeed. Open the file "scsi_error.c" with
vi, and search for this entry:
case DID_ABORT:
/*
* Note - this means that we just report the status back to the
* top level driver, not that we actually think that it indicates
* success.
*/
return FAILURE;
The "
return FAILURE;
" line needs to be changed to "
return SUCCESS;
"
6. Edit the kernel Makefile to set the EXTRAVERSION to discriminate between the “stock” 2.2.16-3
or 2.2.19-6.2.7 kernel, and the modified version you will make, as follows:
VERSION = 2
PATCHLEVEL = 2
SUBLEVEL = 16
EXTRAVERSION = -3HP
7. Build and install the kernel. Remember to configure LILO to boot your new kernel, but keep the
option of booting to the previous version in case the new version won’t boot.
NOTE
: The kernel should be built with loadable modules. This will allow you to remove and insert
the HBA driver to force an initialization and corresponding scan for current LUNs.
NOTE:
{version} = 2.2.16-3 or 2.2.19-6.2.7
cd /usr/src/linux
make mrproper
only once on SMP systems
make clean
only if re-building
make xconfig
you will need an initial .config file as noted above
make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-{version}HP
cp System.map /boot/System.map-{version}HP
cd /boot
ln -fs System.map-{version}HP System.map
modprobe loop
mkinitrd -v -f /boot/initrd-{version}HP.img {version}HP
By default Linux will probe SCSI devices for a single LUN. The “max_scsi_luns” parameter instructs
the kernel to probe for multiple LUNs during boot-up.
8. Edit /etc/lilo.conf to point to the new boot image and to set the max_scsi_luns kernel parameter as
follows:
append=”max_scsi_luns=8”
The append statement can include multiple kernel directives as described in the following paragraph.