더북(TheBook)

2. 블록 스토리지는 lvm 명령어를 이용해 저장 공간을 할당합니다. apt-get install 명령어를 이용해 lvm2를 설치합니다. 여기서는 앞에서 미리 설치했기 때문에 이미 설치되었다는 메시지가 표시됩니다. 설치하지 않았다면 계속 설치할지 물어보는 메시지가 표시됩니다.

root@compute:~# apt-get install lvm2
Reading package lists… Done
Building dependency tree
Reading state information… Done lvm2 is already the newest version (2.02.133-1ubuntu10). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


3. 설치가 완료되면 /dev/sdb 디바이스를 Physical 볼륨으로 생성합니다. 그런 다음 볼륨 그룹을 생성하는데 다음과 같이 cinder-volumes 명령어를 이용해 생성합니다. cinder-volumes는 볼륨 그룹 이름이므로 사용 용도에 따라 다르게 설정할 수 있습니다.

root@compute:~# pvcreate /dev/sdb
  Physical volume “/dev/sdb” successfully created
root@compute:~# vgcreate cinder-volumes /dev/sdb
  Volume group “cinder-volumes” successfully created

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.