5
0

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.

proxmoxのストレージ拡張

Posted at

256GBのラップトップにproxmoxをインストールしたが、60GBほどしか利用できないため、ストレージ拡張を行った。
以下コマンドを実行する。

拡張

# Check disk space before
df -h

    # Delete local-lvm storage in gui

    lvremove /dev/pve/data

    lvresize -l +100%FREE /dev/pve/root

    resize2fs /dev/mapper/pve-root

# Check disk space after
df -h

proxmox側に認識させる

拡張は先述のコマンドで完了しているのだが、トランザクションIDの不一致が起きてしまうらしい。
これは以下の操作で解決できる。
image.png

WEB GUIのデータセンター→ストレージ→localを選択
image.png

共有済:にチェックを入れOKを選択する。

これでISOの読み込みやvmのデプロイが正常に行えるはずだ。
なお、ZFSなど複数マシンでクラスタリングなどを行っている場合は正常に実行できない可能性があるので注意したい。

参考文献

ストレージ拡張について
https://gist.github.com/laineantti/4fc29acbbd25593619a76b413e42b78f

拡張後の設定について
https://www.lowendtalk.com/discussion/118720/proxmox-5-can-not-create-new-vm-or-ct

proxmoxのストレージ拡張とトランザクションID
https://forum.proxmox.com/threads/task-error-unable-to-create-vm-100-lvcreate-pve-vm-100-disk-0.55826/

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?