Oracle® Solaris에서 OpenStack(Juno) 설치 및 구성

인쇄 보기 종료

업데이트 날짜: 2016년 6월
 
 

블록 저장소 노드를 구성하는 방법

이 절차에서는 블록 저장소의 일반적인 구성을 설명합니다. 저장소 구성 요소 구성을 위한 기타 옵션은 Cinder 구성 및 배치 옵션을 참조하십시오.

  1. NTP 클라이언트를 구성합니다.

    NTP 클라이언트 구성을 참조하십시오.

  2. /etc/cinder/cinder.conf 파일에서 매개변수를 설정하거나 주석 처리를 해제하여 Cinder를 구성합니다.
    [DEFAULT]
    san_is_local=true
    volume_driver=cinder.volume.drivers.solaris.zfs.ZFSISCSIDriver
    my_ip=$VOLUME_IP
    rabbit_host=$CONTROLLER_ADMIN_NODE
    glance_host=$CONTROLLER_ADMIN_NODE
    zfs_volume_base=cinder/cinder
    
    [database]
    connection = mysql://cinder:service-password@$CONTROLLER_ADMIN_NODE/cinder
    
    [keystone_authtoken]
    auth_uri = http://$CONTROLLER_ADMIN_NODE:5000/v2.0
    identity_uri = http://$CONTROLLER_ADMIN_NODE:35357
    admin_user = cinder
    admin_password = service-password
    admin_tenant_name = service
    
    
  3. /etc/cinder/api-paste.ini 파일에서 매개변수를 설정합니다.
    [filter:authtoken]
    admin_tenant_name = service
    admin_user = cinder
    admin_password = service-password
    
  4. 블록 저장소 또는 볼륨 노드에 Cinder 서비스 액세스 권한을 부여합니다.
    1. 컨트롤러 노드에 액세스합니다.
    2. 다음 명령을 실행합니다.
      controller# mysql -u root -p
      Enter password: MySQL-root-password
      mysql> grant all privileges on cinder.* to 'cinder'@'$VOLUME_IP' identified by 'service-password';
      mysql> flush privileges
      mysql> quit
  5. 저장소 노드에서 Cinder 서비스를 시작합니다.
    storage# svcadm enable -rs cinder-db cinder-volume:default cinder-volume:setup
    storage# svcadm enable -rs iscsi/target