Ferramentas do usuário

Ferramentas do site


Comandos para Proxmox

Verificar versao

root@pve:~# pveversion
pve-manager/5.0-23/af4267bf (running kernel: 4.10.15-1-pve)

Listar status da storage

root@pve:~# pvesm status
local        dir 1        98559220         2400792        91108880 3.07%
local-lvm  lvmthin 1       851181568       335280419       515901148 39.89%

Listar conteudo da storage

pvesm list <STORAGE_ID> [–vmid <VMID>]

root@pve:~# pvesm list local
local:iso/ubuntu-16.04.4-server-amd64.iso   iso  889192448
root@pve:~# pvesm list local-lvm
local-lvm:vm-100-disk-1   raw 34359738368 100
local-lvm:vm-100-disk-2   raw 343597383680 100
local-lvm:vm-101-disk-1   raw 34359738368 101
local-lvm:vm-102-disk-1   raw 96636764160 102
local-lvm:vm-103-disk-1   raw 112742891520 103

Listar volumes allocados por determinada VM

pvesm list <STORAGE_ID> –vmid <VMID>

root@pve:~# pvesm list local-lvm --vmid 102
local-lvm:vm-102-disk-1   raw 96636764160 102
root@pve:~# pvesm list local-lvm --vmid 101
local-lvm:vm-101-disk-1   raw 34359738368 101

Liberar Volume

pvesm free <VOLUME ID>

Obs: Cuidado com este comando ele destroi todo o storage

Allocate volumes

pvesm alloc <STORAGE_ID> <VMID> <name> <size> [–format <raw|qcow2>]

llocate a 4G volume in local storage. The name is auto-generated if you pass an empty string as <name>

pvesm alloc local <VMID> '' 4G

Remove storage pool

Remove storage pools. This does not delete any data, and does not disconnect or unmount anything. It just removes the storage configuration.

pvesm remove <STORAGE_ID>