Hi All,
I am trying to remove files from a directory, or even remove the entire directory, but nothing works.
Server is AIX 7.2
Here is the situation:
Directory "backup" contains the following files:
# cd backup
# ls
bwaix2_backup_202204281657.log bwaix2_backup_202205031657.log
bwaix2_backup_202204281657.log.gz bwaix2_backup_202205031657.log.gz
bwaix2_backup_202204291657.err.gz bwaix2_backup_202205041700.err.gz
bwaix2_backup_202204291657.log bwaix2_backup_202205041700.log
bwaix2_backup_202204291657.log.gz bwaix2_backup_202205041700.log.gz
bwaix2_backup_202204301657.err bwaix2_backup_202205051700.err.gz
bwaix2_backup_202204301657.log bwaix2_backup_202205051700.log
bwaix2_backup_202204301657.log.gz bwaix2_backup_202205051700.log.gz
bwaix2_backup_202205011657.err bwaix2_backup_202205061700.err
bwaix2_backup_202205011657.log bwaix2_backup_202205061700.log
bwaix2_backup_202205021657.err bwaix2_backup_202205061700.log.gz
bwaix2_backup_202205021657.log bwaix2_backup_202205071700.err
bwaix2_backup_202205021657.log.gz bwaix2_backup_202205071700.log
bwaix2_backup_202205031657.err
#
trying to remove any file or all of them:
# rm *
rm: bwaix2_backup_202204281657.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204281657.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204291657.err.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204291657.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204291657.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204301657.err: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204301657.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202204301657.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205011657.err: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205011657.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205021657.err: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205021657.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205021657.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205031657.err: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205031657.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205031657.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205041700.err.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205041700.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205041700.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205051700.err.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205051700.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205051700.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205061700.err: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205061700.log: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205061700.log.gz: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205071700.err: A file or directory in the path name does not exist.
rm: bwaix2_backup_202205071700.log: A file or directory in the path name does not exist.
#
Even with force:
# rm -f *
# ls
bwaix2_backup_202204281657.log bwaix2_backup_202205031657.log
bwaix2_backup_202204281657.log.gz bwaix2_backup_202205031657.log.gz
bwaix2_backup_202204291657.err.gz bwaix2_backup_202205041700.err.gz
bwaix2_backup_202204291657.log bwaix2_backup_202205041700.log
bwaix2_backup_202204291657.log.gz bwaix2_backup_202205041700.log.gz
bwaix2_backup_202204301657.err bwaix2_backup_202205051700.err.gz
bwaix2_backup_202204301657.log bwaix2_backup_202205051700.log
bwaix2_backup_202204301657.log.gz bwaix2_backup_202205051700.log.gz
bwaix2_backup_202205011657.err bwaix2_backup_202205061700.err
bwaix2_backup_202205011657.log bwaix2_backup_202205061700.log
bwaix2_backup_202205021657.err bwaix2_backup_202205061700.log.gz
bwaix2_backup_202205021657.log bwaix2_backup_202205071700.err
bwaix2_backup_202205021657.log.gz bwaix2_backup_202205071700.log
bwaix2_backup_202205031657.err
#
Trying to remove by inode:
# ls -i
16420 bwaix2_backup_202204281657.log
16418 bwaix2_backup_202204281657.log.gz
16427 bwaix2_backup_202204291657.err.gz
16426 bwaix2_backup_202204291657.log
16425 bwaix2_backup_202204291657.log.gz
16424 bwaix2_backup_202204301657.err
16423 bwaix2_backup_202204301657.log
16428 bwaix2_backup_202204301657.log.gz
16430 bwaix2_backup_202205011657.err
16429 bwaix2_backup_202205011657.log
16432 bwaix2_backup_202205021657.err
16431 bwaix2_backup_202205021657.log
16433 bwaix2_backup_202205021657.log.gz
16435 bwaix2_backup_202205031657.err
16434 bwaix2_backup_202205031657.log
16436 bwaix2_backup_202205031657.log.gz
16441 bwaix2_backup_202205041700.err.gz
16440 bwaix2_backup_202205041700.log
16439 bwaix2_backup_202205041700.log.gz
16444 bwaix2_backup_202205051700.err.gz
16443 bwaix2_backup_202205051700.log
16442 bwaix2_backup_202205051700.log.gz
16438 bwaix2_backup_202205061700.err
16437 bwaix2_backup_202205061700.log
16445 bwaix2_backup_202205061700.log.gz
16447 bwaix2_backup_202205071700.err
16446 bwaix2_backup_202205071700.log
#
# find . -i 16446 -exec rm {} \;
find: 0652-019 The status on ./bwaix2_backup_202204281657.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204281657.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204291657.err.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204291657.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204291657.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204301657.err is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204301657.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202204301657.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205011657.err is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205011657.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205021657.err is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205021657.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205021657.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205031657.err is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205031657.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205031657.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205041700.err.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205041700.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205041700.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205051700.err.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205051700.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205051700.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205061700.err is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205061700.log is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205061700.log.gz is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205071700.err is not valid.
find: 0652-019 The status on ./bwaix2_backup_202205071700.log is not valid.
#
Trying to remove the whole directory:
# cd ..
# rm -fr backup
is hang for ever....
Checking the status of the dirctory:
# istat backup
Inode 16387 on device 10/6 Directory
Protection: rwxr-xr-x
Owner: 0(root) Group: 0(system)
Link count: 2 Length 8192 bytes
Last updated: Thu Jul 7 13:15:40 IDT 2022
Last modified: Thu Jul 7 13:15:40 IDT 2022
Last accessed: Thu Jul 7 17:10:32 IDT 2022
So it might be a filesystem corruption.
I run fsck on the filesystems but no errors where found.
I'll appreciate any suggestions.
Thanks
Jacob Fried
------------------------------
Yaacov Fried
------------------------------