Patch Name: PHCO_8207 Patch Description: s700_800 10.20 LVM commands cumulative patch Creation Date: 96/08/07 Post Date: 96/08/14 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: N/A Filesets: LVM.LVM-RUN Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_8207 Symptoms: PHCO_8207: This patch fixes two different problems: "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. vgimport -s -m xxx would not work with >255 pvs on a system. PHCO_7980: 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. Defect Description: PHCO_8207: This patch fixes two different problems: Fix a problem in vgcfgbackup command to backup all PV structures on the disk. Don't try to calculate how many PV needed to be backed up, because PVs in the VG might not necessary contigeous. Modified code in vgimport command to allocate a bigger array to hold pvnames and pvdata. PHCO_7980: The vgcfgrestore command normally refuses to restore configuration data when there are physical volume mismatch between the kernel and the backup file. The following message will be displayed to inform user on the problem: "Mismatch between the backup file and the running kernel: Kernel indicates X disks for /dev/vgname, /etc/lvmconf/vgname indicates Y disks. Cannot proceed with the restoration. Deactivate the Volume Group and try again." SR: 1653175737 4701332106 5003325159 Patch Files: /usr/newconfig/sbin/lvchange.mir /usr/newconfig/usr/sbin/lvchange.mir /sbin/lvchange /usr/sbin/lvchange what(1) Output: /usr/newconfig/sbin/lvchange.mir: $Revision: 78.57.1.3.2.5 $ MIRROR PRODUCT ic12_r10dav_gs libc.a_ID@@/main/r10dav/libc_dav/bvd_ dav/1 /ux/libc/libs/libc/archive_pa1/libc.a_ID May 1 1996 11:43:41 PATCH_10_20MR: /opt/langtools/lib/crt0.o lvdisplay.o lvlnboot.o lvremove.o lvrmboot.o pvchange.o pvcreate.o pvdisplay.o pvmove.o sdstolvm.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgcr eate.o vgdisplay.o vgexport.o vgextend.o vgi mport.o vgreduce.o vgremove.o vgscan.o lvcha nge_m.o lvcreate_m.o lvextend_m.o lvmerge_m. o lvmmain_m.o lvreduce_m.o lvsplit_m.o lvsyn c_m.o nomwcsyncd_m.o vgsync_m.o hpux_rel_m.o 96/08/07 /usr/newconfig/usr/sbin/lvchange.mir: $Revision: 78.57.1.3.2.5 $ MIRROR PRODUCT PATCH_10_20MR: /opt/langtools/lib/crt0.o lvdisplay.o lvlnboot.o lvremove.o lvrmboot.o pvchange.o pvcreate.o pvdisplay.o pvmove.o sdstolvm.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgcr eate.o vgdisplay.o vgexport.o vgextend.o vgi mport.o vgreduce.o vgremove.o vgscan.o lvcha nge_m.o lvcreate_m.o lvextend_m.o lvmerge_m. o lvmmain_m.o lvreduce_m.o lvsplit_m.o lvsyn c_m.o nomwcsyncd_m.o vgsync_m.o hpux_rel_m.o 96/08/07 /sbin/lvchange: $Revision: 78.57.1.3.2.5 $ ic12_r10dav_gs libc.a_ID@@/main/r10dav/libc_dav/bvd_ dav/1 /ux/libc/libs/libc/archive_pa1/libc.a_ID May 1 1996 11:43:41 PATCH_10_20MR: /opt/langtools/lib/crt0.o lvdisplay.o lvlnboot.o lvremove.o lvrmboot.o pvchange.o pvcreate.o pvdisplay.o pvmove.o sdstolvm.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgcr eate.o vgdisplay.o vgexport.o vgextend.o vgi mport.o vgreduce.o vgremove.o vgscan.o lvcha nge.o lvcreate.o lvextend.o lvmerge.o lvmmai n.o lvreduce.o lvsplit.o lvsync.o nomwcsyncd .o vgsync.o hpux_rel.o 96/08/07 /usr/sbin/lvchange: $Revision: 78.57.1.3.2.5 $ PATCH_10_20MR: /opt/langtools/lib/crt0.o lvdisplay.o lvlnboot.o lvremove.o lvrmboot.o pvchange.o pvcreate.o pvdisplay.o pvmove.o sdstolvm.o vgcfgbackup.o vgcfgrestore.o vgchange.o vgcr eate.o vgdisplay.o vgexport.o vgextend.o vgi mport.o vgreduce.o vgremove.o vgscan.o lvcha nge.o lvcreate.o lvextend.o lvmerge.o lvmmai n.o lvreduce.o lvsplit.o lvsync.o nomwcsyncd .o vgsync.o hpux_rel.o 96/08/07 cksum(1) Output: 965633992 618496 /usr/newconfig/sbin/lvchange.mir 2448463161 393216 /usr/newconfig/usr/sbin/lvchange.mir 59747657 606208 /sbin/lvchange 1579237428 376832 /usr/sbin/lvchange Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_7980 Equivalent Patches: PHCO_8205: s700: 10.01 s800: 10.01 PHCO_8206: s700: 10.10 s800: 10.10 Patch Package Size: 2010 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_8207 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_8207.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_8207.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_8207. 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_8207.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_8207.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None