- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ls or find command strange
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
Forums
Discussions
Discussions
Discussions
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
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-21-2007 12:15 AM
11-21-2007 12:15 AM
ls or find command strange
But in other direcory, both command are normal.
Why ?
OS is HPUX 11.11 running on rp3440
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 12:20 AM
11-21-2007 12:20 AM
Re: ls or find command strange
Most certainly because you may have a NFS mount point and the distant server isnt responding...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 12:24 AM
11-21-2007 12:24 AM
Re: ls or find command strange
The directory / is located on the root filesystem (/dev/vg00/lvol3), while most other directories are on other, separate filesystems.
The directories /etc and /sbin are also located on the root filesystem. If "ls -l /etc" or "find /sbin" also hang, your root filesystem might be damaged.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 12:57 AM
11-21-2007 12:57 AM
Re: ls or find command strange
Yes, I've NFS but so far "bdf" is okay.
But I haven't tried "ls -l /etc".
If root file system corrupted, Do I have to restore from Ignite ? .. or any way that simple without down the machine.
Best Rgds
Asep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 01:04 AM
11-21-2007 01:04 AM
Re: ls or find command strange
Try using ls -l with different options like
ls -l|head -2
ls -l|tail -2
This will confirm if you have problem retrieving the very old file. Probably that file might be a link file whose reference file is not available.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 01:18 AM
11-21-2007 01:18 AM
Re: ls or find command strange
Do you have mirrored disks?
What do you see when you type vgdisplay -v vg00?
(any stale- are both disks available?)...
My 2 cents
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 01:38 AM
11-21-2007 01:38 AM
Re: ls or find command strange
First try to identify which FS/NFS is creating the problem.
have you used -xdev option when you run find ....?
Eliminate NFS, by going to the NFS directories and do a ls or ls -lR etc...
see for any errors in syslog or by running dmesg
Also running a find or ls -lR on a heavily used NFS is bound to take time...
If its not NFS then you can continue on which ever FS is causing the problem.
once you have identified a particular FS and if you have proper backups and no other process are using that FS, you can try unmounting it and run fsck on it.
Regards,
RD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2007 11:56 PM
11-21-2007 11:56 PM
Re: ls or find command strange
Running bdf is OK & there's 1 nfs(linux).
Running "ls -l" & "find " on NFS directory is good.
We have no mirror & "vgdisplay -v vg00" shows no problem at all.
I'm not sure if restart the server will be a good idea.
Rgds,
Asep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2007 12:41 AM
11-22-2007 12:41 AM
Re: ls or find command strange
'ls' is working?
For me it sounds like your hard disk is defect.
You can test your hd:
'dd if=/dev/rdsk/
(bs=block-size can be 1024, 2048,... - choose one you want)
Check that /dev/null exists ;-)
If there's an error or 'in' and 'out' differs, then you've a problem.
Ignite backup is very good, but you'll need a disk which is ok.
Or have you damaged your file sytem with a 'rm *' command?
Compare your 'ls' results with another workstation.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2007 12:50 AM
11-22-2007 12:50 AM
Re: ls or find command strange
You should see something like this for an 'io' disk:
17677440+0 records in
17677440+0 records out
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2008 10:46 AM
04-21-2008 10:46 AM
Re: ls or find command strange
I just bought a new server (HPUX 11.31 rp3310) and it also has a problem with the find command. It runs, hang, run, hang... until it finished. dd command doesn't report any problem. The server doesn't have any NFS. How did you solve your problem?
Thanks,
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2008 10:57 PM
04-21-2008 10:57 PM
Re: ls or find command strange
If you don't have any NFS mounts, this is a different problem. Please create your own thread.
If you think there is connection, you can put a link to this thread.