Find the answer to your Linux question:
Results 1 to 5 of 5
Good day to everyone, I have a problem that i have been trying to resolve for some time now. I have couple linux servers setup that are running RHEL4 (Red ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2005
    Posts
    4

    ls -la / more: hangs when parsing directories or files remotely


    Good day to everyone,

    I have a problem that i have been trying to resolve for some time now.

    I have couple linux servers setup that are running RHEL4 (Red Hat Enterprise Linux 4) as the OS and have found one common problem across all. Now the underlying systems are dell poweredges 2850,6850 servers and dell pc based systems. I find that whenever i connect remotely and try to do an 'ls' on a directory that contains a moderate number of files ( say > 5) it hangs.

    Does any one knows why this happens?

    Is it a bug or do i need to tweak some OS parameters?


    Please, i would really appreciate some help.

    Regards

    Dwight
    dwight.linton@digicelgroup.com
    Unix SA/DBA

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,807
    How are the directories mounted? Are you using NFS? If so, can you post the relevant lines from /etc/exports (on the server) and /etc/fstab (on the client).

    If you're using samba, can you show us the relevant /etc/fstab and smb.conf configuration lines?

    If you're using neither, can you elaborate a little more?
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Oct 2005
    Posts
    4
    My aplogies Roxoff for not being clear,

    Connections to the servers are done by means of secure shell (SSH), so in this case a NFS share or a samba if the file system was being shared with a windows box is not applicable. Whenever i use a ssh client ( i am using putty) and try to do a directory listing it freezes. I am also in charge of servers that has solaris 9 and 10 Operating systems and also boxes that have Mandrake linux as the OS, so far i am only having this problem with RHEL4 OS installs


    Regards,
    Dwight
    dwight.linton@digicelgroup.com
    Database Administrator/Unix SA

  4. #4
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,807
    So there must be something different between the way your RH server and your solaris server is handling the SSH connections.

    Is there anything different in /etc/ssh_config on each of the servers?

    Is there anything unusual in ~/.ssh/config on the client machine that could cause this? Maybe you could post this up to see?
    Linux user #126863 - see http://linuxcounter.net/

  5. #5
    Just Joined!
    Join Date
    Oct 2005
    Posts
    4
    I have gotten it to work......

    What i did was to edit my /etc/sysconfig/network file and include these lines

    FORWARD_IPV4=yes
    DOMAINNAME=" <enter your domain name> "

    i also updated my /etc/sysconfig/network-scripts/*eth0 file
    and commented out

    PEERDNS
    USERCTL
    TYPE
    IPV6INIT

    i however modified my netmask (which i think ultimately solved everything) so make sure the netmask is worked out correctly


    Regards,

    Dwight
    dwight.linton@digicelgroup.com
    Database Administrator/Unix SA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •