1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

devstackでLVMのボリュームサイズを変更する

1
Posted at

devstackではデフォルトで作成されるLVMのPVのサイズが10Gなので、VMを複数立てるには足りないことがある。
PVのサイズは以下の設定で変更できる。

local.conf
[[local|localrc]]
VOLUME_BACKING_FILE_SIZE=50G

PVのサイズを変更すると、VGのサイズも増える。

% sudo pvs                                                                                                                                                                      
  PV         VG                        Fmt  Attr PSize  PFree
  /dev/loop1 stack-volumes-default     lvm2 a--  50.00g 50.00g
  /dev/loop2 stack-volumes-lvmdriver-1 lvm2 a--  50.00g 50.00g
% sudo vgs                                                                                                                                                                     
  VG                        #PV #LV #SN Attr   VSize  VFree
  stack-volumes-default       1   0   0 wz--n- 50.00g 50.00g
  stack-volumes-lvmdriver-1   1   0   0 wz--n- 50.00g 50.00g
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?