Restore Proxmox 4 rootfs container to Proxmox 5 ZFS

jar

Active Member
Aug 11, 2017
2
0
41
124
Hello,

We are migrating a Proxmox 4 server (rootfs and ext4) to a Proxmox 5 server on ZFS.

We obtain an zfs error when we try to restore our containers!

Command
pct restore 2223 /zepool/backup/dump/vzdump-lxc-221-2017_08_11-03_49_27.tar.gz --storage data
Result
zfs error: cannot create 'rpool/data/subvol-2223-disk-1': use 'none' to disable quota/refquota

Do you have an idea to solve this problem ?
 
what does "zfs get quota,rquota rpool/data" output?
 
Thanks for your reply fabian

zfs get quota,refquota rpool/data

give


NAME PROPERTY VALUE SOURCE
rpool/vmdata quota none default
rpool/vmdata refquota none default



We solved the initial problem with

pct restore 2223 /zepool/backup/dump/vzdump-lxc-221-2017_08_11-03_49_27.tar.gz --rootfs vmdata:4

That is working !

Now we have an forced disk size on each container and we can make snapshot !
 
Awesome

I used this method to increase my LXC disk size:

Code:
pct restore 102 /hitachi/pvebackup/dump/vzdump-lxc-102-2018_08_07-23_23_24.tar.lzo --rootfs zfs_images:30

It worked and now from 20G LXC has 30G. Forgot to mention that I'm using Proxmox 5.2

Thanks!
 
I tried to set it to 0, but according to https://pve.proxmox.com/wiki/Linux_Container:
quota=<boolean>
Enable user quotas inside the container (not supported with zfs subvolumes)

It's not giving me an error on creation, but I can't do things like snapshots/backups/restores via web interface if quota is set to 0 (it gives me the same error as @jar posted).
zfs error: cannot create 'rpool/data/subvol-2223-disk-1': use 'none' to disable quota/refquota
 
you can set the quota on the ZFS level to 'none'.
 
But it's already set to none (by default):
Code:
NAME        PROPERTY  VALUE     SOURCE
rpool/data  quota     none      default
rpool/data  refquota  none      default

NAME     PROPERTY  VALUE     SOURCE
storage  quota     none      default
storage  refquota  none      default
 
But it's already set to none (by default):
Code:
NAME        PROPERTY  VALUE     SOURCE
rpool/data  quota     none      default
rpool/data  refquota  none      default

NAME     PROPERTY  VALUE     SOURCE
storage  quota     none      default
storage  refquota  none      default

on the dataset, after creation by PVE. PVE will set the configured size as refquota for each volume it creates, but you can change that at any time.
 
We have the same error, how to solv?

zfs error: cannot create 'rpool/data/subvol-103-disk-0': use 'none' to disable quota/refquota

zfs get all rpool/data |grep quota :
rpool/data quota none default
rpool/data refquota none default

this vm was created by pve-zsync sync

with new created CT volume move works without problems

we see in Proxmox webinterface
zfs (filestore left) -> CT Volumes: subvol-103-disk-0 Format subvol Site 0B .
Why?
zfs list -t all

zfs 161G 5.13T 112K /zfs
zfs/subvol-103-disk-0 7.09G 5.13T 7.07G /zfs/subvol-103-disk-0
zfs/subvol-103-disk-0@rep_test2_2020-12-10_13:42:03 16.6M - 7.07G -
zfs/subvol-103-disk-0@rep_test2_2020-12-10_15:13:23 200K - 7.07G -
 
Last edited:
zfs error: cannot create 'rpool/data/subvol-103-disk-0': use 'none' to disable quota/refquota

zfs get all rpool/data |grep quota :
rpool/data quota none default
rpool/data refquota none default

I have the same problem. I try to clone a VM and get the same error:

Code:
TASK ERROR: clone failed: zfs error: cannot create 'hdd_pool1/subvol-101-disk-0': use 'none' to disable quota/refquota

All quota is also set to "none" here.

Any idea?
 
could you post the output of zfs list -Hp -o refquota DATASET_YOU_WANT_TO_CLONE (replace the part in caps accordingly ;))? is this a linked or a full clone (could you maybe post the full task log?)
 

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!