Discussion:
Unable to mount snapshot with dsamain
(too old to reply)
Peter Van Eeckhoutte
2009-06-06 09:16:46 UTC
Permalink
Hi,

I'm trying to mount an AD snapshot with dsamain, but it does not seem to
work

This is what I do

1. create snapshot :
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil sn "ac i ntds" create q q
ntdsutil: sn
snapshot: ac i ntds
Active instance set to "ntds".
snapshot: create
Creating snapshot...
Snapshot set {daa78261-7eac-4c1d-a020-9a3dcb0cea0b} generated successfully.
snapshot: q
ntdsutil: q


2. Mount snapshot
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil
ntdsutil: snap
snapshot: a i ntds
Active instance set to "ntds".
snapshot: list all
1: 2009/06/06:09:35 {28823db2-962b-4334-806e-bbb0a8dd3935}
2: C: {30e3a5b3-0a4e-43bf-9b38-20f007d0f764}

3: 2009/06/06:09:57 {c34ef4ba-9e8f-4291-9cb2-0c77fd62d4c5}
4: C: {10503920-ce9c-417e-b277-6c1888c0b982}

5: 2009/06/06:09:59 {78a468f3-f000-48ec-87c4-5fb2175f8a33}
6: C: {d2d2dac0-8c47-417b-982f-3bb9ab74eb2e}

7: 2009/06/06:11:05 {daa78261-7eac-4c1d-a020-9a3dcb0cea0b}
8: C: {22bea5c8-4491-4780-98d5-b2adfd41b614}

snapshot: mount {22bea5c8-4491-4780-98d5-b2adfd41b614}
Snapshot {22bea5c8-4491-4780-98d5-b2adfd41b614} mounted as
C:\$SNAP_200906061105_VOLUMEC$\
snapshot: q
ntdsutil: q


So far so good, now I try to run dsamain :

C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit /ldapport 15000

EVENTLOG (Error): NTDS General / Internal Processing : 1168
Internal error: An Active Directory Domain Services error has occurred.

Additional Data

Error value (decimal):
-1414

Error value (hex):
fffffa7a

Internal ID:
407d2

EVENTLOG (Error): NTDS General / Internal Processing : 1003
Active Directory Domain Services could not be initialized.

The directory service cannot recover from this error.

User Action
Restore the local directory service from backup media.

Additional Data

Error value:
-1414 JET_errSecondaryIndexCorrupted, Secondary index is corrupt. The
database must be defragmented

EVENTLOG (Informational): NTDS General / Service Control : 1004
Active Directory Domain Services was shut down successfully.





Whatever I try, I always get this message.

I have tried removing all snapshots and created a new one, rebooted the DC
multiple times, etc etc
Nothing seem to help

I'm obviously missing something here - it can't be that hard, can it ?

thanks

c
Meinolf Weber [MVP-DS]
2009-06-06 11:30:12 UTC
Permalink
Hello Peter,

Change the dsamain path from:

C:\Windows\System32>dsamain /dbpath c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit
/ldapport 15000

to

C:\Windows\System32>dsamain /dbpath c:\$SNAP_200906061105_VOLUMEC$\Windows\ntds.dit
/ldapport 15000


