OSX Server: troubleshooting of slow login and other issues

Source: Internet
Author: User
Tags ad server kinit

This is a rough summary of personal experience and online search,

Environment: Mac server + Mac Client, which can be an authentication Network architecture integrated with AD. In particular, the user configuration is Network Home folder, and the Environment is configured for local/mobile users, the login process may also be affected by the customer/client/server configuration/connection, but it is generally included in the following steps.


In two cases, one is that only one person is slow, and the other is that all users are slow.

The first case should be related to the user's environment, and it is generally not urgent. The second case is what we are going to face here, which is also tricky and even more urgent. It is also the most difficult to get started. In many cases, we may need to cooperate with other departments, for example, the Network department, the AD administrator, and the Manager.


Client:

  • Clean the waste paper basket, and do not put too much on the desktop (dozens of GB files)
  • View network configurations
  • View Hardware/system configurations (mainly free memory and hard disk)
  • View logs, user and system error information (Console)
  • Disable IPv6 (networksetup-setv6off)
  • Delete search domain (System Preferences-> Network-Advanced-> DNS) (scutil -- dns)
  • Login/Logout Hooks
  • Prohibit spotlight from sharing any network
  • DNS (dscacheutil-q host-a name fqdn. of. your. server)
  • Check Kerberos (kinit)
  • Configure the two user-based configuration options correctly: HomeDirectory and NFSHomeDirectory.


Server

  • Restart AFP service
  • Some restrictions of AFP: The maximum user connection is generally between 150, which may cause problems, especially before 10.6.
  • Server Memory/disk capacity/free resources (CPU/disk/network)
  • Disable spotlight (mdutil-d /)
  • Check the configuration of the user/computer, especially the configuration of the Workgroup Manager connected when the user logs on.
  • MCX/Profiles check for errors
  • The user's caches/logs folder is redirected to the local machine. If it is a network home folder
  • The backup time is at night...
  • Sort Disk (http://www.coriolis-systems.com/iDefrag.php)
  • If the problem is caused by AD authentication, you should add the AD server and assign users to different servers for authentication.
  • Debugging of OD/AD authentication, odutil set log debug | odutil set log default
  •   (dirt -u username -n)(dirt -m "/Active Directory/All Domains" -u activedirectoryusername -p activedirectorypassword)


Network:

  • Connection type (auto, 1000, duplex)
  • Network cable Quality
  • DNS settings (server and client can be correctly resolved) (forward/revers DNS)
  • This tcpdump-I en0 host ip_address_of_host may be required sometimes
  • Iperf command to view IP (http://jesterpm.net/downloads)


Tool/command:

ARD, SSH, mdutil, scutil, ifconfig, networksetup, systemsetup, Workgroup Manager, Server Admin, Server. app, kinit, sysdiagnose

Docs/Refs:

  • Mac OS X Server v10.5, 10.6: Enabling Directory Service debug logging: http://support.apple.com/kb/ht3186
  • OS X Server: Changing opendirectoryd logging levels: http://support.apple.com/kb/HT4696
  • NetworkHomeRedirector: https://www.macupdate.com/app/mac/25425/network-home-redirector/
  • Leopard's sBuilt-in Network Home Folder Redirector: http://web.archive.org/web/20110825115813/
  • MCX Redirector: http://www.afp548.com/article.php? Story = MCXRedirector
  • Duplex mismatch: http://en.wikipedia.org/wiki/Duplex_mismatch
  • How and Why to Defragment Your Mac's Hard Drive: http://www.macobserver.com/tmo/answers/how-and-why-to-defragment-your-macs-hard-drive


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.