Patch Name: PHCO_12040 Patch Description: s700_800 10.16 LVM commands cumulative patch Creation Date: 97/08/08 Post Date: 97/10/07 Hardware Platforms - OS Releases: s700: 10.16 s800: 10.16 Products: N/A Filesets: LVM.LVM-RUN Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_12040 Symptoms: PHCO_12040: The LVM relocation policy has two settings; "y", mark a bad block in the bad block directory and relocate the block to an alternate location, and "n", mark a bad block in the bad block directory but do not relocate the block to a new location. This causes problems for intelligent disks like EMC Symmetrix disks which can "repair" themselves. The bad block directory entry prevents access to the good, repaired data on disk. (PHCO_11288) Several customers using LVM have expressed the desire to have LVM return application I/O's with an I/O error status rather than hanging onto them, when a Logical Volume is powerfailed. (PHCO_8458) "panic lv_activatevg: num_pvols" After vgcfgrestore'ing to ALL of the current PVs in a VG, on next full activation the system can panic if the VG is setup such that the PVs are NOT sequentially allocated within the VGDA. The problem is with vgcfgbackup command which doesn't write a valid lvmconf file when there are missing PVs in a VG. (PHCO_8205) This patch added a new option "-R" to vgcfgrestore command to force restoring configuration data when there are physical volume mismatch between the kernel and the backup file due to missing pvlinks. (PHCO_7978) This patch is to fix vgcfgbackup so that when vgcfgbackup is run, NIKE alternate link will not be invoked to avoid auto_trespass from happening. (PHCO_7829) (PHCO_6701) This patch contain the following fixes: 1. a new option "-f" is added to vgreduce to force reduce a missing pv in a vg. 2. lvlnboot -v will continue to display boot information regardless of inactivated vg on the system. 3. change sleep interval from 5 sec to 1 sec to allow NIKE disks timeout on reading LVM meta data. This patch fix vgscan to support > 255 disks on a system (PHCO_6519) (PHCO_6356) LVM commands displayed incorrect information when NIKE disks are configured. For example: 1. lvlnboot displayed incorrect boot disk information. 2. vgscan rebuild lvmtab incorrectly with pv links. 3. pvdisplay displayed incorrect primary link information. "vgchange -a r " fails. (PHCO_6270) when doing manually hot swap disk, lvreduce hang (PHCO_5841) The command "vgchange -a r " fails with the message: Activation mode requested for the volume group conflicts with configured mode. (PHCO_5664) PHCO_11858: the lvm subsystem does not handle dates after 1999. PHCO_10054: A non-root process can gain access to a root shell. Defect Description: PHCO_12040: The LVM relocation policy has two settings; "y", mark a bad block in the bad block directory and relocate the block to an alternate location, and "n", mark a bad block in the bad block directory but do not relocate the block to a new location. This causes problems for intelligent disks like EMC Symmetrix disks which can "repair" themselves. The bad block directory entry prevents access to the good, repaired data on disk. (PHCO_11288) Several customers using LVM have expressed the desire to have LVM return application I/O's with an I/O error status rather than hanging onto them, when a Logical Volume is powerfailed. (PHCO_8458) "panic lv_activatevg: num_pvols" After vgcfgrestore'ing to ALL of the current PVs in a VG, on next full activation the system can panic if the VG is setup such that the PVs are NOT sequentially allocated within the VGDA. The problem is with vgcfgbackup command which doesn't write a valid lvmconf file when there are missing PVs in a VG. (PHCO_8205) This patch added a new option "-R" to vgcfgrestore command to force restoring configuration data when there are physical volume mismatch between the kernel and the backup file due to missing pvlinks. (PHCO_7978) This patch is to fix vgcfgbackup so that when vgcfgbackup is run, NIKE alternate link will not be invoked to avoid auto_trespass from happening. (PHCO_7829) (PHCO_6701) This patch contain the following fixes: 1. a new option "-f" is added to vgreduce to force reduce a missing pv in a vg. 2. lvlnboot -v will continue to display boot information regardless of inactivated vg on the system. 3. change sleep interval from 5 sec to 1 sec to allow NIKE disks timeout on reading LVM meta data. This patch fix vgscan to support > 255 disks on a system (PHCO_6519) (PHCO_6356) LVM commands displayed incorrect information when NIKE disks are configured. For example: 1. lvlnboot displayed incorrect boot disk information. 2. vgscan rebuild lvmtab incorrectly with pv links. 3. pvdisplay displayed incorrect primary link information. "vgchange -a r " fails. (PHCO_6270) when doing manually hot swap disk, lvreduce hang (PHCO_5841) The command "vgchange -a r " fails with the message: Activation mode requested for the volume group conflicts with configured mode. (PHCO_5664) PHCO_11858: The subsystem was not designed with the year 2000 in mind. PHCO_10054: With certain command line arguments a non-root process can gain access to a root shell. SR: 4701346494 Patch Files: /sbin/lvchange /usr/sbin/lvchange what(1) Output: /sbin/lvchange: $Revision: SecureWare Level mlpmp37 $ $Header: Secur eWare Release hpux_mlpmp $ $Date: Thu Aug 7 16:48:52 PDT 1997 $ cmd/lvm/vgcfgbackup.c, hpux, hpux_mlpmp, 10.16-13 $D ate: 97/08/07 15:38:00 $ $Revision: 1.2 PATC H_10.16 (PHCO_12040) $ $Revision: 70.5 $ cmd/lvm/lvmmain.c, hpux, hpux_mlpmp $Date: 97/08/06 16:25:04 $ $Revision: 1.2 PATCH_10.16 (PHCO_ 12040) $ $Revision: 74.33.3.38 $ MIRROR PRODUCT cmd/lvm/lib/lvmtab.c, hpux, hpux_mlpmp, 10.16-13 $Da te: 97/08/07 15:38:00 $ $Revision: 1.2 PATCH _10.16 (PHCO_12040) $ cmd/lvm/lib/lvmraw.c, hpux, hpux_mlpmp, 10.16-13 $Da te: 97/08/07 15:37:59 $ $Revision: 1.3 PATCH _10.16 (PHCO_12040) $ 81 1.15 lib/libsecurity/mandlib.c, libsecuri ty_macilb, hpux_mlpmp, mlpmp27 $Date: 03/17/ 95 14:06:49 $ $Revision: PATCH_10.16 (PHKL_ 11066) $ Hewlett-Packard GTL lib/libsecurity/authcap.c, libsecurity_ia, hpux_mlpm p, mlpmp27 $Date: 97/05/16 12:48:44 $Revisio n: 1.12 PATCH_10.16 (PHCO_8592) PATCH/10_01 PHCO_6595 $Revision: 74.9.1.16.1.19 $ lib/libc/gen/mktemp.c, hpux, hpux_mlpmp, 10.16-5a $D ate: 97/08/07 15:17:20 $ $Revision: 1.2 PATC H_10.16 (PHCO_11185) $ /usr/sbin/lvchange: $Revision: SecureWare Level mlpmp37 $ $Header: Secur eWare Release hpux_mlpmp $ $Date: Thu Aug 7 16:48:52 PDT 1997 $ cmd/lvm/vgcfgbackup.c, hpux, hpux_mlpmp, 10.16-13 $D ate: 97/08/07 15:38:00 $ $Revision: 1.2 PATC H_10.16 (PHCO_12040) $ $Revision: 70.5 $ cmd/lvm/lvmmain.c, hpux, hpux_mlpmp $Date: 97/08/06 16:25:04 $ $Revision: 1.2 PATCH_10.16 (PHCO_ 12040) $ $Revision: 74.33.3.38 $ MIRROR PRODUCT cmd/lvm/lib/lvmtab.c, hpux, hpux_mlpmp, 10.16-13 $Da te: 97/08/07 15:38:00 $ $Revision: 1.2 PATCH _10.16 (PHCO_12040) $ cmd/lvm/lib/lvmraw.c, hpux, hpux_mlpmp, 10.16-13 $Da te: 97/08/07 15:37:59 $ $Revision: 1.3 PATCH _10.16 (PHCO_12040) $ cksum(1) Output: 4034311036 724992 /sbin/lvchange 437357489 380928 /usr/sbin/lvchange Patch Conflicts: None Patch Dependencies: s700: 10.16: PHKL_12280 s800: 10.16: PHKL_12281 Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_10054 PHCO_11858 Equivalent Patches: None Patch Package Size: 1140 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_12040 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_12040.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_12040.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_12040. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_12040.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_12040.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: This command patch, PHCO_12040, depends on the kernel patch PHKL_12280 (s700) or PHKL_12281 (s800). You must first install the kernel patch before installing patch PHCO_12040.