[SOLVED] qemu-img: Error resizing image: File too large

KimiMAT

New Member
May 20, 2017
3
0
1
45
Hello,

I've used ProxMox VE for a few years without a prob but I'm facing something I don't understand, so I don't know how to solve this poblem.


Virtual Environment 4.4-13/7ea56165 on a dedicated server at SoYouStart. Let me say I run 4 servers like this one and have this problem with this server only.


A few day ago I order a new server, setup a CT (Debian 8 - CT is running smoothly) and started to use it in production. I needed to extend the drives space from 1.5TB to 2.5. I like ProxMox VE cause I can do it really an easy way using the WebUI. But I had a problem doing it:
Code:
qemu-img: Error resizing image: File too large
TASK ERROR: command '/usr/bin/qemu-img resize -f raw /var/lib/vz/images/112/vm-112-disk-1.raw 2244120444928' failed: exit code 1

I had this prob at the first disk extend. I could deal to add more space adding 10 by 10GB. I couldn't add 600/70/40GB at once. I Googled a bit about it but i'm still stuck so I hope you could help me.

Here are some specs:
ProxMox server
Code:
root@nsxxx:~# df -h
Filesystem                                                                    Size  Used Avail Use% Mounted on
udev                                                                           10M     0   10M   0% /dev
tmpfs                                                                         6.3G  8.9M  6.3G   1% /run
/dev/md2                                                                       20G  2.2G   16G  12% /
tmpfs                                                                          16G   40M   16G   1% /dev/shm
tmpfs                                                                         5.0M     0  5.0M   0% /run/lock
tmpfs                                                                          16G     0   16G   0% /sys/fs/cgroup
/dev/mapper/pve-data                                                          5.4T  665G  4.5T  13% /var/lib/vz
/dev/fuse                                                                      30M   16K   30M   1% /etc/pve

root@nsxxx:/var/lib/vz/images/112# ls -lsh
total 663G
663G -rw-r----- 1 root root 2.0T May 20 09:50 vm-112-disk-1.raw

112.conf
Code:
arch: amd64
cores: 8
hostname: yyy
memory: 10240
nameserver: xxxx
net0: name=eth0,bridge=vmbr0,gw=xxx,hwaddr=xxxx,ip=xxx,type=veth
ostype: debian
rootfs: local:112/vm-112-disk-1.raw,size=2139095072K
searchdomain: xxx
swap: 1024
lxc.autodev: 1
lxc.hook.autodev: sh -c "mknod -m 0666 ${LXC_ROOTFS_MOUNT}/dev/fuse c 10 229"

CT
Code:
root@yyy:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop0      2.0T  778G  1.1T  41% /
none            492K     0  492K   0% /dev
tmpfs           3.2G   64K  3.2G   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           2.2G     0  2.2G   0% /run/shm


BTW since the last fail, the disk space is written in K instead of GB...

EDIT: I tried to repair with fsck.ext3 but it seems it didn't help.
Code:
root@nsxxx:/var/lib/vz/images/112# fsck.ext3 -pcfv vm-112-disk-1.raw
MMP interval is 5 seconds and total wait time is 22 seconds. Please wait...
vm-112-disk-1.raw: Updating bad block inode.

       78053 inodes used (0.06%, out of 132644864)
         101 non-contiguous files (0.1%)
          25 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 70987/484/3
   166859639 blocks used (31.45%, out of 530579456)
           0 bad blocks
          53 large files

       63967 regular files
        7347 directories
           0 character device files
           0 block device files
           1 fifo
         380 links
        6729 symbolic links (6570 fast symbolic links)
           0 sockets
------------
       78424 files


Thanks,
 

Attachments

  • Sélection_013.png
    Sélection_013.png
    63.8 KB · Views: 13
Last edited:
Hi,

what fs do you use in /var/lib/vz.
and please show the output of

pvdisplay
lvdisplay
 
  • Like
Reactions: KimiMAT
Hi,

Its ext3, the default one.
Code:
/dev/mapper/pve-data                                                         ext3      5.4T  771G  4.4T  15% /var/lib/vz

Code:
root@nsxxx:~# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda4
  VG Name               pve
  PV Size               2.71 TiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              710139
  Free PE               0
  Allocated PE          710139
  PV UUID               1rQnyz-tvDK-9Z0Y-IAPQ-Bqxb-sK1q-EqpxrU
  
  --- Physical volume ---
  PV Name               /dev/sdb4
  VG Name               pve
  PV Size               2.71 TiB / not usable 3.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              710139
  Free PE               1023
  Allocated PE          709116
  PV UUID               PyNMaQ-clAS-wuMz-q9LQ-CExA-55dV-tf3TLw
  
root@nsxxx:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/data
  LV Name                data
  VG Name                pve
  LV UUID                mWivMq-p34j-aSFb-5ctB-iMCW-k1Su-eEOwrx
  LV Write Access        read/write
  LV Creation host, time rescue.ovh.net, 2017-05-15 14:17:56 +0200
  LV Status              available
  # open                 1
  LV Size                5.41 TiB
  Current LE             1419255
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:0
 
Last edited:
Finally ended up with reinstalling ProxMox as it was a new and unused node.

I guess it was about an FS corruption as I already had many problems using ProxMox (3 & 4) @SoYouStart...
 
Last edited:
the maximum filesize for ext3 is 2TB