System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

cannot delete file from advfs

Liu_4
Occasional Visitor

cannot delete file from advfs

Hi,
I am new to Tru64.
Just ran into this problem. By doing "ls" I can see two files in the directory, if I do "ls -al" got this message:

# ls
ora_18939.aud ora_19113.aud
# ls -al
./ora_18939.aud not found
./ora_19113.aud not found
total 24
drwxr-xr-x 2 oracle dba 16384 Sep 20 13:18 .
drwxr-xr-x 3 oracle dba 8192 Sep 20 13:18 ..

And when I tried to remove the files using rm -rf *., It did nothing. Anybody has idea about this? Thanks a lot.

Fred
6 REPLIES
Venkatesh BL
Honored Contributor

Re: cannot delete file from advfs

Hi Fred,

This looks like an NFS problem. Is this directory mounted thru NFS?.

The directory file has entries about the files mentioned, but they don't exist.

rgds,
blv
Liu_4
Occasional Visitor

Re: cannot delete file from advfs

Thanks for reply blv.

It is mounted through advfs, not NFS.
Those files either not exist, or somehow system can not collect their file status with "ls -al" and other command( rm, du -k ).
Michael Schulte zur Sur
Honored Contributor

Re: cannot delete file from advfs

Hi,

I would suggest to check the binary errorlog for hardware errors. You could also try
dd if=/devicefilesetison of=/dev/null bs=1024k
Then I would umount the fileset these files are on and run a verify to detect inconsistencies in the fileset.
Then you could delete and recreate the directory the files are in.

greetings,

Michael
Ralf Puchner
Honored Contributor

Re: cannot delete file from advfs

it is not wise to use "rm *.", try "rm ./ora_*" instead.

Maybe the files are still open by another process or advfs is out of sync with his quota file.

So use fuser to check if file is still in use or shutdown in single user mode using quotacheck to verify proper filesystem information.
Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: cannot delete file from advfs

Fred,
when you use rm -f you will not get any error message. try rm only.

Ralf,
as first ls statement shows there are only two files in the dir, so no danger of "collateral damage" ;-)

greetings,

Michael
Johan Brusche
Honored Contributor

Re: cannot delete file from advfs


And when all of the above fails, try /sbin/advfs/fixfdmn (if your running an up-to-date Tru64 version) or /sbin/advfs/verify (if you run a somewhat older Tru64 rev.) this in view of a possible AdvFS filedomain corruption.

_Johan_.

_JB_