Patch Name: PHCO_29258 Patch Description: s700_800 11.00 fsck_vxfs(1M) JFS3.3 cumulative patch Creation Date: 30/05/03 Post Date: 03/08/22 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: HP JFS3.3 Filesets: JFS.JFS-BASE-KRN,fr=3.3,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_29258: ABORT fsck_vxfs(1M) fails to fix a file system with more than 8 million inodes and aborts. PHCO_24036: CORRUPTION Two consecutive invocations of fsck_vxfs(1M) can result in a directory corruption. Category Tags: defect_repair general_release critical halts_system corruption Path Name: /hp-ux_patches/s700_800/11.X/PHCO_29258 Symptoms: PHCO_29258: ( SR: 8606308172 CR: JAGae71207 ) fsck error: fileset 1 primary-ilist inode 65 has invalid size. Errors encountered are as follows: #fsck -F vxfs /dev/vg01/lvol2 fileset 1 primary-ilist inode 65 has invalid size \ (2611675136) fileset 1 primary-ilist inode 97 has invalid size \ (2611675136) no valid ILISTs for fileset 999 file system check failure, aborting ... PHCO_24036: ( SR: 8606131436 CR: JAGad00586 ) fsck_vxfs(1M) goes into infinite loop as follows: # fsck -F vxfs -o /dev/vg01/rlvol2 replay in progress file system is not clean, full fsck required pass0 - checking structural files vxfs fsck: structural inode 97 (Primary Ilist 1) failed validationclear? (ynq)y pass1 - checking inode sanity and blocks pass2 - checking directory linkage pass3 - checking reference countsrebuild structural files? (ynq)y pass0 - checking structural files vxfs fsck: structural inode 97 (Primary Ilist 1) failed validation clear? (ynq)y Pass2 ... . ( SR: 8606187984 CR: JAGad57192 ) If fsck_vxfs(1M) is run twice in a row in a log reply mode it may corrupt the directory entries. A full fsck will be required, and the lost data should be manually restored from lost+found to recover. Defect Description: PHCO_29258: ( SR: 8606308172 CR: JAGae71207 ) fsck_vxfs(1M) fails when the size of IFILT for the unnamed fileset grows beyond 2 GB. When filesystem contains more than 8 million inodes, IFILT for the unnamed fileset grows beyond 2 GB. Also, the largefiles flag for structural fileset is not set. When fsck_vxfs(1M) is run on such filesystem, it fails with the error messages reported in symptoms. Resolution: Add an extra condition to check if the file is indeed IFILT for the str fileset, if the version of the disklayout > 2, if the fileset isn't NULL and if the features flag for unnamed fileset is set to VX_FSETBIT_LARGEFILES. This patch expects that the features flag for the unnamed fileset to be set to VX_FSETBIT_LARGEFILES. If its not set to VX_FSETBIT_LARGEFILES then we can hit the errors that are reported in the symptoms. In such an eventuality, setting of the features flag on the unnamed fileset will solve this problem. This could be done by using the fsadm command: fsadm -F vxfs -o largefiles /dev/vgXX/rlvolX PHCO_24036: ( SR: 8606131436 CR: JAGad00586 ) fsck_vxfs(1M) fails to validate structural inodes and goes into an infinite loop. The filesystem remains unmountable. Resolution: The code was added to correctly validate structural inodes and to fix the corrupted ones. ( SR: 8606187984 CR: JAGad57192 ) In reply mode fsck_vxfs attempts to optimize the directory structure. It moves the entries towards the beginning of a list, if there is room. If interrupted and restarted again in a log reply mode it will not be aware of the moved entries, and will try to write to the old locations of the moved directories, as per the intent log. Resolution: Directory optimization during the log reply removed from fsck_vxfs(1M) Enhancement: No SR: 8606308172 8606131436 8606187984 Patch Files: JFS.JFS-BASE-KRN,fr=3.3,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/fs/vxfs3.3/fsck what(1) Output: JFS.JFS-BASE-KRN,fr=3.3,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/fs/vxfs3.3/fsck: fsck_vxfs Jun 16 2003 PATCH_11_00 PHCO_292 58 cksum(1) Output: JFS.JFS-BASE-KRN,fr=3.3,fa=HP-UX_B.11.00_32/64,v=HP: 240809615 495616 /sbin/fs/vxfs3.3/fsck Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_24036 Equivalent Patches: None Patch Package Size: 280 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_29258 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29258.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29258. 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_29258.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29258.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29258.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None