fdisk /dev/sdd
n nova partició primària
i type 8e
pvcreate --metadatasize 250k -y -ff /dev/sdd1
vgcreate ssd480 /dev/sdd1
crear volumen logic i modicar-lo a thin-client tipus
lvcreate -L 420G -n lvm-ssd480 ssd480
lvconvert --type thin-pool ssd480/lvm-ssd80
root@ies:~# more /etc/pve/storage.cfg
lvmthin: localssd480
thinpool lvm-ssd480
vgname ssd480
content images,rootdir
root@ies:~# pvesm status
Name Type Status Total Used Available %
local dir active 98559220 80857492 12652180 82.04%
local-2t lvmthin active 1887436800 619456757 1267980042 32.82%
local-lvm lvmthin active 850669568 126579631 724089936 14.88%
local-ssdlvm lvmthin inactive 0 0 0 0.00%
localssd480 lvmthin active 440401920 0 440401920 0.00%
maquetacio-rafa cifs active 1786248964 1022766164 763482800 57.26%
nas-dlink nfs active 3840539008 3817249152 23289856 99.39%
root@ies:~#
root@ies:~#
root@ies:~# pvesm scan lvm
vmdata
pve
ssd480
root@ies:~# pvesm lvmthinscan ssd480
lvm-ssd480
root@ies:~# pvesm lvmthinscan pve
data
root@ies:~# pvesm lvmthinscan vmdata
vmstore
root@ies:~# pvesm list local-lvm
local-lvm:vm-104-disk-1 raw 21474836480 104
local-lvm:vm-106-disk-1 raw 4294967296 106
local-lvm:vm-116-disk-1 raw 4294967296 116
local-lvm:vm-118-disk-1 raw 4294967296 118
local-lvm:vm-120-disk-1 raw 8589934592 120
local-lvm:vm-211-disk-1 raw 34359738368 211
local-lvm:vm-330-disk-1 raw 68719476736 330
local-lvm:vm-330-disk-2 raw 68719476736 330
local-lvm:vm-510-disk-1 raw 8589934592 510
local-lvm:vm-550-disk-0 raw 34359738368 550
local-lvm:vm-609-disk-0 raw 8589934592 609
local-lvm:vm-719-disk-0 raw 30064771072 719
local-lvm:vm-721-disk-0 raw 8589934592 721
local-lvm:vm-741-disk-0 raw 8589934592 741
Cap comentari:
Publica un comentari a l'entrada