Operating System - HP-UX
1752567 Members
5386 Online
108788 Solutions
New Discussion юеВ

Re: Using Cifs & Samba, ls -l command is very slow

 
RASE_1
Advisor

Using Cifs & Samba, ls -l command is very slow

Dear,

We get several HP-UX servers running HPUX 11.00, 11.11 and 11.23 with Samba 2.0.7.2, Cifs A02.01.
A few months ago, we created samba shares to get access from Windows XpSP2 clients (with active directory) running Mks ToolKit without any problem.
But now it's very slow depending of the command used on the Windows client.
All requested patches have been installed.

Net use to create the drive is slow,
ls result is instantaneous,
ls -l takes very long time (30" for around 600 files).

Moreover the group is correctly printed, but the user looks like :

-rwxrwxrwa 1 S-1-5-21-3435912621-889146538-2557736640-1598 C3007\users
-rwxrwxrwa 1 S-1-5-21-3435912621-889146538-2557736640-1598 C3007\users

Many thanks for any ideas.

Regards,
7 REPLIES 7
Mark McDonald_2
Trusted Contributor

Re: Using Cifs & Samba, ls -l command is very slow

I have seen this before, the HPUX server is having trouble working out the user and group names.

Has some config changed recently?

What is in your /etc/resolv.conf and /etc/nsswitch.conf

Obviously ls only displays the file names, but adding the "-l" means the box has todig around for more info such as usernames.
RASE_1
Advisor

Re: Using Cifs & Samba, ls -l command is very slow

Dear,

I suppose that Active dorectory configuration evolved but without having the proof.

There is no /etc/nsswitch.conf file and the content of /etc/resolv.conf looks like

domain xxx.be
nameserver aaa.bbb.ccc.ddd
nameserver aaa.bbb.ccc.eee

It looks like the Unix user called star_ux is not recognize and is replaced by S-1-5-21-3435912621-889146538-2557736640-1598

Regards,
Johnson Punniyalingam
Honored Contributor

Re: Using Cifs & Samba, ls -l command is very slow

Hi Rase,

Copy the nsswitch.files to the nsswitch.conf.

# cp /etc/nsswitch.files /etc/nsswitch.conf

If you use dns, edit the the line

hosts: files
to
hosts: files [NOTFOUND=continue] dns

and try again to connect to the server

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Using Cifs & Samba, ls -l command is very slow

Hi Rase,

Please check below Thread, same issue but different "Scenario"

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1320830


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
RASE_1
Advisor

Re: Using Cifs & Samba, ls -l command is very slow

Dear,

Unfortunately, no change.

I added the entry log level = 2 into [Global] section to get more details. The I just made the copy of one file and I was really surprised to see that it is doing several times the same operation, ie opening the file then closing it.

Why ?

Regards,

eric roseme
Respected Contributor

Re: Using Cifs & Samba, ls -l command is very slow

As a pure guess, it appears that you have a winbind problem. The user field is being populated by a Windows SID instead of a UNIX username. The likely source for this SID is from the winbind cache file in /var/opt/samba/locks. If winbind is configured but not running, then you get a UID number in the user field. So this makes me think that winbind is running but the config is messed up.

So if you have winbind configured, but "no nsswitch file" (from above). Then that is a problem. You will need nsswitch with "passwd files winbind" and "group files winbind".

However, your Samba 2.0.7 version is so old that it does not have winbind, so this problem should not be seen on that server.

Eric Roseme
RASE_1
Advisor

Re: Using Cifs & Samba, ls -l command is very slow

Hi,

After removing trusted relations ships between our AD server and the AD server of one of our clients, problems disappears.

Thanks.