Migration From 1 server to another

didraro

Active Member
Jan 25, 2014
62
0
26
I have some big openvz containters : somewere at 150 GB . I wana to move them from an old server to another.

If i try to create a backup after to upload and to restore will not work becouse the Openvz folder were i put the backup restore are 100 GB , and i do not know how to change this .


How can i make to migrade from 1 server to another ?

Please can someone help me .


server 1 ( old server ) = Proxmox 3.2
server 2 ( new server ) = Proxmox 4.2 - latest version


Please can someone help me ?
 
How can i increase that partition becouse it is only 100 GB ... And by entrire Containter have 150 Gb and i can not upload and restore,
 
My Local - vz dump / backup file / iso image / containter template have just 100 GB , and bu backup file have 143 GB .

So how can i do to increase that ? So i can be able to upload it and restore .
 
You still have not posted any information of your system :-(

Please post the output of the following programs:
  • pvs
  • lvs
  • df -h
  • zpool list
 
root@didraro:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- 2.73t 15.83g
root@didraro:~#


root@didraro:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 2.61t 18.10 9.14
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 8.00g
vm-100-disk-1 pve Vwi-aotz-- 500.00g data 41.66
vm-101-disk-1 pve Vwi-aotz-- 32.00g data 33.08
vm-102-disk-1 pve Vwi-aotz-- 32.00g data 32.42
vm-103-disk-1 pve Vwi-aotz-- 32.00g data 41.62
vm-104-disk-1 pve Vwi-aotz-- 32.00g data 39.79
vm-105-disk-1 pve Vwi-aotz-- 32.00g data 39.58
vm-106-disk-1 pve Vwi-aotz-- 32.00g data 41.71
vm-107-disk-1 pve Vwi-aotz-- 32.00g data 39.72
vm-108-disk-1 pve Vwi-aotz-- 32.00g data 32.57
vm-109-disk-1 pve Vwi-aotz-- 32.00g data 32.37
vm-110-disk-1 pve Vwi-aotz-- 32.00g data 46.09
vm-111-disk-1 pve Vwi-aotz-- 32.00g data 34.78
vm-112-disk-1 pve Vwi-aotz-- 32.00g data 49.18
vm-113-disk-1 pve Vwi-aotz-- 32.00g data 36.76
vm-114-disk-1 pve Vwi-aotz-- 32.00g data 32.12
vm-115-disk-1 pve Vwi-aotz-- 32.00g data 47.78
vm-116-disk-1 pve Vwi-aotz-- 32.00g data 37.93
vm-117-disk-1 pve Vwi-aotz-- 32.00g data 37.57
vm-118-disk-1 pve Vwi-aotz-- 32.00g data 34.87
vm-119-disk-1 pve Vwi-aotz-- 32.00g data 37.63
vm-120-disk-1 pve Vwi-a-tz-- 32.00g data 38.34
vm-120-disk-2 pve Vwi-aotz-- 250.00g data 12.22



root@didraro:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 13G 90M 13G 1% /run
/dev/dm-0 95G 14G 76G 16% /
tmpfs 32G 43M 32G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda2 126M 283K 125M 1% /boot/efi
tmpfs 100K 0 100K 0% /run/lxcfs/controllers
cgmfs 100K 0 100K 0% /run/cgmanager/fs
/dev/fuse 30M 20K 30M 1% /etc/pve


root@didraro:~# zpool list
no pools available
 
When i try to restore i receive error :

closing file '/var/log/pve/tasks/active.tmp.25001' failed - No space left on device (500)
 
Yes, there is no space left on the device, the description is correct.

Please also post your /etc/pve/storage.cfg:

Code:
cat /etc/pve/storage.cfg

(Please use CODE-Tags [+]-symbol in the tool bar - also please edit your previous post, it is almost unreadable)
 
root@didraro:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,vztmpl,backup

lvmthin: local-lvm
thinpool data
vgname pve
content rootdir,images
root@didraro:~#
 
I don't want to be rude BUT:

If you want to have instant response and direct help for your problem: Pay someone to do it!! You will not get an answer faster by asking if someone can help. This is forum, so it is asynchronous communication, not synchronous one. If you want to talk to someone, buy a premium subscription and ask the competent guys from Proxmox for help or hire someone to help you.
 
So that you're not too frustrated, here is your solution:

According to your storage.cfg your backups go to /var/lib/vz which is in your configuration on /, where you have only 76 GB free. Easiest thing to do would be to resize your root partition (haven't tried the command, yet it should look like this:

Code:
lvresize --size +100G --resizefs pve/data
 
root@didraro:~# lvresize --size +100G --resizefs pve/data
Ignoring --resizefs as thin pool volumes do not have filesystem.
Insufficient free space: 25600 extents needed, but only 4052 available

- doesn't work.
 
If that also does not work because of

Code:
Insufficient free space: 25600 extents needed, but only 4052 available

Then you'll have to free space, e.g. delete VMs
 
What do you mean delete VMs ?

Beocuse my entire VirtualMachines does not use all the space.
 
My Local LVM ( Disc Image , Container ) - have 2.61 TB in total , used : 484.33 GiB , the local ( VzDump backup file , Iso Images , Container Template ) - 94.37 Gib , Used : 13.76 Gib.

and the backup wich i wana to upload and restore have 143 Gib .

I can not even upload or restore it .
 
I don't know what else I could add ... it's your error message that says that you do not have enough free extends in your LVM, not mine. Your pvs command states the same.

The problem is that pve/root is thick provisioned and you have most of your free space in your thin volume encapsulation. You could resize or just create another volume, like it is described here

https://pve.proxmox.com/wiki/LVM2#Create_a_extra_LV_for_.2Fvar.2Flib.2Fvz

If you have data in /var/lib/vz use another mount point for your volume and add it to your GUI. You can then upload there.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!