Cool Solutions

Troubleshooting SYSVOLSYNC in DSfW

coolguys

By:

September 18, 2012 11:51 am

Reads: 2446

Comments:1

Score:0

By grohin

1. PURPOSE OF THE SYSVOLSYNC UTILITY

The sysvolsync utility is introduced to provide synchronization of sysvol and the underlying policies (Group policy objects) between the domain controllers of a domain. This utility when invoked on the PDC finds the domain controllers for the DSfW domain and initiates the synchronization process with them, contacting one domain controller at a time. During synchronization only the changes are transferred and not the entire data. This helps in faster synchronization between the domain controllers. All the POSIX file permissions and ACLs are retained during transfer. During the synchronization, changes are transferred from the first domain controller (holding the PDC Emulator role) to the other domain controllers. By default the sysvolsync cronjob is run every 30 minutes. For intermediate synchronization, you can invoke the utility using the following command:

"/opt/novell/xad/sbin/sysvolsync"

2. LOGGING OF SYSVOL SYNC EVENTS

The details of synchronization events are captured in the /var/opt/novell/xad/log/ sysvolsync.log file.

The log is something like:

---------clip----------------------

[INFO:]sysvolsync started Wed Sep 12 11:30:01 2012

[INFO:]Temprorary Sock file : /var/opt/novell/xad/sysvol_sock.180428938321018
[INFO:]Syncing the changes to DomainController adc.sysvol.com
[INFO:]Ticket cache is destroyed
[INFO:]sysvolsync stopped Wed Sep 12 11:30:01 2012

[INFO:]sysvolsync status: Successful

---------clap-----------------

For unsuccesful sync, the log is something like:

---------clip----------------

[INFO:]sysvolsync started Tue Sep 11 17:56:29 2012

[INFO:]Temprorary Sock file : /var/opt/novell/xad/sysvol_sock.180428938332255
[ERR :]Unable to sync the changes to DomainController adc.sysvol.com err 255
[INFO:]Ticket cache is destroyed
[INFO:]sysvolsync stopped Tue Sep 11 17:56:29 2012

[ERR :]sysvolsync status: Not Successful

----------clap---------------

3. TROUBLESHOOTING FAILED SYSVOLSYNC

As seen in the log, the error value is 255 for almost all unsuccessful cases. This value is not sufficient for debugging the root cause of problem, since it is the return value of command forked by sysvolsync command.

The following troubleshooting steps can be performed for solving the sysvolsync problem:

  1. /etc/ssh/ssh_config file should have GSSAPI related settings enabled.That is “GSSAPIAuthentication yes” should be there in the file, and should be uncommented and set to yes.
  2. The forward and reverse lookup for all the DSfW domain controllers should be working.That is, the following commands should be working correctly.
    1. dig -t SRV _ldap._tcp.dc._msdcs.<domain-name> +short
    2. All the servers obtained should have forward and reverse lookup working.

    If any of the DNS records are found missing, the missing records can be added using the DNS-DHCP Java Console tool.

    OES 11 SP1: Novell DNS/DHCP Services for Linux Administration Guide

    (If for some reason the records db is not updated by the Console, delete the zone records in /etc/opt/novell/named and restart novell dns using the command “rcnovell-named restart”)

  3. The /etc/hosts file of any on the DSfW controllers should not have any hostname to IP mappings for the servers, since DSfW controllers use DNS for domain resolutions. However, if for some reason its inevitable to have /etc/hosts mappings, please ensure that the mappings of hostnames for DSfW domain controllers is correct.
  4. The command “id (hostname of pdc)$” should work correctly in the pdc.In case it does not, the workaround mentioned in the following post can be tried. http://forums.novell.com/showthread.php?p=2219595#poststop

References:

It’s possible that the root cause of problem might be something other than what’s listed in the article. The next level of debugging can be done using the steps enumerated here: http://forums.novell.com/forums/blogs/grohin/sysvolsync-26

VN:D [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: Open Enterprise Server, Technical

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

1 Comment

  1. By:thhg

    Also check the SLES firewall – if it’s on, sysvolsync will fail
    Not sure what ports are required to be opened if the firewall is enabled

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Comment

RSS