UNSOLVED

ski98033

updated

15 years ago

S

ski98033

9 Posts

0

3349

May 14th, 2012 10:00

CIFS session management so slow it is unusable

Hi,,

I am wondering if anyone else has tried to use the CIFS session management part of the CIFS MMC plug in.  The shares and open files parts work fine for me - they are fast and I can modify items, but the session management refreshes so incredibly slowly that it is constantly refreshing (with only 10 users on the system) so it is unusable.  Anyone else with the same issues.  I have a VNX 5300.

  • ski98033

    9 Posts

    1161

    0

    Posted May 16th, 2012 15:00

    So I figured out that this is because our clients (Macs and Linux) machines do not have entires in DNS so the Microsoft MMC client times out when it does lookups (no idea why it has to do lookups as I would be happy with an IP).  Anyway, what do other folks do in this situation?  Is there a way to manage cifs client sessions from the control station or some sort of API?  Or do folks just give up on session management.

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    1161

    0

    Posted May 16th, 2012 16:00

    What specifically do you want to do ?

    Have to raised a support call with Microsoft regarding MMC and DNS ?

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1161

    0

    Posted May 16th, 2012 16:00

    i see very similar slow performance in my MMC on NS80, all our machines are in DDNS. I don't really look at sessions that often so we have raised it as an issue.

  • ski98033

    9 Posts

    1161

    1

    Posted May 17th, 2012 12:00

    OK, I have a work around that gets around the problem with Microsofts session manager.  What I did was to set up dnsmasq as a intermediate dns server that returns a single hostname for all the clients.  My set up is as follows:

    1. Set up dnsmasq on a linux machine with just these changes from the defaults:

    # ad.nsd.org is the domain that the VNX is joined to for CIFS.  This line returns 127.0.0.1 for all queries

    # for any host in ad.nsd.org (e.g. host1.ad.nsd.org)

    address=/ad.nsd.org/127.0.0.1

    # Add in the srv records so the client can query the AD servers

    srv-host=_ldap._tcp.ad.nsd.org,dc1.ad.nsd.org,389

    srv-host=_ldap._tcp.Default-First-Site-Name._sites.dc1.ad.nsd.org,dc1.ad.nsd.org,389

    srv-host=_ldap._tcp.dc1.ad.nsd.org,dc1.ad.nsd.org,389

    # log the queries to syslog so you can see what is happening

    log-queries

    Then in /etc/hosts on the linux machine add in the hostnames of the machines in the ad.nsd.org domain that the client will need to connect to:

    10.X.X.X dc1.ad.nsd.org dc1.nsd.org dc1 ad.nsd.org
    10.X.X.X dc2.ad.nsd.org dc2.nsd.org dc2 ad.nsd.org
    10.X.X.X newfile.nsd.org newfile.ad.nsd.org vnxdata.ad.nsd.org newfile vnxdata

    10.X.X.X ski.ad.nsd.org # This is the ip of the windows client

    2. Point the windows client to use the dnsmasg dns server.

    3. Session management now works perfectly from this windows client.  You will not see the names of the machines connecting, but you will see the user names and can kick a user off if you need to.

    One side note is that to *really* kick a user off the server, you need to change their password in Active Directory, wait 5 minutes for something to expire (probably the kerberos ticket), and then close the session.  If you do not do this, the client will reconnect.

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    1161

    0

    Posted May 17th, 2012 13:00

    Sounds like fun ☺

  • ski98033

    9 Posts

    1161

    0

    Posted May 17th, 2012 13:00

    Close,  a K-12 school district of 20K kids and over 3000 staff.

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    1161

    0

    Posted May 17th, 2012 13:00

    Creative solution

    Just curious – why would you ever need to “kick off” a user ?

    University environment ?

  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    1161

    0

    Posted May 18th, 2012 10:00

    wow – sounds like even more fun than a university ☺

    How many concurrent open sessions do you typically have ?

    Isnt it a bit bothersome to scroll through that many with the MMC even when its not slow ?

    I assume you know that you can list CIFS sessions using server_cifs –o audit

    While there isn’t a published command to terminate a session through the CLI there is an undocumented way to kill all sessions of a client.

    PN me if you need the details.

    Rainer

    P.S.: are you attending EMC World in Vegas next week?

  • ski98033

    9 Posts

    1161

    0

    Posted May 18th, 2012 11:00

    Rainer,

    In some ways it is more fun and in other ways less fun than a University .  We are just starting the migration process, by I expect to have around 3000 - 5000 concurrent connections.  I do not need to scroll through the MMC as you can just start typing the user's name and it takes you right to the correct session.  The problem with server_cifs -o audit is that you can not actually kick the user off.  I have submitted an enhancement request for CLI functionality like this (I believe that NetApp already has CLI functions for CIFs management). Ah so what you be the undocumented way to kill all sessions of a client - I am interested - ski@nsd.org.  And for the last questions, I will not be in Las Vegas next week - hope you have fun there.

    cheers,

    ski