controller | compute | network |
cinder api | nova compute | cinder volume |
cinder scheduler | l2 agent | lvm2 |
nfs server | nfs clinet | nfs client |
#####################################
##### network node에서 설정 ############
###################################
vi /etc/cinder/cinder.conf
[DEFAULT]
my_ip = 192.168.100.112
log_dir = /var/log/cinder
state_path = /var/lib/cinder
enable_v1_api = True
enable_v2_api = True
enable_v3_api = True
auth_strategy = keystone
transport_url = rabbit://openstack:password@192.168.100.110
glance_api_servers = http://192.168.100.110:9292
enabled_backends = lvm,nfs
[lvm]
target_helper = lioadm
#
volume_group = cinder-volumes
target_ip_address = 192.168.100.112
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volumes_dir = $state_path/volumes
target_protocol = iscsi
[nfs]
volume_driver = cinder.volume.drivers.nfs.NfsDriver
nfs_shares_config = /etc/cinder/nfs.conf
nfs_mount_point_base = $state_path/mnt
volume_backend_name = NFS
# cat /etc/cinder/nfs.conf
controller:/share
#systemctl restart openstack-cinder-volume
#####################################
##### controller node에서 설정 ############
###################################
볼륨 타입 생성
#openstack volume type create lvm
#openstack volume type create nfs
#openstack volume type list
볼륨 생성
#openstack volume create --type lvm --size 1 lvm1
#openstack volume create --type nfs --size 1 nfs1
#openstack volume list
볼륨 할당
#openstack server add volume ciross lvm1
#openstack server add volume cirros_prod1 nfs1
#openstack volume list
볼륨 마이그레이션
cirros_prod1 /share 폴더 볼륨 해제 ----> cirros4 /share 폴더로 마운트
'openstack' 카테고리의 다른 글
openstack - swift 사용 (0) | 2021.02.18 |
---|---|
openstack - ceph 스토리지 설정 (0) | 2021.02.17 |
openstack - cinder nfs로 구성 (0) | 2021.02.02 |
openstack - horizon에서 세팅 과정 (0) | 2021.02.02 |
openstack - cinder iscsi volume disk 컨피그 및 instance 할당 (0) | 2021.02.02 |