- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Getting "./.." not found error though parent d...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 02:58 PM
тАО11-10-2009 02:58 PM
Getting "./.." not found error though parent dir is present!
I'm having a strange problem on one of our HP UX Itanium server running 11.23.
When I do a 'ls -al' on a particular directory, I'm getting the below listed error message though the parent dir exists! Any idea what could be the problem?
# ls -al tmpdir
tmpdir/.. not found <-- what is this???
total 16
drwxrwxr-x 2 xxxxxx dev 1024 Nov 10 15:33 ./
-rwxr-x--- 1 xxxxxx dev 23 Nov 10 15:31 sj1.con*
-rw-rw-r-- 1 xxxxxx dev 19 Nov 10 15:33 sj1.hold
# echo $?
0
# cd tmpdir
# ls -al
./.. not found <--- what is this???
total 16
drwxrwxr-x 2 xxxxxx dev 1024 Nov 10 15:33 ./
-rwxr-x--- 1 xxxxxx dev 23 Nov 10 15:31 sj1.con*
-rw-rw-r-- 1 xxxxxx dev 19 Nov 10 15:33 sj1.hold
# echo $?
0
Thanks,
SJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:00 PM
тАО11-10-2009 03:00 PM
Re: Getting "./.." not found error though parent dir is present!
Though 'ls' is returning the error, "cd .." works fine!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:09 PM
тАО11-10-2009 03:09 PM
Re: Getting "./.." not found error though parent dir is present!
Also the filename sj1.con* is an invalid filename, it has an asterisk in it. You should remove or rename that file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:41 PM
тАО11-10-2009 03:41 PM
Re: Getting "./.." not found error though parent dir is present!
> TTr: Also the filename sj1.con* is an invalid filename, it has an asterisk in it.
It's would appear that the OP has aliased 'ls' with the '-F' switch which adds a slash character to the end of any filename that is a directory and adds a "*" to the end of any executable file.
The OP could use:
# /usr/bin/ls -al
...and/or show the output of:
# alias
One possibility for the reported behavior is that the OP changed into the directory and then deleted it before doing the 'ls'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:44 PM
тАО11-10-2009 03:44 PM
Re: Getting "./.." not found error though parent dir is present!
See also this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=133279
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:45 PM
тАО11-10-2009 03:45 PM
Re: Getting "./.." not found error though parent dir is present!
0000000 s j 1 . c o n \n s j 1 . h o l d
0000020 \n
0000021
Pls ignore the '*'; I'd alias set for 'll' and it was actually doing a 'ls -alF' and so all executable files show up a '*' at the end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 03:55 PM
тАО11-10-2009 03:55 PM
Re: Getting "./.." not found error though parent dir is present!
You are right, I'd alias set the way you had mentioned.
The dir of concern (tmpdir) or its parent dir are not mount points.
Both tmpdir and its parent exist on the system, with the parent dir permission being 777! There is no special ACL set for any of these dirs. And best of all, I can traverse to this tmpdir and back to its parent dir without any problem. 'du' runs fine against both these dirs.
Only problem is that 'ls -al' throwing this error and a thirdparty tool fails. I'm guessing there is some problem with the directory entry. Is there any tool to check a dir's consistency (not the whole filesystem).
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2009 05:07 PM
тАО11-10-2009 05:07 PM
Re: Getting "./.." not found error though parent dir is present!
There is only fsck(1m) for the whole filesystem.
One check you can make while in tmpdir:
pwd -P # sh/ksh
/usr/bin/pwd
These will fail if ".." isn't there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2009 04:53 AM
тАО11-11-2009 04:53 AM
Re: Getting "./.." not found error though parent dir is present!
I think, the fastest solution would be to move the content of this corrupted directory to another - if no readonly filesystem is in play.
mkdir tdirnew
mv tmpdir/sj1* tdirnew
mv tmpdir tdirold
mv tdirnew tmpdir
rmdir tdirold
Check for error messages after the execution of each command. Perhaps you want to keep the corrupted directory for testing purposes.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2009 08:10 AM
тАО11-11-2009 08:10 AM
Re: Getting "./.." not found error though parent dir is present!
The problem is that similar 'tmpdir's are created by our job scheduler and occasionally the jobs fail with the above said error.
I wrote a C program to read the dir entry and it read both '.' and '..'; its only the 'ls' command that is not finding the parent dir entry '..'.
I think I'll check the whole filesystem on a later day when I can take the filesystem offline.