Moving RAW image from remote server to local server: Not enough space in pve-root?

Goordon

New Member
Apr 2, 2020
2
0
1
34
Hello Proxmox Community!

I'll try to keep the question short and tidy:

I'm trying to move a raw .img file from one server to another using sftp get [file] from within the proxmox terminal. The file is about 200GB in size.

Sadly, the mounted pve-root filesystem only has 52GB left, and i am unaware of a way that'd allow me to move the file to lvm-thin(data) directly since these "partitions" aren't simply mountable. As you can see below the LV "data" still has 864GB available. The system is running a 1TB nvme.

Thank you for your help.

Code:
root@pve:/# df -H
Filesystem            Size  Used Avail Use% Mounted on
udev                   17G     0   17G   0% /dev
tmpfs                 3.4G  9.4M  3.4G   1% /run
/dev/mapper/pve-root   59G  3.8G   52G   7% /
tmpfs                  17G   45M   17G   1% /dev/shm
tmpfs                 5.3M     0  5.3M   0% /run/lock
tmpfs                  17G     0   17G   0% /sys/fs/cgroup
/dev/nvme0n1p2        536M  320k  536M   1% /boot/efi
/dev/fuse              32M   21k   32M   1% /etc/pve
tmpfs                 3.4G     0  3.4G   0% /run/user/0
root@pve:/# lvs
  LV            VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data          pve twi-aotz-- 864.39g             4.15   2.53
  root          pve -wi-ao----  55.75g
  swap          pve -wi-ao----   8.00g
  vm-100-disk-0 pve Vwi-aotz--  10.00g data        27.69
  vm-101-disk-0 pve Vwi-aotz--  10.00g data        20.97
  vm-102-disk-0 pve Vwi-a-tz--  10.00g data        18.64
  vm-103-disk-0 pve Vwi-aotz--  65.00g data        22.49
  vm-104-disk-0 pve Vwi-a-tz--  10.00g data        52.47
  vm-105-disk-0 pve Vwi-aotz--  20.00g data        46.20
 
you could make the image available via the network (NFS, CIFS, ...) and then use 'qm importdisk' to import it directly to LVM. dd over SSH should work as well (first allocate the disk with 'pvesm alloc', then get the full block device path, and dd into it). I think 'pvesm export ... | ssh pvesm import ....' should work as well, but you might want to test with a small image file first.
 
you could make the image available via the network (NFS, CIFS, ...) and then use 'qm importdisk' to import it directly to LVM. dd over SSH should work as well (first allocate the disk with 'pvesm alloc', then get the full block device path, and dd into it). I think 'pvesm export ... | ssh pvesm import ....' should work as well, but you might want to test with a small image file first.

Thank you very much. The samba server method ( mounting a CIFS location ) and qm importdisk did the trick for me!
 

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!