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

Problem to delete a directory

toscanini montaño_1
Occasional Contributor

Problem to delete a directory

I want to delete a directory whose contents are files with the following format:

hostname:/dragon-manager.ear /integration.jar>ls -la
./AlarmNotificationWSService1652065140566895740.wsdl not found
./RemoteManagerRequestsWSService2898549922666698308.wsdl not found
total 4
drwxrwxrwx 2 root root 2048 Mar 11 09:46 .
drwxr-x--- 3 dragon dragon 96 Mar 4 06:49 ..

By using the rmdir command to delete the directory, the system opeation throws me the following comments:
hostname: /dragon-manager.ear>rmdir -f integration.jar/
rmdir: integration.jar/: Directory not empty

By using the rm command to delete the contents of the directory, the system operation throws me the following line:
hostname: /dragon-manager.ear/integration.jar>rm -f *
rm: cannot stat AlarmNotificationWSService1652065140566895740.wsdl: No such device or address
rm: cannot stat RemoteManagerRequestsWSService2898549922666698308.wsdl: No such device or address

Could someone tell me how I can resolve this problem and delete the integration.jar directory?

Thanks all
7 REPLIES
melvyn burnard
Honored Contributor

Re: Problem to delete a directory

have you tried
rm -rf integration.jar
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
toscanini montaño_1
Occasional Contributor

Re: Problem to delete a directory

Yes I did, the result is:

tmp014:/dragon-manager.ear>rm -rf integration.jar
rm: cannot stat integration.jar/AlarmNotificationWSService1652065140566895740.wsdl: No such device or address
rm: cannot stat integration.jar/RemoteManagerRequestsWSService2898549922666698308.wsdl: No such device or address
rm: directory integration.jar not removed. Directory not empty
Dennis Handly
Acclaimed Contributor

Re: Problem to delete a directory

>No such device or address

Typically this means the disk is bad or the filesystem is corrupted. Are there any I/O errors logged in syslog.log?
You need to unmount it and run fsck(1m).
Dennis Handly
Acclaimed Contributor

Re: Problem to delete a directory

That's all assuming this is not a MVFS filesystem.
toscanini montaño_1
Occasional Contributor

Re: Problem to delete a directory

Hi Dennis,

The file system is a vxfs and the physical location is on a EVA Storage.

about your first question, yes I have some error in syslog file:

Mar 14 06:43:25 hostname vmunix: vxfs: WARNING: msgcnt 226 mesg 016: V-2-16: vx_ilisterr: vx_iread_2 - /opt/jboss-4.2.3.GA/server/DRAGON01Manager file system e
rror reading inode 1498
Dennis Handly
Acclaimed Contributor

Re: Problem to delete a directory

>I have some error in syslog file: file system error reading inode 1498

Is this the inode of your bad directory?
ll -di
ls -ia

toscanini montaño_1
Occasional Contributor

Re: Problem to delete a directory

Dennis,

That´s right, The initial error in the syslog.log file refer to inode 1498

Mar 11 09:33:49 hostname vmunix: vxfs: WARNING: msgcnt 56 mesg 008: V-2-8: vx_direrr: vx_dirlook_4 - /DRAGON01Manager file system dir
inode 1363 dev/block 0/263779 dirent inode 1498 error 6