Oracle Cloud の Always Free Resources では最大200GBのディスクが使用できる。
ディスクサイズは「カスタム・ブート・ボリューム・サイズを指定します」から指定するが、
値に関係なく50GBで認識するので、拡張が必要となる。
拡張方法
ルートディレクトリ(/
)が/dev/sda3
にマウントされている場合
growpart /dev/sda 3
pvresize /dev/sda3
拡張できるサイズを確認する。
$ pvscan
PV /dev/sda3 VG ocivolume lvm2 [<98.90 GiB / <53.43 GiB free]
Total: 1 [<98.90 GiB] / in use: 1 [<98.90 GiB] / in no VG: 0 [0 ]
pvscan
のfree
で表示された値を指定する。
lvresize -r -L +53G /dev/mapper/ocivolume-root