5장. 더 이상 필요하지 않은 접미사의 데이터베이스 삭제
Directory Server 호스트의 디스크 공간을 회수해야하는 경우 더 이상 사용되지 않는 접미사의 데이터베이스를 삭제할 수 있습니다.
5.1. 명령줄을 사용하여 데이터베이스 삭제
다음 절차에서는 명령줄에서 Directory Server 데이터베이스를 삭제하는 방법을 설명합니다.
절차
접미사와 해당 데이터베이스를 나열합니다.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow dsconf -D "cn=Directory Manager" ldap://server.example.com backend suffix list
# dsconf -D "cn=Directory Manager" ldap://server.example.com backend suffix list dc=example,dc=com (userroot) o=test (test_database)
삭제할 데이터베이스의 이름을 기록해 둡니다.
dsconf backend delete
명령을 입력하고 데이터베이스 이름을 지정합니다.Copy to Clipboard Copied! Toggle word wrap Toggle overflow dsconf -D "cn=Directory Manager" ldap://server.example.com backend delete "test_database"
# dsconf -D "cn=Directory Manager" ldap://server.example.com backend delete "test_database"
프롬프트에 "예"를 입력하여 삭제를 확인합니다.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Deleting Backend cn=test_database,cn=ldbm database,cn=plugins,cn=config : Type 'Yes I am sure' to continue: Yes I am sure
Deleting Backend cn=test_database,cn=ldbm database,cn=plugins,cn=config : Type 'Yes I am sure' to continue: Yes I am sure
검증
접미사/database를 나열합니다.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow dsconf -D "cn=Directory Manager" ldap://server.example.com backend suffix list
# dsconf -D "cn=Directory Manager" ldap://server.example.com backend suffix list dc=example,dc=com (userroot)