Notes on IT (mainly Microsoft)

Mountable snapshots with AD LDS in Windows 7

leave a comment »

Does snapshot database mounting work in AD LDS for Windows 7?

Use dsdbutil to take a snapshot of an AD LDS instance (“instance1”)
(user input in [] below)

==
dsdbutil: [Activate Instance instance1]
Active instance set to “instance1”.

dsdbutil: [snapshot]
snapshot: [create]
Creating snapshot…
Snapshot set {4c2113e1-c6aa-45b8-b4c3-c5a01568d648} generated successfully.

snapshot: [mount {4c2113e1-c6aa-45b8-b4c3-c5a01568d648}]
Snapshot {7352a291-6c27-44e3-9008-c04923274daa} mounted as C:\$SNAP_201004012133_VOLUMEC$\

==

Try and mount the DIT file:

==
C:\> dsamain -dbpath “C:\$SNAP_201004012133_VOLUMEC$\Program Files\Microsoft ADAM\instance\data\adamntds.dit”  -adlds -ldapport 50000

EVENTLOG (Error): ADAM [DSAMAIN] Database / Service Control : 2526
This instance of the directory server does not support placing data files
(database and log files) on multiple disk volumes. As a result, the directory
server will not start.

User Action:

To start this directory server, place all data files (database and log files)
on the same disk volume.

EVENTLOG (Error): ADAM [DSAMAIN] General / Internal Processing : 1168
Internal error: An Active Directory Lightweight Directory Services error has occurred.

Additional Data

Error value (decimal):
87

Error value (hex):
57

Internal ID:
2020b5c
==

However if we copy the DIT file from the snapshot to a folder on a physical partition:

==
C:\>copy “C:\$SNAP_201004012133_VOLUMEC$\Program Files\Microsoft ADAM\instance1\data\adamntds.dit” c:\local\temp
1 file(s) copied.

C:\>dsamain -dbpath “C:\local\temp\adamntds.dit” -adlds -ldapport 50000
EVENTLOG (Informational): ADAM [DSAMAIN] General / Service Control : 1000
Microsoft Active Directory Lightweight Directory Services startup complete, version 6.1.7600.16521

==

which works.

Creating an install from media (IFM) backup of the AD LDS instance works too:

==

dsdbutil: [Activate Instance instance1]
Active instance set to “instance1”.
dsdbutil: [IFM]

ifm: [Create Full c:\local\temp]

Creating snapshot…
Snapshot set {d6ae77f3-d31d-4975-8a7d-c4ae567821b3} generated successfully.
Snapshot {7278807a-e22e-4a3b-ad46-426f5afe0688} mounted as C:\$SNAP_201004012151_VOLUMEC$\
Initiating DEFRAGMENTATION mode…
Source Database: C:\$SNAP_201004012151_VOLUMEC$\Program Files\Microsoft ADAM\instance1\data\adamntds.dit
Target Database: c:\local\temp\adamntds.dit

Defragmentation  Status (% complete)

0    10   20   30   40   50   60   70   80   90  100
|—-|—-|—-|—-|—-|—-|—-|—-|—-|—-|
……………………………………………

Snapshot {7278807a-e22e-4a3b-ad46-426f5afe0688} unmounted.
IFM media created successfully in c:\local\temp
ifm:
==

and then mounting the DIT file as above:

==

C:\> dsamain -dbpath “C:\local\temp\adamntds.dit” -adlds -ldapport 50000
EVENTLOG (Informational): ADAM [DSAMAIN] General / Service Control : 1000
Microsoft Active Directory Lightweight Directory Services startup complete, version 6.1.7600.16521

==

So if you need a snapshot of your AD LDS instance using IFM is the way to go and provides
you with a supported way to backup (http://technet.microsoft.com/en-us/library/cc816727(WS.10).aspx)
and restore (http://technet.microsoft.com/en-us/library/cc770886(WS.10).aspx) your AD LDS instances.

Advertisements

Written by adamsync

April 1, 2010 at 22:07

Posted in AD LDS, adam-lds, Microsoft, Windows 7

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: