Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resize vm disk - [one.vm.diskresize] New disk size has to be greater than current one #1671

Closed
10 of 29 tasks
tkald opened this issue Jan 19, 2018 · 6 comments
Closed
10 of 29 tasks

Comments

@tkald
Copy link

tkald commented Jan 19, 2018

Bug Report

Version of OpenNebula

  • 5.2.2
  • 5.4.0
  • 5.4.1
  • 5.4.2
  • 5.4.5
  • Development build

Component

  • Authorization (LDAP, x509 certs...)
  • Command Line Interface (CLI)
  • Contextualization
  • Documentation
  • Federation and HA
  • Host, Clusters and Monitorization
  • KVM
  • Networking
  • Orchestration (OpenNebula Flow)
  • Packages
  • Scheduler
  • Storage & Images
  • Sunstone
  • Upgrades
  • User, Groups, VDCs and ACL
  • vCenter

Description

When I try to resize (increase) disk on running VM through Sunstone, I get error:
[one.vm.diskresize] New disk size has to be greater than current one
Both for persistent and nonpersitent disks on Ceph backend.

In oned.log there's same error:
Fri Jan 19 16:26:32 2018 [Z0][ReM][D]: Req:2080 UID:0 one.vm.diskresize invoked , 3030, 0, "0"
Fri Jan 19 16:26:32 2018 [Z0][ReM][E]: Req:2080 UID:0 one.vm.diskresize result FAILURE [one.vm.diskresize] New disk size has to be greater than current one

Setting larger disk size on VM creation works however.

Expected Behavior

Able to resize disk on running VM

Actual Behavior

I get error "New disk size has to be greater than current one"

How to reproduce

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@kvaps
Copy link
Contributor

kvaps commented Feb 4, 2018

Hi, affects to me too, after updating from 5.4.1 to 5.4.5.

@kvaps
Copy link
Contributor

kvaps commented Feb 4, 2018

works for me via command line:

onevm disk-resize 5891 0 20480

@Madko
Copy link
Contributor

Madko commented Feb 7, 2018

same here with 5.4.6

@sergiojvg
Copy link
Contributor

Same for me. OpenNebula 5.4.6 compiled from source

@mosharaflink
Copy link

@kvaps while this command shows disk resize done but inside VM we find only 2TB of disk size. I am using OpenNebula 5.6.1. Is there any issues?

@kvaps
Copy link
Contributor

kvaps commented Mar 13, 2019

OpenNebula 5.6 have no this issue, try check your drive via qemu-img info maybe you need to resize partitions manually there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants