Jump to content
  • entries
    194
  • comments
    292
  • views
    77108

Πως θα μετακινήσω την βάση του Active Directory σε άλλο δίσκο;


spanougakis

613 views

 Share

Όχι. Μην ξηλώνετε τον domain controller για να τον ξαναστήσετε. Γίνεται και με πιο εύκολο τρόπο. Προσοχή λοιπόν. Το σενάριο λέει ότι όταν στήναμε το Active Directory, διαλέξαμε τον δίσκο C. Τώρα όμως αυτός ο δίσκος ίσως να μην έχει χώρο, άρα θα πρέπει να στείλουμε με κάποιο τρόπο το αρχείο ntds.dit (την βάση του Active Directory δηλαδή) στον δίσκο D.

Σε καμμία περίπτωση δεν πρέπει να σκεφτείτε ότι με ένα απλό copy καθαρίσατε. Δεν θα δουλέψει και αν είχατε την φαεινή ιδέα (και τον τρόπο) να σβήσετε το αρχικό αρχείο, θα δείτε ότι ο domain controller δεν είναι πια domain controller, αλλά ... ενυδρείο. Προτιμήστε τα πιο ζωηρά χρώματα για τα ψαράκια που θα βάλετε μέσα και είσαστε ok.

Θα πρέπει να χρησιμοποιήσετε το Directory Services Restore Mode. Πρόκειται για μια ειδική λειτουργία που σας επιτρέπει να κάνετε πολλές δουλειές στους DC, όπως πχ. να κάνετε defrag τη βάση του Active Directory. Μας επιτρέπει όμως να κάνουμε και αυτή τη μετακίνηση που θέλουμε.

Κάνουμε restart τον domain controller και πριν ξαναξεκινήσει πατάμε το μαγικό F8. Στο επόμενο menu που θα εμφανιστεί, επιλέξτε "Directory Services Restore". Θα σας ζητηθεί το password που είχατε δηλώσει κατά την εγκατάσταση του Active Directory (προσοχή: δεν είναι το ίδιο με το password του administrator, εκτός εάν το κάνατε εσείς να είναι ίδιο).

Μπαίνετε σε command prompt και πληκτρολογείτε με ευλάβεια τα παρακάτω:

c:\ntdsutil
files
move db to d:\ntds
q
q

Θυμηθείτε ότι μετά από κάθε γραμμή που βλέπετε παραπάνω υπάρχει και πάτημα του Enter. Τέλος, κάντε μια επανεκκίνηση κανονικά και τελειώσατε.

 Share

2 Comments


Recommended Comments

Χρήστο με τα security permissions τι γίνεται;

Περνάνε κανονικά στη νέα θέση η πρέπει να κάνεις επιπλέον εργασίες για να τα επαναφέρεις;

Link to comment

Προτείνεται κα κάνουμε αυτό:

"If the path to the database file or log files has changed from the original location, check permissions on the database folder or logs folder while still in Directory Services Restore Mode, as follows:

 

In Windows Explorer, right-click the folder to which you have moved the database file or log files, and then click Properties.

 

Click the Security tab, and verify that the permissions are:

Administrators group has Allow Full Control.

System has Allow Full Control.

Inheritable permissions are not allowed (checkbox is cleared).

No Deny permissions are selected.

 

If the permissions in step 9b are in effect, then go to step 10. If permissions other than those described in step 9b are in effect, then perform steps 9d through 9k.

 

If Allow inheritable permissions from parent to propagate to this object is selected, click to clear it.

 

When prompted, click Copy to copy previously inherited permissions to this object.

 

If Administrators or SYSTEM, or both, are not in the Name list, click Add.

 

On the Select Users or Groups page, in the Look in: box, be sure the name of the local computer is selected.

 

In the Name list, click System if needed, and then click Add. Repeat to add Administrators, if needed, and then click OK.

 

On the Security tab, click System and then in the Allow column, click Full Control. Repeat for Administrators.

 

In the Name box, click any name that is not SYSTEM or Administrators, and then click Remove. Repeat until the only remaining accounts are Administrators and SYSTEM, and then click OK."

 

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...