Состояние ошибки 0xc00002e1

This article explains how to recover from a corrupted Active Directory database or from a similar problem that prevents your computer from starting in normal mode.

This article leads you through a series of steps that may help you diagnose the cause of the Directory Services cannot start system error. These steps may include:

This article also tells you how to use Ntdsutil or Esentutl to perform a lossy repair of the Active Directory database. Because a lossy repair deletes data and may introduce new problems, only perform a lossy repair if it’s the only available option.

When you start your domain controller, the screen may go blank, and you may receive the following error message:

  • Restart the domain controller.

  • When the BIOS information appears, press F8.

  • Select Directory Services Restore Mode, and then press ENTER.

  • Log on by using the Directory Services Restore Mode password.

  • Click Start, select Run, type cmd in the Open box, and then click OK.

  • At the command prompt, type ntdsutil files info.

    Output that is similar to the following appears:

    Drive Information:

    C: NTFS (Fixed Drive ) free(533.3 Mb) total(4.1 Gb)

    DS Path Information:

    Database : C:WINDOWSNTDSntds.dit — 10.1 Mb
    Backup dir : C:WINDOWSNTDSdsadata.bak
    Working dir: C:WINDOWSNTDS
    Log dir : C:WINDOWSNTDS — 42.1 Mb total
    temp.edb — 2.1 Mb
    res2.log — 10.0 Mb
    res1.log — 10.0 Mb
    edb00001.log — 10.0 Mb
    edb.log — 10.0 Mb

    [!NOTE]
    The file locations that are included in this output are also found in the following registry subkey:
    HKEY_LOCAL_MACHINESystemCurrentControlSetServicesNTDSParameters

    The following entries in this key contain the file locations:

    • Database Backup path
    • Database Log files path
    • DSA Working Directory
  • Verify that the files that are listed in the output in step 6 exist.

  • Verify that the folders in the Ntdsutil output have the correct permissions. The correct permissions are specified in the following tables.

    Windows Server 2003

    Account Permissions Inheritance
    System Full Control This folder, subfolders, and files
    Administrators Full Control This folder, subfolders, and files
    Creator Owner Full Control Subfolders and Files only
    Local Service Create Folders / Append Data This folder and subfolders

    Windows 2000

    Account Permissions Inheritance
    Administrators Full Control This folder, subfolders, and files
    System Full Control This folder, subfolders, and files

    [!NOTE]
    Additionally, the System account requires Full Control permissions on the following folders:

    • The root of the drive that contains the Ntds folder
    • The %WINDIR% folder

    In Windows Server 2003, the default location of the %WINDIR% folder is C:WINDOWS. In Windows 2000, the default location of the %WINDIR% folder is C:WINNT.

  • Check the integrity of the Active Directory database. To do this, type ntdsutil files integrity at the command prompt.

    If the integrity check indicates no errors, restart the domain controller in normal mode. If the integrity check doesn’t finish without errors, continue to the following steps.

  • Perform a semantic database analysis. To do this, type the following command at the command prompt, including the quotation marks:

  • If the semantic database analysis indicates no errors, continue to the following steps. If the analysis reports any errors, type the following command at the command prompt, including the quotation marks:

    ntdsutil "sem d a" "go f"
  • Follow the steps in the following Microsoft Knowledge Base article to perform an offline defragmentation of the Active Directory database:

    232122 Performing offline defragmentation of the Active Directory database

  • If the problem still exists after the offline defragmentation, and there are other functional domain controllers in the same domain, remove Active Directory from the server, and then reinstall Active Directory. To do this, follow the steps in the «Workaround» section in the following Microsoft Knowledge Base article:

    332199 Domain controllers do not demote gracefully when you use the Active Directory Installation Wizard to force demotion in Windows Server 2003 and in Windows 2000 Server

    [!NOTE]
    If your domain controller is running Microsoft Small Business Server, you cannot perform this step, because Small Business Server cannot be added to an existing domain as an additional domain controller (replica). If you have a system state backup that is newer than the tombstone lifetime, restore that system state backup instead of removing Active Directory from the server. By default, the tombstone lifetime is 60 days.

  • If no system state backup is available, and there are no other healthy domain controllers in the domain, we recommend that you rebuild the domain by removing Active Directory and then reinstalling Active Directory on the server, creating a new domain. You can use the old domain name again or use a new domain name. You can also rebuild the domain by reformatting and reinstalling Windows on the server. However, removing Active Directory is quicker, and effectively removes the corrupted Active Directory database.

    If no system state backup is available, there are no other healthy domain controllers in the domain, and you must have the domain controller working immediately, perform a lossy repair by using either Ntdsutil or Esentutl.

    [!NOTE]
    Microsoft doesn’t support domain controllers after Ntdsutil or Esentutl is used to recover from Active Directory database corruption. If you perform this kind of repair, you must rebuild the domain controller for Active Directory to be in a supported configuration. The repair command in Ntdsutil uses the Esentutl utility to perform a lossy repair of the database. This kind of repair fixes corruption by deleting data from the database. Only use this kind of repair as a last resort.

    Although the domain controller may start and may appear to function correctly after the repair, its state is unsupported because the data that is deleted from the database can cause any number of problems that may not surface until later. There’s no way to determine what data was deleted when the database was repaired. As soon as possible after the repair, you must rebuild the domain to return Active Directory to a supported configuration. If you only use the offline defragmentation or semantic database analysis methods that are referenced in this article, you don’t have to rebuild the domain controller afterward.

  • Before you perform a lossy repair, contact Microsoft Product Support Services to confirm that you’ve reviewed all possible recovery options and to verify that the database truly is in an unrecoverable state. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

    Contact Microsoft Support

    On a Windows 2000 Server-based domain controller, use Ntdsutil to recover the Active Directory database. To do this, type ntdsutil files repair at a command prompt in Directory Service Restore Mode.

    To perform a lossy repair of a Windows Server 2003-based domain controller, use the Esentutl.exe tool to recover the Active Directory database. To do this, type esentutl /p at a command prompt on the Windows Server 2003-based domain controller.

  • After the repair operation is complete, rename the .log files in the NTDS folder by using a different extension such as .bak, and try to start the domain controller in normal mode.

  • If you can start the domain controller in normal mode after the repair, migrate relevant Active Directory objects to a new forest as soon as possible. Because this lossy repair method fixes corruption by deleting data, it can cause later problems that are extremely difficult to troubleshoot. At the first opportunity after the repair, you must rebuild the domain to bring Active Directory back to a supported configuration.

    You can migrate users, computers, and groups by using the Active Directory Migration Tool (ADMT), Ldifde, or a non-Microsoft migration tool. ADMT can migrate user accounts, computer accounts, and security groups with or without the security identifier (SID) history. ADMT also migrates user profiles. To use ADMT in a Small Business Server environment, review the «Migrating from Small Business Server 2000 or Windows 2000 Server» white paper. To obtain this white paper, visit the following Microsoft Web site:

    Migrating from Small Business Server 2000 or Windows 2000 Server to Windows Small Business Server 2003

    You can use Ldifde to export and import many types of objects from the damaged domain to the new domain. These objects include user accounts, computer accounts, security groups, organization units, Active Directory sites, subnets, and site links. Ldifde can’t migrate the SID history. Ldifde is part of Windows 2000 Server and Windows Server 2003.

    For more information about how to use Ldifde, click the following article number to view the article in the Microsoft Knowledge Base:

    237677 Using Ldifde to import and export directory objects to Active Directory

    You can use the Group Policy Management Console (GPMC) to export the file system and the Active Directory part of the group policy object from the damaged domain to the new domain.

    To obtain the GPMC, visit the following Microsoft Web site:

    Cloud Computing Services

    For information about how to migrate group policy objects by using the GPMC, review the «Migrate GPOs across domains with GPMC» white paper. To obtain this white paper, visit the following Microsoft Web site:

    Migrating GPOs Across Domains

  • After the recovery, evaluate your current backup plan to make sure that you have scheduled system state backups frequently enough. Schedule system state backups at least every day, or after every significant change. System state backups must contain the required level of fault tolerance. For example, don’t store backups on the same drive as the computer that you’re backing up. Whenever possible, use more than one domain controller to avoid a single point of failure. Store backups in an off-site location so that site disaster (fire, theft, flood, computer theft) doesn’t affect your ability to recover. The following Microsoft Web sites can help you develop a backup plan.

    • Windows Server 2003: Creating a Backup and Recovery Plan
    • Windows 2000: Chapter 14 — Data Backup and Recovery
    • Windows Small Business Server: Windows Server Essentials (Small Business Server)
  • March 24 2007, 02:41

    Category:

    • IT
    • Cancel

    «Системный администратор думал, что в сети он бог,
    Электрик с легкостью разрушил этот миф.»

    Итак, подлые электрики рубанули силовуху на время горазо большее, чем могут вынести мои ups’ы.
    В связи с этим утром огреб вот такое сообщение на консоли w2k сервера.

    Не удалось инициализировать SAM из-за следующей ошибки:
    Невозможно запустить службу каталогов. Состояние ошибки
    0xc00002e1. Нажмите «Ок» для завершения работы системы и перезагрузки в режиме восстановления службы каталогов, подробная инфо в журнале событий.
    Как говорится — сушите весла.
    Оговорюсь сразу серверов в w2k домене у меня два, и между ними все что нужно реплицируется. Но вот беда… по причине некоторой реорганизации я забыл поставить в backup system state с Global Catalog’а. И, вот оно-то гикнулся с приведенной надписью. А гикнулся потому, что ему нехватило runtime’а ups’а. Странно… вроде раньше 10 минут ему хватало на то, чтобы корректно потушиться.

    Утром начался нелегкий процесс восстановления сервере без backup’а ;)
    Пока искал пути решения проблемы на втором сервере забрал все роли и сделал его GC.
    Грузится проблемный сервер соглашался только в режиме восстановления AD. Но все попытки отремонтировать ntds.dit штатными средствами (ntdsutil, esentutl) успехом не увенчались. И вот тогда был найден изящный ход. Как всегда решение было изящным до идиотизма rollh В системах от MS это, вероятно, by desidn.

    Решение проблемы по пунктам.

    1. Проблемный сервер загружен в режиме восстановления AD.
    2. Запускаем на нем regedit и меняем ключик HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlProductOptionsProductType с LanmanNT на ServerNT. Т.е. так вот грубо делаем его рядовым сервером.
    3. Перезагружаем проблемный сервер.
    4. После перезагрузки входим в него локально
    5. Убиваем %windir%NTDS нафиг
    6. На том сервере, который раньше был вторым вычищаем из AD упоминания о проблемном сервере
      C:>ntdsutil
      domain management
      connections
      connect to domain your.domain.name
      quit
      select operation target
      list sites
      select site 0 (или другой)
      list domains in site
      select domain 0 (или другой)
      list servers in site
      select server 0 (или другой)
      quit
      quit
      metadata cleanup
      remove selected server
      quit
      quit
    7. Запускаем dcpromo и заводим сервер снова в домен.

    Все LOL

    • Remove From My Forums
    • Вопрос

    • Добрый день!

      Имеются 2 контроллера домена:

      1. Основной контроллер домена Windows Server 2008.

      2. Дополнительный контроллер домена Windows Server 2000.

      Так вот перестал загружаться Windows Server 2000. При запуске выдаёт:

      Не удалось инициализировать SAM из-за следующий ошибки: Невозможно запустить службу каталогов. Состояние ошибки: 0xc00002e1. Нажмите кнопку ОК для завершения работы системы и перезагрузите в режиме восстановления служб каталогов, подробная информация содержится
      в журнале ошибок.

      Бэкапов AD нет.

      В режиме восстановления служб каталогов ОС загружается. Согласно статье базы знаний 258062 (http://support.microsoft.com/kb/258062/ru) выполнил следующие команды:

      1. ntdsutil files info

      2. ntdsutil files integrity

      3. ntdsutil «sem d a» go

      4. ntdsutil «sem d a» «go f»

      5. Попробовал произвести автономную дефрагментацию базы данных Active Directory (compact to drive:directory) 

      Но ничего не помогло.

      Так как этот сервер старый и в дополнительном контроллере домена я, по большому счету, не нуждаюсь (при работоспособном основном), хотелось бы этот неисправный дополнительный контроллер домена максимально корректно понизить до рядового сервера.
      Как мне это сделать в данных условмях? Чтобы не осталось хвостов на основном сервере. 

    Ответы

      • Помечено в качестве ответа

        23 августа 2010 г. 6:04

      • Помечено в качестве ответа
        Vinokurov Yuriy
        23 августа 2010 г. 6:04
    • И последний вопрос:

      Я правильно понимаю, что данную GUI утилиту либо первый метод нужно применять на исправном (работоспособном) контроллере домена (в моем случае, Windows Server 2008) и только после отключения от сети «раненого» контроллера домена? И самое главное: выполнение
      этих действий не повредит и не удалит основной (работоспособный) домен? Только подчистит хвосты от старого? 

      Именно так

      PS: В последствии поднимите на машине, где был КД windows 2000 — дополнительный КД windows 2008, ежели железо позволит

      • Помечено в качестве ответа
        Vinokurov Yuriy
        23 августа 2010 г. 6:05

    • Код сценария следует скопировать и вставить в Блокноте, назовите файл, скажем, cleanup_DC.vbs (важно именно расширение vbs). Запускайте просто двойным щелчком по файлу.

      • Помечено в качестве ответа
        Vinokurov Yuriy
        23 августа 2010 г. 6:04

    Модераторы: Trinity admin`s, Free-lance moderator`s

    Никола

    Power member
    Сообщения: 36
    Зарегистрирован: 24 окт 2005, 10:27
    Откуда: Омск

    ошибка 0xc00002e1

    Здравствуйте многоуважаемые знатоки! описываю ситуацию — терминальный сервер (он же вспомогательный сервер Active Directory), надо расширить диск D, (на нём были рабочие файлы терминальных пользователей, пара бэкапов и самое главное файлы Active directory). Для выполнения задачи был куплен новый диск — в системе диск Е. Я его форматнул, слил туда все файлы пользователей, а про AD забыл. Поменял местами буквы Е и D, перезагрузил сервер и столкнулся с ошибкой перед запуском виндовс — «Не удалось инициализировать Sam из за следующей ошибки:Невозможно запустить службу каталогов.Состояние ошибки 0xc00002e1. Запустите службу восстановления каталогов. Намите на кнопку Ок, что бы перезагрузить компьютер» причём нопка Ок всего одна… С этого всё и началось. Зашёл локально, поменял обратно буквы дисков — не помогло. Восстановление ничего не даёт, да и ошибок никаких не поазывает… Подскажите пожалуйста что можно сделать. С уважением, Николай.


    tfg

    Junior member
    Сообщения: 1
    Зарегистрирован: 14 дек 2006, 16:33
    Откуда: Moskva

    Сообщение

    tfg » 15 дек 2006, 11:05

    попробуй расшарь эти диски для «все» в режиме восстановления каталогов — и вот увидишь — ошибка пропадёт.Дальше запусти ntbackup — сохрани на всяк.случай всю систему и пробуй уж дальше устранить эту ошибку своими силами.там уж сам должен знать как)))   0xc00002e1 — глюк с разрешениями, по моему в lssas


    Вернуться в «Серверы — ПО, Windows система, приложения.»


    Перейти

    • Серверы
    • ↳   Серверы — Конфигурирование
    • ↳   Конфигурации сервера для 1С
    • ↳   Серверы — Решение проблем
    • ↳   Серверы — ПО, Unix подобные системы
    • ↳   Серверы — ПО, Windows система, приложения.
    • ↳   Серверы — ПО, Базы Данных и их использование
    • ↳   Серверы — FAQ
    • Дисковые массивы, RAID, SCSI, SAS, SATA, FC
    • ↳   Массивы — RAID технологии.
    • ↳   Массивы — Технические вопросы, решение проблем.
    • ↳   Массивы — FAQ
    • Майнинг, плоттинг, фарминг (Добыча криптовалют)
    • ↳   Proof Of Work
    • ↳   Proof Of Space
    • Кластеры — вычислительные и отказоустойчивые ( SMP, vSMP, NUMA, GRID , NAS, SAN)
    • ↳   Кластеры, Аппаратная часть
    • ↳   Deep Learning и AI
    • ↳   Кластеры, Программное обеспечение
    • ↳   Кластеры, параллельные файловые системы
    • Медиа технологии, и цифровое ТВ, IPTV, DVB
    • ↳   Станции видеомонтажа, графические системы, рендеринг.
    • ↳   Видеонаблюдение
    • ↳   Компоненты Digital TV решений
    • ↳   Студийные системы, производство ТВ, Кино и рекламы
    • Инфраструктурное ПО и его лицензирование
    • ↳   Виртуализация
    • ↳   Облачные технологии
    • ↳   Резервное копирования / Защита / Сохранение данных
    • Сетевые решения
    • ↳   Сети — Вопросы конфигурирования сети
    • ↳   Сети — Технические вопросы, решение проблем
    • Общие вопросы
    • ↳   Обсуждение общих вопросов
    • ↳   Приколы нашего IT городка
    • ↳   Регистрация на форуме

    Гофер


    14 Окт 2010

    Люди! Срочно нужна помощь! Есть WinServer 2003, работает как служба терминалов и VPN сервер, при этом контроллер домена на нем не поднимали, вся локалка в рабочей группе сидит вместе с сервером. Так вот начал он при загрузке выдавать следующее: «lsass.exe — Системная ошибка Не удалось инициализировать SAM из-за следующей ошибки: Невозможно запустить службу каталогов. Состояние ошибки:0xc00002e1. Нажмите на кнопку Ок для завершения работы системы и перезагрузки в режим восстановления служб каталогов, подробная информация содержится в журнале событий.» Сэйфмод так же не прокатывает, для загрузки в режиме восстановления службы каталогов не получается, админский пароль не прокатывает. Погуглил я на эту тему, но вся информация, какую я нашел, относится к серверам с контроллером доменов. Вопросы вобщем-то вечные: кто виноват и что делать? Даже если пароль обнаружится, это же для контроллеров домена, я так понимаю, мне-то это чем поможет? Может кто-то сталкивался с подобным? И как это решать? Заранее спасибо за любую информацию.

    Atlantias


    Z@Zmaster


    14 Окт 2010

    Alexus, это кросспостинг или просто (с)пёрли :)

    Гофер


    14 Окт 2010

    копи-паст сделал, искал в инете, пока ничего не сделали

    ———- Добавлено в 09:28 ———- Предыдущее сообщение было написано в 09:28 ———-

    сейчас проверяется на вирусы AVz

    Z@Zmaster


    14 Окт 2010

    Ааааа…. понял… я то думал что по ссылкам одно и тоже…. Ну чего уж, Гофер просто не смог правильно выразить свои мысли и скопипастил чижие :), бывает.

    Гофер


    14 Окт 2010

    Люди! Срочно нужна помощь! Есть WinServer 2003, работает как служба терминалов и VPN сервер, при этом контроллер домена на нем не поднимали, вся локалка в рабочей группе сидит вместе с сервером. Так вот начал он при загрузке выдавать следующее: «lsass.exe — Системная ошибка Не удалось инициализировать SAM из-за следующей ошибки: Невозможно запустить службу каталогов. Состояние ошибки:0xc00002e1. Нажмите на кнопку Ок для завершения работы системы и перезагрузки в режим восстановления служб каталогов, подробная информация содержится в журнале событий.» Сэйфмод так же не прокатывает, для загрузки в режиме восстановления службы каталогов не получается, админский пароль не прокатывает. Погуглил я на эту тему, но вся информация, какую я нашел, относится к серверам с контроллером доменов. Вопросы вобщем-то вечные: кто виноват и что делать? Даже если пароль обнаружится, это же для контроллеров домена, я так понимаю, мне-то это чем поможет? Может кто-то сталкивался с подобным? И как это решать? Заранее спасибо за любую информацию.

    пароль на востановление не админский нужен а на консоль востановления он устанавливаетса во время настройки служб AD

    Понравилась статья? Поделить с друзьями:
  • Составное usb устройство код ошибки 10
  • Состояние ошибки 0xc000020
  • Составляя предложение мне было сделано замечание ошибка
  • Состояние ошибки 0xc0000130
  • Составлять аналогии ошибка