Patch Name: PHCO_29765 Patch Description: s700_800 11.00 umount(1M) - cumulative patch Creation Date: 03/11/03 Post Date: 03/11/18 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: No Category Tags: defect_repair enhancement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_29765 Symptoms: PHCO_29765: Service Guard may experience umount(1M) failures. Though the filesystem is mounted, umount(1M) may exit with following error: #umount /YYY umount: cannot find /YYY in /etc/mnttab cannot unmount /YYY PHCO_27508: This product update is a member of a set needed to enable the optional HP-UX Device IDs feature. Upon installation, the HP-UX Device IDs bundle (DevIDs11) will install the full set of product updates (including this one) necessary to enable the Device IDs feature. If the HP-UX Device IDs product (DeviceIDs11) is not installed, this product update to HP-UX will have no impact on your system. PHCO_26451: If an entry for a mounted filesystem in the mount table is corrupted, the umount(1m) command fails to unmount that filesystem. User will get the following error messages: umount: cannot find /dev/xxx/yyy in /etc/mnttab cannot unmount /dev/xxx/yyy PHCO_16583: Locking scheme for /etc/mnttab causes deadlocks. Defect Description: PHCO_29765: umount(1M) does not serialize its reading of /etc/mnttab with writers of /etc/mnttab. Hence one instance of umount(1M) may read a partially written file, hence it may not find the file system it is supposed to umount, which causes it to fail. Resolution: umount(1M) now acquires a write lock on /etc/mnttab, even when reading, which ensures /etc/mnttab is consistent. It also prevents the problem addressed in PHCO_16583, wherein readers starve the writers of /etc/mnttab. PHCO_27508: This product update contains minor enhancements required to enable the HP-UX Device IDs feature. When AutoFS unmounts a filesystem, it obtains the device id from the filesystem server. If that server is slow, or not responding, there may be a delay of 15 seconds or more. On systems with many AutoFS managed filesystems and many slow or non-responding servers, the cumulative delay may be quite significant. Resolution: Ensure that device IDs are put in /etc/mnttab when Device IDs feature is activated. PHCO_26451: The current interfaces to the mnttab file are not efficient to assure the kernel table and mnttab in sync. Resolution: Modify umount.c code to ensure that the mnttab file and the kernel mount table are in sync. PHCO_16583: When a process reads /etc/mnttab, it locks the file. This blocks other processes from reading the file. Resolution: The libc routines that access /etc/mnttab need to change so that they no longer lock on read; they must only lock on write. In cooperation with libc changes, the umount(1M) command needs some integrity checks when it reads /etc/mnttab, to help compensate for not having the read lock. This prevents umount(1M) from using an out-of-date /etc/mnttab file, or from using a corrupt or empty file and failing with, "umount: file system table may be corrupt". In addition, umount(1M) needs to change the way it updates /etc/mnttab, so that write-locking is minimized; it must use the new delmntent(3C) routine. All these changes help reduce the possibility of a deadlock situation, especially in HA environments, where multiple processes may be attempting to access and/or update /etc/mnttab at the same time. Enhancement: No (superseded patches contained enhancements) PHCO_27508: This product update contains minor enhancements required to enable the HP-UX Device IDs feature. SR: 8606313140 8606241982 8606238896 1653290346 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/umount /usr/sbin/umount what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/umount: $Revision: 82.1.1.7 $ $ PATCH/11.00:PHCO_27731 Oct 11 2002 12:59:13 $ PATCH_11_00: umount.o 03/11/03 OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/sbin/umount: $Revision: 82.1.1.7 $ $ PATCH/11.00:PHCO_27731 Oct 11 2002 12:59:13 $ PATCH_11_00: umount.o 03/11/03 cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1689084487 233472 /sbin/umount OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 1689084487 233472 /usr/sbin/umount Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_16583 PHCO_26451 PHCO_27508 Equivalent Patches: PHCO_27957: s700: 11.11 s800: 11.11 Patch Package Size: 150 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_29765 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29765.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29765. 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_29765.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29765.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29765.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None