Remove the system32 folder in the path.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Post by Peter Van Eeckhoutte
Hi,
I'm trying to mount an AD snapshot with dsamain, but it does not seem
to work
This is what I do
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil sn "ac i ntds" create q q
ntdsutil: sn
snapshot: ac i ntds
Active instance set to "ntds".
snapshot: create
Creating snapshot...
Snapshot set {daa78261-7eac-4c1d-a020-9a3dcb0cea0b} generated
successfully.
snapshot: q
ntdsutil: q
2. Mount snapshot
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil
ntdsutil: snap
snapshot: a i ntds
Active instance set to "ntds".
snapshot: list all
1: 2009/06/06:09:35 {28823db2-962b-4334-806e-bbb0a8dd3935}
2: C: {30e3a5b3-0a4e-43bf-9b38-20f007d0f764}
3: 2009/06/06:09:57 {c34ef4ba-9e8f-4291-9cb2-0c77fd62d4c5}
4: C: {10503920-ce9c-417e-b277-6c1888c0b982}
5: 2009/06/06:09:59 {78a468f3-f000-48ec-87c4-5fb2175f8a33}
6: C: {d2d2dac0-8c47-417b-982f-3bb9ab74eb2e}
7: 2009/06/06:11:05 {daa78261-7eac-4c1d-a020-9a3dcb0cea0b}
8: C: {22bea5c8-4491-4780-98d5-b2adfd41b614}
snapshot: mount {22bea5c8-4491-4780-98d5-b2adfd41b614}
Snapshot {22bea5c8-4491-4780-98d5-b2adfd41b614} mounted as
C:\$SNAP_200906061105_VOLUMEC$\
snapshot: q
ntdsutil: q
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit /ldapport 15000
EVENTLOG (Error): NTDS General / Internal Processing : 1168 Internal
error: An Active Directory Domain Services error has occurred.
Additional Data
-1414
fffffa7a
407d2
EVENTLOG (Error): NTDS General / Internal Processing : 1003 Active
Directory Domain Services could not be initialized.
The directory service cannot recover from this error.
User Action
Restore the local directory service from backup media.
Additional Data
-1414 JET_errSecondaryIndexCorrupted, Secondary index is corrupt. The
database must be defragmented
EVENTLOG (Informational): NTDS General / Service Control : 1004 Active
Directory Domain Services was shut down successfully.
Whatever I try, I always get this message.
I have tried removing all snapshots and created a new one, rebooted the DC
multiple times, etc etc
Nothing seem to help
I'm obviously missing something here - it can't be that hard, can it ?
thanks
c
Peter Van Eeckhoutte
2009-06-06 12:05:27 UTC
Permalink
it worked with \Windows\NTDS\ntds.dit

(I guess I was looking at the wrong ntds.dit file)

thanks
Post by Meinolf Weber [MVP-DS]
Hello Peter,
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit /ldapport 15000
to
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\ntds.dit /ldapport 15000
Remove the system32 folder in the path.
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Post by Peter Van Eeckhoutte
Hi,
I'm trying to mount an AD snapshot with dsamain, but it does not seem
to work
This is what I do
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil sn "ac i ntds" create q q
ntdsutil: sn
snapshot: ac i ntds
Active instance set to "ntds".
snapshot: create
Creating snapshot...
Snapshot set {daa78261-7eac-4c1d-a020-9a3dcb0cea0b} generated
successfully.
snapshot: q
ntdsutil: q
2. Mount snapshot
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil
ntdsutil: snap
snapshot: a i ntds
Active instance set to "ntds".
snapshot: list all
1: 2009/06/06:09:35 {28823db2-962b-4334-806e-bbb0a8dd3935}
2: C: {30e3a5b3-0a4e-43bf-9b38-20f007d0f764}
3: 2009/06/06:09:57 {c34ef4ba-9e8f-4291-9cb2-0c77fd62d4c5}
4: C: {10503920-ce9c-417e-b277-6c1888c0b982}
5: 2009/06/06:09:59 {78a468f3-f000-48ec-87c4-5fb2175f8a33}
6: C: {d2d2dac0-8c47-417b-982f-3bb9ab74eb2e}
7: 2009/06/06:11:05 {daa78261-7eac-4c1d-a020-9a3dcb0cea0b}
8: C: {22bea5c8-4491-4780-98d5-b2adfd41b614}
snapshot: mount {22bea5c8-4491-4780-98d5-b2adfd41b614}
Snapshot {22bea5c8-4491-4780-98d5-b2adfd41b614} mounted as
C:\$SNAP_200906061105_VOLUMEC$\
snapshot: q
ntdsutil: q
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit /ldapport 15000
EVENTLOG (Error): NTDS General / Internal Processing : 1168 Internal
error: An Active Directory Domain Services error has occurred.
Additional Data
-1414
fffffa7a
407d2
EVENTLOG (Error): NTDS General / Internal Processing : 1003 Active
Directory Domain Services could not be initialized.
The directory service cannot recover from this error.
User Action
Restore the local directory service from backup media.
Additional Data
-1414 JET_errSecondaryIndexCorrupted, Secondary index is corrupt. The
database must be defragmented
EVENTLOG (Informational): NTDS General / Service Control : 1004 Active
Directory Domain Services was shut down successfully.
Whatever I try, I always get this message.
I have tried removing all snapshots and created a new one, rebooted the DC
multiple times, etc etc
Nothing seem to help
I'm obviously missing something here - it can't be that hard, can it ?
thanks
c
Meinolf Weber [MVP-DS]
2009-06-06 12:18:01 UTC
Permalink
Hello Peter,

