Hi!,
I am having problems when I try to resize disks of a KVM machine with ceph backed disks.
While the server is powered off I can resize the disks without problems, but when it is online I get an error.
The kvm definition is:
When it is running it cannot resize the disk.
ceph backed disk (scsi driver)
ceph backed disk (virtio driver)
LVM backed disk (scsi driver)
And when the server is not running I can resize the disk:
My proxmox versions:
This behaviour is not happening when I resize a running LXC container with a ceph backed disk.
Thanks and best regards
I am having problems when I try to resize disks of a KVM machine with ceph backed disks.
While the server is powered off I can resize the disks without problems, but when it is online I get an error.
The kvm definition is:
Code:
# cat /etc/pve/qemu-server/164.conf
bootdisk: scsi0
cores: 6
ide2: pve-isos:iso/debian-8.4.0-amd64-netinst.iso,media=cdrom
memory: 10240
name: test12
ostype: l26
scsi0: file=ceph_vmtier-10:vm-164-disk-1,discard=on,size=47G
scsi2: file=S2-sasr10-mirror0:vm-164-disk-1,discard=on,size=9G
virtio0: file=ceph_vmtier-10:vm-164-disk-2,size=6G
scsihw: virtio-scsi-single
smbios1: uuid=36e54e93-070a-46b1-86b7-2ab73e506f83
sockets: 1
When it is running it cannot resize the disk.
ceph backed disk (scsi driver)
Code:
# qm resize 164 scsi0 +1G
VM 164 qmp command 'block_resize' failed - Could not resize: Invalid argument
ceph backed disk (virtio driver)
Code:
# qm resize 164 virtio0 +1G
VM 164 qmp command 'block_resize' failed - Could not resize: Invalid argument
LVM backed disk (scsi driver)
Code:
# qm resize 164 scsi2 +1G
Size of logical volume S2vgsasr10m0/vm-164-disk-1 changed from 8.00 GiB (2048 extents) to 9.00 GiB (2304 extents).
Logical volume vm-164-disk-1 successfully resized
And when the server is not running I can resize the disk:
Code:
# qm stop 164
# qm resize 164 scsi0 +1G
/dev/rbd12
Resizing image: 100% complete...done.
Code:
# qm resize 164 virtio0 +1G
/dev/rbd13
Resizing image: 100% complete...done.
My proxmox versions:
Code:
proxmox-ve: 4.2-51 (running kernel: 4.4.8-1-pve)
pve-manager: 4.2-5 (running version: 4.2-5/7cf09667)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.4.8-1-pve: 4.4.8-51
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 1.0-1
pve-cluster: 4.0-39
qemu-server: 4.0-75
pve-firmware: 1.1-8
libpve-common-perl: 4.0-62
libpve-access-control: 4.0-16
libpve-storage-perl: 4.0-50
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-17
pve-container: 1.0-64
pve-firewall: 2.0-27
pve-ha-manager: 1.0-31
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 1.1.5-7
lxcfs: 2.0.0-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
fence-agents-pve: not correctly installed
ceph: 0.94.7-1~bpo80+1
This behaviour is not happening when I resize a running LXC container with a ceph backed disk.
Thanks and best regards