0
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 3 years have passed since last update.

Oracle Cloud のディスクサイズを拡張する

Posted at

Oracle Cloud の Always Free Resources では最大200GBのディスクが使用できる。

Always Free Resources

ディスクサイズは「カスタム・ブート・ボリューム・サイズを指定します」から指定するが、
値に関係なく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   ]

pvscanfreeで表示された値を指定する。

lvresize -r -L +53G /dev/mapper/ocivolume-root

参考

0
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
0
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?