[PVE-User] migration of container on zfs

Thiago Damas tdamas at gmail.com
Thu Oct 15 19:15:01 CEST 2015


root at sm9:~# pct resize 102 rootfs +0

root at sm9:~# zfs get refquota volumes/subvol-102-disk-1
NAME                       PROPERTY  VALUE     SOURCE
volumes/subvol-102-disk-1  refquota  none      default

root at sm9:~# pct resize 102 rootfs +1
zfs error: cannot set property for 'volumes/subvol-102-disk-1': use 'none'
to disable quota/refquota
root at sm9:~# cat /etc/pve/lxc/102.conf
arch: amd64
cpulimit: 1
cpuunits: 1024
hostname: teste
memory: 512
net0: bridge=vmbr0,gw=192.168.224.1,hwaddr=CE:F4:22:3C:C9:95,ip=
192.168.224.205/24,name=eth0,type=veth
ostype: ubuntu
rootfs: zfs:subvol-102-disk-1,size=16G
swap: 512

root at sm9:~# pct resize 102 rootfs 17G

root at sm9:~# zfs get refquota volumes/subvol-102-disk-1
NAME                       PROPERTY  VALUE     SOURCE
volumes/subvol-102-disk-1  refquota  17G       local
root at sm9:~# cat /etc/pve/lxc/102.conf
arch: amd64
cpulimit: 1
cpuunits: 1024
hostname: teste
memory: 512
net0: bridge=vmbr0,gw=192.168.224.1,hwaddr=CE:F4:22:3C:C9:95,ip=
192.168.224.205/24,name=eth0,type=veth
ostype: ubuntu
rootfs: zfs:subvol-102-disk-1,size=17M
swap: 512


2015-10-15 5:10 GMT-03:00 Wolfgang Link <w.link at proxmox.com>:

> What happened if you use
> pct resize <VMID> rootfs <size>
> on the command line to set the refquota?
>
> > Thiago Damas <tdamas at gmail.com> hat am 14. Oktober 2015 um 20:01
> geschrieben:
> >
> >
> >   Hi,
> >   I'm facing problems when migrating containers, living on zfsvols.
> >   Despite the rootfs showing the right "quota" value, the "refquota"
> > attribute of the zfs dataset isnt set on the destination server.
> >   Sorry for my bad english.
> >
> >   Best regards,
> >   Thiago
> > _______________________________________________
> > pve-user mailing list
> > pve-user at pve.proxmox.com
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
> Best Regards,
>
> Wolfgang Link
>
> w.link at proxmox.com
> http://www.proxmox.com
>
>  ____________________________________________________________________
> Proxmox Server Solutions GmbH
> Kohlgasse 51/10, 1050 Vienna, Austria
> Commercial register no.: FN 258879 f
> Registration office: Handelsgericht Wien
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20151015/afd7ce7f/attachment.htm>


More information about the pve-user mailing list