Maximum Disk Size (MaxDiskSize) is limited to 8191GB in RHV

Solution Verified - Updated

Environment

Red Hat Virtualization 4.0

Issue

I can't create a disk with size greater than 8191GB in Red Hat Virtualization 4.0

Resolution

This is controlled by a engine option that can be changed by engine-config tool (Content from www.ovirt.org is not included.MaxDiskSize). You can run the following commands to set this properly

 # engine-config -s MaxBlockDiskSize=20480 
 # systemctl restart ovirt-engine

If this still doesn't work, add the following to /etc/ovirt-engine/engine-config/engine-config.properties on the manager:

MaxBlockDiskSize.description="Max disk size"
MaxBlockDiskSize.type=Integer

then re-run mentioned commands once again.
Please be aware that disk size greater than 8TB is *not tested and supported . There is This content is not included.RFE to suport 12TB disk size but still in NEW state.

Root Cause

This was resolved in This content is not included.Bugzilla 1402315.

Diagnostic Steps

Checking /var/log/ovirt-engine/engine.log shows

2017-08-17 21:22:03,683-04 INFO  [org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (default task-42) [1611c1fe-8882-41d1-a6fd-39348e264c77] Lock Acquired to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[bba6620a-b0e1-44e9-a8a5-5e974822da4f=]'}'
2017-08-17 21:22:03,688-04 WARN  [org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (default task-42) [1611c1fe-8882-41d1-a6fd-39348e264c77] Validation of action 'AddDisk' failed for user user@domain authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__DISK,ACTION_TYPE_FAILED_DISK_MAX_SIZE_EXCEEDED,$max_disk_size 8192
2017-08-17 21:22:03,688-04 INFO  [org.ovirt.engine.core.bll.storage.disk.AddDiskCommand] (default task-42) [1611c1fe-8882-41d1-a6fd-39348e264c77] Lock freed to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[bba6620a-b0e1-44e9-a8a5-5e974822da4f=]'}'
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.