vzdump issue on external USB HDD

  • Thread starter Thread starter r00t.ati
  • Start date Start date
R

r00t.ati

Guest
Hello, we're trying to run vzdump on external HDD, but we got this error:

Code:
INFO: Starting Backup of VM XXXXXXX (openvz)
INFO: CTID XXXXXXXX exist mounted running
INFO: status = CTID XXXXXXX exist mounted running
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap-ksXXXXXX.kimsufi.com-0')
INFO:   Insufficient free extents (1) in volume group pve: 256 required
ERROR: Backup of VM XXXXXX failed - command 'lvcreate --size 1024M --snapshot --name vzsnap-ksXXXXXX.kimsufi.com-0 /dev/pve/data' failed with exit code 5
INFO: Backup job finished with errors

This is the output of pveversion -v
Code:
pve-manager: 1.6-5 (pve-manager/1.6/5261)
running kernel: 2.6.32-3-pve
pve-kernel-2.6.32-3-pve: 2.6.32-14
qemu-server: 1.1-22
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-14
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-8
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1

This is the output of vgdisplay
Code:
  --- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               910,98 GB
  PE Size               4,00 MB
  Total PE              233210
  Alloc PE / Size       233209 / 910,97 GB
  Free  PE / Size       1 / 4,00 MB
  VG UUID               XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXXXX

My HDD are formatted in ext3, without LVM volumes. It is mounted on /media/

How can I resolve that problem?
 
My HDD are formatted in ext3, without LVM volumes. It is mounted on /media/

Your VM is on /dev/pve/data, which is ext3 on top of LVM.

How can I resolve that problem?

You need some free space on the volume group if you want to make lvm snapshots. Our installer automatically reserves 4GB for that - seems you installed that not using our installer?
 
We have used the OVH pre-installed ISO.
Dont know how it works.

We attached the HDD in a second moment... After the installation of proxmox.
 
as Dietmar already posted, you need at least 4 GB free space for storing the snapshot, otherwise it will never work. as I do not know your OVH setup I suggest you contact OVH or post in their forums.
 
as Dietmar already posted, you need at least 4 GB free space for storing the snapshot, otherwise it will never work. as I do not know your OVH setup I suggest you contact OVH or post in their forums.

Ok, i will ask theme about the installation process.

However i do not understand how to show the size and free available space.
If is 4GB, how can i increase the space? (or clean that partition)?
 
vgdisplay (showing with 4 GB free space):

Code:
--- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  55
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               149.50 GB
  PE Size               4.00 MB
  Total PE              38271
  Alloc PE / Size       37248 / 145.50 GB
  Free  PE / Size       1023 / 4.00 GB
  VG UUID               Sfi1p4-bvCt-XyFR-DL7a-vZo4-HTSJ-yKTcwp

see LVM docu (google) for resizing.