Article ID: 120306, created on Feb 25, 2014, last review on Dec 12, 2014

  • Applies to:
  • Virtuozzo
  • Virtuozzo hypervisor

Symptoms

An attempt to resize disk and filesystem inside a Virtual Machine fails with the following error:

Resizing failed. Unable to resize the last volume. The file system of this volume might be damaged or not supported.

Using resize2fs command inside the VM provides the following error:

the combination of flex_bg and !resize_inode features is not supported by resize2fs

Cause

resize2fs cannot resize FS that has resize_inode feature disabled and flex_bg enabled:

...

According to manual resize_inode feature gives following profit:

resize_inode
                      This file system feature indicates that space has
                      been reserved so the block group descriptor table
                      can be extended by the file system is resized
                      while the file system is mounted.  The online
                      resize operation is carried out by the kernel,
                      triggered, by resize2fs(8).  By default mke2fs
                      will attempt to reserve enough space so that the
                      filesystem may grow to 1024 times its initial
                      size.  This can be changed using the resize
                      extended option.

FS resize functionality depends on this feature. Since it is disabled for the partition, it cannot be resized.

Resolution

  1. Add a new drive to the VM;
  2. Create all partitions but the last one with the same size they are on the original disk;
  3. Copy their contents from the 1st disk to the 2nd one with dd utility, e.g:

    # dd if=/dev/sda1 of=/dev/sdb1
    # dd if=/dev/sda2 of=/dev/sdb2
    
  4. Create the last partition of the necessary (increased) size;
  5. Copy contents of the affected partition with cp or rsync to the last partition of the second disk.

Search Words

resize2fs

Resizing failed

flex_bg

VM cannot start after resize the disk

DaApi error 633:0x8

Unable to resize the last volume

The file system of this volume might be damaged or not supported

filesystem feature

Da commit: common(0x8), resizer(0x70001)

the combination of flex_bg and !resize_inode features is not supported by resize2fs

no funcioa naa

resize_inode

tune2fs

DaApi error 381:0x13

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF