Windows ETC

Active Directory Database 저장위치를 다른 폴더 또는 디스크로 변경하는 방법입니다.

일반적으로 트래픽이 빈번하지 않은 AD환경의 경우 기본 위치인 C드라이에 DB 위치해도 문제될 사항은 없습니다.

그러나, 대형 사이트의 경우 필수로 분리된 디스크 컨트롤러에 위치하는 것이 성능상 좋습니다. 예로, 코리아닷컴 이나, 하나포스등과 같은 대형사이트처럼 AD 계정을 통해서 인증 서버 클라이언트의 정보 조회 수정이 빈번할경우 I/O 분리된 디스크에 위치해서 트랜잭션 성능에 문제가 없게 해야 합니다.

신규 AD 구축시, 다른 디스크에 지정했을경우나, 기본 폴더에 위치한 것을 다른 폴더 디스크에 이동할경우 ntdsutil 이용해서 변경할수 있습니다.

1. DC 부팅시 AD복원모드로 부팅을 한후, cmd에서 다음 과정을 수행합니다.

2. AD DB파일 이동..

C:\>ntdsutil

ntdsutil: files

file maintenance: move db to D:\ADDB (*D:\ADDB 이동할경우)

[Current] 데이터베이스를 여는 중입니다.

C:\>REM - **********************************************

C:\>REM - Script to move DS DB file

C:\>REM - **********************************************

C:\>D:

D:\>cd \

D:\>mkdir "ADDB"

D:\>cd "ADDB"

D:\ADDB>move "C:\WINDOWS\NTDS\ntds.dit" "D:\ADDB\ntds.dit"

1 파일을 이동했습니다.

D:\ADDB>C:\WINDOWS\system32\ntdsutil.exe files "set path DB \"D:\ADDB\ntds.dit\"

" quit quit

C:\WINDOWS\system32\ntdsutil.exe: files

file maintenance: set path DB "D:\ADDB\ntds.dit"

C:\WINDOWS\NTDS에서 D:\ADDB NTFS 보안을 복사하는 ...

file maintenance: quit

C:\WINDOWS\system32\ntdsutil.exe: quit

D:\ADDB>C:\WINDOWS\system32\ntdsutil.exe files "set path backup \"D:\ADDB\DSADAT

A.BAK\"" quit quit

C:\WINDOWS\system32\ntdsutil.exe: files

file maintenance: set path backup "D:\ADDB\DSADATA.BAK"

이전 NTDS 데이터베이스 위치 C:\WINDOWS\NTDS\dsadata.bak() 없습니다. 기본 NTF

S 보안이 NTDS 폴더에 적용됩니다.

NTDS 폴더의 기본 NTFS 보안은 다시 부팅할 설정됩니다.

file maintenance: quit

C:\WINDOWS\system32\ntdsutil.exe: quit

D:\ADDB>C:\WINDOWS\system32\ntdsutil.exe files "set path working dir \"D:\ADDB\"

" quit quit

C:\WINDOWS\system32\ntdsutil.exe: files

file maintenance: set path working dir "D:\ADDB"

C:\WINDOWS\NTDS에서 D:\ADDB NTFS 보안을 복사하는 ...

file maintenance: quit

C:\WINDOWS\system32\ntdsutil.exe: quit

D:\ADDB>C:\WINDOWS\system32\ntdsutil.exe files info quit quit

C:\WINDOWS\system32\ntdsutil.exe: files

file maintenance: info

드라이브 정보:

C:\ NTFS (고정 드라이브 ) 사용 가능(4.3 Gb) 전체(5.8 Gb)

D:\ NTFS (고정 드라이브 ) 사용 가능(3.9 Gb) 전체(3.9 Gb)

E:\ NTFS (고정 드라이브 ) 사용 가능(1012.3 Mb) 전체(1019.7 Mb)

DS 경로 정보:

데이터베이스 : D:\ADDB\ntds.dit - 12.1 Mb

백업 디렉터리: D:\ADDB\DSADATA.BAK

작업 디렉터리: D:\ADDB

로그 디렉터리 : C:\WINDOWS\NTDS - 30.0 Mb 합계

res2.log - 10.0 Mb

res1.log - 10.0 Mb

edb.log - 10.0 Mb

file maintenance: quit

C:\WINDOWS\system32\ntdsutil.exe: quit

D:\ADDB>REM - **********************************************

D:\ADDB>REM - Please make a backup immediately else restore

D:\ADDB>REM - will not retain the new file location.

D:\ADDB>REM - **********************************************

[Current] 데이터베이스를 여는 중입니다.

데이터베이스가 이동된 경우,

즉시 백업을 만들어야

복원되는 경우 파일 위치가 유지됩니다.

3. AD LOG파일 이동..

file maintenance: move logs to e:\ADLOG

[Current] 데이터베이스를 여는 중입니다.

C:\>REM - **********************************************

C:\>REM - Script to move DS log files

C:\>REM - **********************************************

C:\>e:

E:\>cd \

E:\>mkdir "ADLOG"

E:\>cd "ADLOG"

E:\ADLOG>move "C:\WINDOWS\NTDS\res2.log" "e:\ADLOG\res2.log"

1 파일을 이동했습니다.

