Operating System - HP-UX
1829102 Members
2568 Online
109986 Solutions
New Discussion

Trouble removing a directory name

 
Glenn Wagner
Advisor

Trouble removing a directory name

HP 725/100 running 10.20 File system is VXFS, single disk in a disk tower.
I have a directory the was "lost" during a defrag of the disk but the name of the directory still exists in the filesystem. I can only see the directory name with a straight ls command. If I do ll, it does not show up. If I try to rm or mv it, I get the message "cannot access: Function is not available". I need this directory name back. Any ideas on how I can get the name of the directory freed up?

tnx
Glenn
10 REPLIES 10
Vincenzo Restuccia
Honored Contributor

Re: Trouble removing a directory name

I have the same problem,workaround is reboot and after rm or mv is ok.
nancy rippey
Trusted Contributor

Re: Trouble removing a directory name

Try 'ls -q'. The q will print out any additional characters like ?, ^, etc. If that is the case then remove the file and associated characters and recreate it.
nrip
Glenn Wagner
Advisor

Re: Trouble removing a directory name

This is a critical server and I cannot reboot until tomorrow morning. I also could really use this directory tonight for a cron job.

The ls -q did not show anything extra.

Any other solutions other than rebooting?

Glenn
Bill Hassell
Honored Contributor

Re: Trouble removing a directory name

If ls works OK but ll does not, it may be a permission problem. For a directory to be examined, read permission must be available. To cd into a directory, execute permission must be granted. Normal permissions are 755 or rwx-r-xr-x. Removing something does NOT depend on the permissions of the file or directory you are removing, it requires write permission of the directory it is in.


Bill Hassell, sysadmin
Eileen Millen
Trusted Contributor

Re: Trouble removing a directory name

Another way to get rid of files or directories that have names that are messed up is with the file manager.
Glenn Wagner
Advisor

Re: Trouble removing a directory name

This issue is now resolved. Thank you for you input. I ended up running fsck on that particular disk because it was corrupted. Then I had to newfs it and restore my data to it. There were too many files lost to try to restore them each individually.

FYI The main issue was that the disk was corrupted. A reboot of the server would have worked but I would have needed to restore all the data any way since various files were already lost.

Glenn Wagner
Bill McNAMARA_1
Honored Contributor

Re: Trouble removing a directory name

Even if the disk was corrupted, I'd call it a bug that fsadm defraged and lost data.. is bad block reallocation turned off in you lvol?

lvdisplay -v /dev/vgXY/lvolXYZ | more

How are you mounting your filesystem?
mount -p

The only time I've had problems such as yours is when a CPU went on the blink. It defragged my filesystem... and fracked up half the data with it.

Later,
Bill
It works for me (tm)
Glenn Wagner
Advisor

Re: Trouble removing a directory name

Bill, This file system is a single disk, non logical volume. I am concerned that data was corrupted during the defrag operation. I am going to contact HP about that. As far as bad block reallocation, we kept the default when we built the disk which is bad block reallocation turned on.

Thanks for the tip though

Glenn
Shahul
Esteemed Contributor

Re: Trouble removing a directory name


Hi

U can try this.

#fsck -o full -F "ur File system type" -y /dev/vgnn/lvolnn

Problem may get solve.


Best of luck

Shahul
Shannon Petry
Honored Contributor

Re: Trouble removing a directory name

I have seen flakey problems with this too, and called each to HP. It seams that the only cure is to reboot....It appears to me to be a corrupt LV cache, but I aint HP, so cant debug like thay can.....I have not seen the problem in 11.X though, so hopefully it's fixed in the real LVM(thread support).

Regards,
Shannon
Microsoft. When do you want a virus today?