You're welcome.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
it worked with \Windows\NTDS\ntds.dit
(I guess I was looking at the wrong ntds.dit file)
thanks
Post by Meinolf Weber [MVP-DS]
Hello Peter,
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit /ldapport
15000
to
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\ntds.dit /ldapport 15000
Remove the system32 folder in the path.
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Post by Peter Van Eeckhoutte
Hi,
I'm trying to mount an AD snapshot with dsamain, but it does not
seem to work
This is what I do
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil sn "ac i ntds" create q q
ntdsutil: sn
snapshot: ac i ntds
Active instance set to "ntds".
snapshot: create
Creating snapshot...
Snapshot set {daa78261-7eac-4c1d-a020-9a3dcb0cea0b} generated
successfully.
snapshot: q
ntdsutil: q
2. Mount snapshot
- - - - - - - - - - - - -
C:\Windows\System32>ntdsutil
ntdsutil: snap
snapshot: a i ntds
Active instance set to "ntds".
snapshot: list all
1: 2009/06/06:09:35 {28823db2-962b-4334-806e-bbb0a8dd3935}
2: C: {30e3a5b3-0a4e-43bf-9b38-20f007d0f764}
3: 2009/06/06:09:57 {c34ef4ba-9e8f-4291-9cb2-0c77fd62d4c5}
4: C: {10503920-ce9c-417e-b277-6c1888c0b982}
5: 2009/06/06:09:59 {78a468f3-f000-48ec-87c4-5fb2175f8a33}
6: C: {d2d2dac0-8c47-417b-982f-3bb9ab74eb2e}
7: 2009/06/06:11:05 {daa78261-7eac-4c1d-a020-9a3dcb0cea0b}
8: C: {22bea5c8-4491-4780-98d5-b2adfd41b614}
snapshot: mount {22bea5c8-4491-4780-98d5-b2adfd41b614}
Snapshot {22bea5c8-4491-4780-98d5-b2adfd41b614} mounted as
C:\$SNAP_200906061105_VOLUMEC$\
snapshot: q
ntdsutil: q
C:\Windows\System32>dsamain /dbpath
c:\$SNAP_200906061105_VOLUMEC$\Windows\system32\ntds.dit /ldapport
15000
EVENTLOG (Error): NTDS General / Internal Processing : 1168 Internal
error: An Active Directory Domain Services error has occurred.
Additional Data
-1414
fffffa7a
407d2
EVENTLOG (Error): NTDS General / Internal Processing : 1003 Active
Directory Domain Services could not be initialized.
The directory service cannot recover from this error.
User Action
Restore the local directory service from backup media.
Additional Data
-1414 JET_errSecondaryIndexCorrupted, Secondary index is corrupt.
The
database must be defragmented
EVENTLOG (Informational): NTDS General / Service Control : 1004
Active
Directory Domain Services was shut down successfully.
Whatever I try, I always get this message.
I have tried removing all snapshots and created a new one, rebooted
the DC
multiple times, etc etc
Nothing seem to help
I'm obviously missing something here - it can't be that hard, can it
?
thanks
c
Loading...