E:\ADLOG>move "C:\WINDOWS\NTDS\res1.log" "e:\ADLOG\res1.log"

1 파일을 이동했습니다.

E:\ADLOG>move "C:\WINDOWS\NTDS\edb.log" "e:\ADLOG\edb.log"

1 파일을 이동했습니다.

E:\ADLOG>C:\WINDOWS\system32\ntdsutil.exe files "set path logs \"e:\ADLOG\"" qui

t quit

C:\WINDOWS\system32\ntdsutil.exe: files

file maintenance: set path logs "e:\ADLOG"

C:\WINDOWS\NTDS에서 e:\ADLOG NTFS 보안을 복사하는 ...

file maintenance: quit

C:\WINDOWS\system32\ntdsutil.exe: quit

E:\ADLOG>C:\WINDOWS\system32\ntdsutil.exe files info quit quit

C:\WINDOWS\system32\ntdsutil.exe: files

file maintenance: info

드라이브 정보:

C:\ NTFS (고정 드라이브 ) 사용 가능(4.6 Gb) 전체(5.8 Gb)

D:\ NTFS (고정 드라이브 ) 사용 가능(3.9 Gb) 전체(3.9 Gb)

E:\ NTFS (고정 드라이브 ) 사용 가능(982.2 Mb) 전체(1019.7 Mb)

DS 경로 정보:

데이터베이스 : D:\ADDB\ntds.dit - 12.1 Mb

백업 디렉터리: D:\ADDB\DSADATA.BAK

작업 디렉터리: D:\ADDB

로그 디렉터리 : e:\ADLOG - 30.0 Mb 합계

res2.log - 10.0 Mb

res1.log - 10.0 Mb

edb.log - 10.0 Mb

file maintenance: quit

C:\WINDOWS\system32\ntdsutil.exe: quit

E:\ADLOG>REM - **********************************************

E:\ADLOG>REM - Please make a backup immediately else restore

E:\ADLOG>REM - will not retain the new file location.

E:\ADLOG>REM - **********************************************

[Current] 데이터베이스를 여는 중입니다.

로그가 이동된 경우,

즉시 백업을 만들어야

복원되는 경우 파일 위치가 유지됩니다.

4. AD DB 변경한후 무결성을 검사합니다..

file maintenance: integrity

[Current] 데이터베이스를 여는 중입니다.

명령 실행 : C:\WINDOWS\system32\esentutl.exe /g"D:\ADDB\ntds.dit" /o

Initiating INTEGRITY mode...

Database: D:\ADDB\ntds.dit

Temp. Database: TEMPINTEG1584.EDB

Checking database integrity.

Scanning Status (% complete)

0 10 20 30 40 50 60 70 80 90 100

|----|----|----|----|----|----|----|----|----|----|

...................................................

Integrity check successful.

Operation completed successfully in 9.719 seconds.

0x0(0) 처리 끝내기 코드를 만들었습니다.

무결성이 성공적이면 의미적 데이터베이스 분석을

실행하여 의미적 데이터베이스의 일관성도 확인하는

것이 좋습니다.

file maintenance: quit

ntdsutil: quit

번호 제목 글쓴이 날짜 조회 수
» AD Database 저장위치를 다른 폴더 또는 디스크로 변경 호스트웨이 2012.10.26 15555
176 레지스트리에서 불필요한 실행 프로세스 자동실행 삭제 file 호스트웨이 2012.04.06 15428
175 Windows2008 숨겨진 장치드라이버 삭제하기 file 호스트웨이 2012.05.11 15409
174 실행 창에서 입력한 명령어 목록 지우기 file 호스트웨이 2012.06.15 15356
173 시스템종료 권한 삭제하기 file 호스트웨이 2012.06.08 15121
172 Windows 방화벽 실행 시 ipnat.sys를 사용할 수 없다는 에러 발생시 조치 방법 file 호스트웨이 2012.08.23 15103
171 Win2k8R2 Cluster Resource IP 변경방법 file 호스트웨이 2012.04.20 15055
170 윈도우 하드링크와 심볼릭링크 file 호스트웨이 2012.08.31 14820
169 DNS 백업과 복구 호스트웨이 2012.03.30 14813
168 Windows 로그인시 배너 띄우기 file 호스트웨이 2012.06.15 14746
167 SC 명령으로 Windwos service 생성하는 방법 file 호스트웨이 2012.03.30 14713
166 Windows 2008 클러스터 로그생성 방법 file 호스트웨이 2012.06.01 14707
165 Windows 대화형 로그온 (Interactive Logon) 작동 과정 file 호스트웨이 2012.06.29 14645
164 특정 문자에 대한 정보 찾기 findstr file 호스트웨이 2012.03.23 14622
163 Windows 2008 Server에서 화상키보드 및 마우스키설정 file 호스트웨이 2012.04.13 14504
162 설치 된 .Net Framework 확인 방법 file 호스트웨이 2012.06.29 14414
161 Windows Server 2003에서 방화벽 서비스가 시작되지 않을 때 해결 방법 file 호스트웨이 2012.03.30 14401
160 subinacl이란? 호스트웨이 2012.03.16 14385
159 Master Control Panel 생성 file 호스트웨이 2012.06.01 14370
158 Active Directory Domain Services 백업 및 복구. file 호스트웨이 2012.04.20 14363