설치 마무리

설치 마무리

주석

디폴트 구성 파일을 배포판에 따라 달라집니다. 기존 섹션 및 옵션을 변경하는 것 보다는 해당 섹션과 옵션을 추가해야 할 수도 있습니다. 또한 구성 내용 조각 중 생략 (...) 부분은 유지될 필요성이 있는 디폴트 구성 옵션을 가리킵니다.

  1. /etc/swift/swift.conf 파일을 수정하고 다음 작업을 진행합니다:

    • [swift-hash] 섹션에서 대상 환경에 대한 해시 경로 prefix와 suffix를 구성합니다.

      [swift-hash]
      ...
      swift_hash_path_suffix = HASH_PATH_SUFFIX
      swift_hash_path_prefix = HASH_PATH_PREFIX
      

      유니크한 값으로 HASH_PATH_PREFIX와 HASH_PATH_SUFFIX 를 수정합니다.

      경고

      해당 값을 안전하게 보관하고, 변경하거나 잃어버리지 않습니다.

    • [storage-policy:0] 섹션에서 기본 스토리지 정책을 구성합니다:

      [storage-policy:0]
      ...
      name = Policy-0
      default = yes
      
  2. 각 스토리지 노드와 추가로 프록시 서비스가 작동 중인 노드에서 swift.conf 파일을 /etc/swift 디렉토리에 복사합니다.

  1. 모든 노드에서 구성 디렉토리에 대해 적절한 소유권이 있는지를 확인합니다:

    # chown -R root:swift /etc/swift
    
  2. 컨트롤러 노드와 프록시 서비스가 실행 중인 다른 노드에서 오브젝트 스토리지 프록시 서비스와 그와 관련된 서비스들을 시작하고 시스템 부팅시 자동으로 시작하도록 구성합니다:

    # systemctl enable openstack-swift-proxy.service memcached.service
    # systemctl start openstack-swift-proxy.service memcached.service
    
  3. 스토리지 노드에서 오브젝트 스토리지 서비스를 시작하고 시스템이 부팅될 때 시작하도록 설정함:

    # systemctl enable openstack-swift-account.service openstack-swift-account-auditor.service \
      openstack-swift-account-reaper.service openstack-swift-account-replicator.service
    # systemctl start openstack-swift-account.service openstack-swift-account-auditor.service \
      openstack-swift-account-reaper.service openstack-swift-account-replicator.service
    # systemctl enable openstack-swift-container.service openstack-swift-container-auditor.service \
      openstack-swift-container-replicator.service openstack-swift-container-updater.service
    # systemctl start openstack-swift-container.service openstack-swift-container-auditor.service \
      openstack-swift-container-replicator.service openstack-swift-container-updater.service
    # systemctl enable openstack-swift-object.service openstack-swift-object-auditor.service \
      openstack-swift-object-replicator.service openstack-swift-object-updater.service
    # systemctl start openstack-swift-object.service openstack-swift-object-auditor.service \
      openstack-swift-object-replicator.service openstack-swift-object-updater.service
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.