Patch Name: PHCO_27818 Patch Description: s700_800 11.00 ioscan(1M) cumulative patch Creation Date: 03/01/22 Post Date: 03/03/20 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_27818: ABORT ioscan(1M) core dumps during ignite recovery. Category Tags: defect_repair general_release critical halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHCO_27818 Symptoms: PHCO_27818: 1. ( SR:8606274099 CR:JAGae38177 ) When ioscan(1M) command is executed with '-u' option, it does not list usable devices which do not have a major number. 2. ( SR:8606281781 CR:JAGae45722 ) ioscan(1M) command core dumps during ignite recovery. PHCO_26161: 1. ( SR:8606232427 CR:JAGae01662 ) When installing HP-UX from ignite server, if B.11.11 install kernel is used, but later the user chooses to install B.11.00 real kernel, "ioscan" would dump core. PHCO_24199: 1.( SR: 8606199426 CR: JAGad68613 ) "ioscan -k" takes a long time to complete on systems with large configuration. For example, "ioscan -kf" would take around 13+ minutes on a SuperDome system with 8000+ disks. Defect Description: PHCO_27818: 1. ( SR:8606274099 CR:JAGae38177 ) 'ioscan -u' does not search for usable devices which do not have a major number, hence they are not listed. Resolution: Using a new search qualifier provided by PHKL_27729, or any of its superseding patches, 'ioscan -u' will list all the usable devices in the system. 2. ( SR:8606281781 CR:JAGae45722 ) The ioscan(1M) command uses uname(2) system call to identify the OS release before issuing performance improvement ioctls which have different ioctl numbers in B.11.00 and B.11.11. Under Ignite-UX environment uname(2) returns ignited kernel's OS release name instead of installed kernel's. Thus ioscan(1M) ended up by issuing the wrong ioctl, which resulted in a core dump. Resolution: The ioscan(1M) command now checks for the presence of an environment variable to know about the execution environment. If executing under Ignite-UX environment, ioscan(1M) command uses an environment variable set by Ignite-UX release version B.4.2 or later to identify the OS release name of the installed kernel. Based on this OS release name, ioscan(1M) command issues the appropriate ioctl. If not executing under Ignite-UX environment, ioscan(1M) continues to use uname(2), to know the OS release name. If used with Ignite-UX prior to release B.4.2, ioscan(1M) will work properly, but will not use performance improvement ioctls. PHCO_26161: 1. ( SR:8606232427 CR:JAGae01662 ) The two new ioctls introduced for performance improvement of "ioscan -k" have different ioctl numbers in B.11.00 and B.11.11. Thus the B.11.00 ioscan dumps core when run on B.11.11 kernel. Resolution: The fix includes a pair of 'new' ioctls that have the same values as that of B.11.11. The ioscan command will determine the OS release and make the corresponding ioctl call. PHCO_24199: 1.( SR: 8606199426 CR: JAGad68613 ) "ioscan -k" makes a discrete system call for each device on the system. With a large configuration system, the number of context switches between user and the kernel space would be very large, resulting in a long execution time for the command. Resolution: New interfaces have been implemented in the kernel to enable getting information for many devices through one system call. "ioscan" now uses these new interfaces delivered by kernel patch PHKL_24165 (or patches superseding it). Enhancement: No SR: 8606274099 8606281781 8606232427 8606199426 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/ioscan what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/ioscan: ioscan.c $Date: 2003-01-16 20:00:00 $Revision 80.5.1 .2 PATCH_11.00 (PHCO_27818) iosearch.c $Date: 2003-01-16 18:49:51 $Revision r11r os/2 PATCH_11.00 (PHCO_27818) $ PATCH/11.00:PHCO_95238 Dec 15 1998 14:52:58 $ cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 3828614921 217088 /sbin/ioscan Patch Conflicts: None Patch Dependencies: s700: 11.00: PHKL_27729 s800: 11.00: PHKL_27729 Hardware Dependencies: None Other Dependencies: ( SR:8606281781 CR:JAGae45722 ) The ioscan(1M) performance improvement ioctls are activated with Ignite-UX version B.4.2 or later. Ignite-UX release version B.4.2 is expected to be available by May 2003. ( SR:8606199426 CR:JAGad68613 ) The performance fix implemented in PHCO_24199 depends on the fix provided by patch PHKL_24165 or its superseding patch. If PHCO_24199 is installed without PHKL_24165 or its superseding patch, then the "ioscan -k" command will still work, but without any performance improvement. Supersedes: PHCO_24199 PHCO_26161 Equivalent Patches: None Patch Package Size: 240 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_27818 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_27818.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_27818. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_27818.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_27818.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_27818.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None