- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ls -laR hangs in /
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
07-24-2007 01:37 PM
07-24-2007 01:37 PM
ls -laR hangs in /
ls -laR hangs in /
Syslog has no errors.
ll / is running fine but when I am running ll -R / I face the same problem. I tried ll -R on other mount point and the result was same.
No nfs mount point exist on server.
Any ideas?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 02:18 PM
07-24-2007 02:18 PM
Re: ls -laR hangs in /
The most likely explanation is that you have a set on symbolic links that are cross-linked and thus looping endlessly.
What happens if you do a find . -print from /? Do it get to some point and appear to hang?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 05:40 PM
07-24-2007 05:40 PM
Re: ls -laR hangs in /
Are you expecting find(1) to get in a symlink loop, or only ls -R?
$ find SUB -follow -print
SUB
SUB/SUB2
find: SUB/SUB2/FOO creates a cycle
SUB/SUB2/FOO
I was able to get ll -RL to loop but it stopped when the line was long or depth 43?:
SUB/SUB2/FOO/SUB2/FOO/.../SUB2/FOO not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 06:39 PM
07-24-2007 06:39 PM
Re: ls -laR hangs in /
examine the point, where your command stops, very carefully. Dividing up your command like this may help:
cd /
for d in .??*
do
print === $d =====
ls -goR $d >/dev/null
# ls -goR $d
done
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 08:48 PM
07-24-2007 08:48 PM
Re: ls -laR hangs in /
Do you get any listing up to a certain directory?
If so, could it be that ls cannot stat a certain filesystem because it might have become corrupt?
Do you have any stale extents in any of the mounted volumes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 03:32 PM
07-25-2007 03:32 PM
Re: ls -laR hangs in /
We are looking into networking patches
Will keep you posted
thanks all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 08:07 PM
07-25-2007 08:07 PM
Re: ls -laR hangs in /
Type "mount": if you see "/net" in the list of mounted filesystems, automounter or autofs is running. Any attempt to read the listing of /net directory causes the automounter to search for NFS shares in your local network.
If NFS access is blocked by a firewall or IPfilter that just drops the NFS packets instead of sending the proper "connection refused" messages back, any attempt to access /net/* will hang a long time.
To completely disable the automounter, first run:
/sbin/init.d/nfs.client stop
then edit /etc/rc.config.d/nfsconf and make sure both AUTOMOUNT and AUTOFS are set to 0.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2007 01:42 AM
08-06-2007 01:42 AM
Re: ls -laR hangs in /
other commands run from a remote system work fine.
root:rp8420# more exports
root:rp8420# pwd
/etc
root:rp8420# ll exp*
-rw-r----- 1 root sys 0 Nov 19 2004 exports
root:rp8420# root:rp8420# pwd
root:rp8420# ll xt*
-rw-r--r-- 1 root root 0 Aug 2 07:50 xtab
root:rp8420# cat xtab
root:rp8420#
root:rp8420# /usr/sbin/showmount -a
showmount: rp8420: RPC: Program not registered
root:rp8420#
root:rp8420# showmount -e
showmount: rp8420: RPC: Program not registered
root:rp8420# showmount -a
showmount: rp8420: RPC: Program not registered
root:rp8420# more /etc/exports
root:rp8420#
root:rp8420# cat /etc/xtab
root:rp8420# cd ..
root:rp8420# ll x*
-rw-r--r-- 1 root root 0 Aug 2 07:50 xtab
root:rp8420#
any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2007 08:45 AM
08-06-2007 08:45 AM
Re: ls -laR hangs in /
it would really help, if you answered our questions.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2007 03:05 AM
08-09-2007 03:05 AM
Re: ls -laR hangs in /
automount is set to 0
nfs too
once again when we run the command locally form the console it works fine.
if we use other protocols like ftp it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2007 03:12 AM
08-09-2007 03:12 AM
Re: ls -laR hangs in /
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2007 03:15 AM
08-09-2007 03:15 AM
Re: ls -laR hangs in /
on the console:
telnet 0
To connect locally - log in
Then try command again - does it now hang?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2007 04:32 AM
08-09-2007 04:32 AM