AIX bug on 5.3 TL11 SP6 directory corruption

After patching to AIX 5.3 TL11 SP6 with fileset bos.mp , bos.mp64 5.3.11.6 a directory became unusable and corrupt , the only solution was to unmount the filesystem and mount it again. fsck did not report any errors. I managed to re-create the error :-

$ cd /test
$ ls -l
total 0
-rw——-    1 root     system            0 Jul 22 10:59 one
drwxr-xr-x    2 root     system          256 Jul 22 10:59 onedir
-rw-r–r–    1 root     system            0 Jul 22 10:59 three
drwxr-xr-x    2 root     system          256 Jul 22 10:59 threedir
-rw-r–r–    1 root     system            0 Jul 22 10:59 two
drwxr-xr-x    2 root     system          256 Jul 22 11:00 twodir
$ mv -f one twodir
mv: 0653-401 Cannot rename one to twodir/one:
The file access permissions do not allow the specified action.
$ ls -l
ls: 0653-341 The file ./one does not exist.
ls: 0653-341 The file ./twodir does not exist.
total 0
drwxr-xr-x    2 root     system          256 Jul 22 10:59 onedir
-rw-r–r–    1 root     system            0 Jul 22 10:59 three
drwxr-xr-x    2 root     system          256 Jul 22 10:59 threedir
-rw-r–r–    1 root     system            0 Jul 22 10:59 two
$

$ cd twodir
ksh: twodir: 0403-036 The specified directory is not valid.
$ find twodir
find: 0652-019 The status on sixdir is not valid.
$
You end up with a directory you can do anything with –  and any sub directories are also unavailable. No data is actually lost – if you unmount and remount the filesystem all the data is available again.

The fix is to install APAR IZ96928  which requires a reboot.

Leave a Reply

Your email address will not be published. Required fields are marked *