Saturday, April 2, 2011

How to change Lightweight data services (LDS) database & log & backup DB folder location & restore & removal

How to change location LDS database folder location from default location to E: drive , LDS log and creating a backup

  1. 1) Moving LDS database folder location, LDS log folder location
  2. 2) Backup LDS database
  3. 3) Authoritative restore
  4. 4) Remove LDS

1) Moving LDS database folder location, LDS log folder location

  • Step 1: Create new folder for LDSdatabase, LDSlog, LDSBackup
  • Step 2: Go to cmd, net stop ldsinstance
  • Step 3: From cmd, using ntdsutil, access to lds instance, type in activate instance ldsinstance
  • Step 4: files
  • Step 5: move db to e:\Ldsdatabase
  • Step 6: move logs to e:\Ldslog
  • Step 7: verify from folder
  • Step 8: quit
  • Step 9: Go to cmd, net start ldsinstance

2) Backup LDS database

  • Step 1: Go to cmd, net stop ldsinstance
  • Step 2: From cmd, using dsdbutil, access to lds instance, type in activate instance ldsinstance
  • Step 3: ifm (install from media)
  • Step 4: create full e:\ldsbackup
  • Step 5: Go to cmd, net start ldsinstance

3) Authoritative restore

  • Step 1: Go to cmd, net stop ldsinstance
  • Step 2: From cmd, using dsdbutil
  • Step 3: list instances
  • Step 4: authoritative restore
  • Step 5: restore object cn=lablds, dc=lab, dc=com

4) Remove LDS

  • Step 1: Uninstall custom lds from add/remove
  • Step 2: Uninstall LDS roles

No comments:

Post a Comment