Hi guys,
i just migrated all of my LXC kontainers from ProxMox 4 to ProxMox 5.
LXC containers work, but I noticed that filesystem limits were not in place. I also noticed that some dataset parameters were missing / different.
My questions are:
1. Can I just set, for these transferred instances while running, volume size as they are set in conf files? Like:
zfs set volsize=250G /rpool/data/subvol-100-disk-1
2. Can / should I just set, for these transferred instances while running, zfs refquota instead of volsize? Like:
zfs set refquota=250G /rpool/data/subvol-100-disk-1
3. Can I just set posix as acltype, while they are running? BTW It seems they are running fine without posix set, but I think these CentOS 7 LXCs should have it set. Like:
zfs set acltype posix /rpool/data/subvol-100-disk-1
Here is how it looks when there are no disk limits:
On the old system there was a 250GB limit for this particular instance. On new there is not.
I think it might be related to volsize or refquota parameter. I guess I can just set it manually and PM HTTP GUI as well as instance itself will start showing the limit.
Relevant differences are:
refquota -> old: 250G new: none
acltype -> old: posix new: off
Here are all parameters for one of the datasets. I guess others are the same, didn't check.
Old system:
New system:
i just migrated all of my LXC kontainers from ProxMox 4 to ProxMox 5.
LXC containers work, but I noticed that filesystem limits were not in place. I also noticed that some dataset parameters were missing / different.
My questions are:
1. Can I just set, for these transferred instances while running, volume size as they are set in conf files? Like:
zfs set volsize=250G /rpool/data/subvol-100-disk-1
2. Can / should I just set, for these transferred instances while running, zfs refquota instead of volsize? Like:
zfs set refquota=250G /rpool/data/subvol-100-disk-1
3. Can I just set posix as acltype, while they are running? BTW It seems they are running fine without posix set, but I think these CentOS 7 LXCs should have it set. Like:
zfs set acltype posix /rpool/data/subvol-100-disk-1
Here is how it looks when there are no disk limits:
Code:
[root@s1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
rpool/data/subvol-100-disk-1 514G 137G 378G 27% /
....
root@lm2:~# cat /etc/pve/lxc/100.conf | grep rootfs
rootfs: local-zfs:subvol-100-disk-1,size=250G
I think it might be related to volsize or refquota parameter. I guess I can just set it manually and PM HTTP GUI as well as instance itself will start showing the limit.
Relevant differences are:
refquota -> old: 250G new: none
acltype -> old: posix new: off
Here are all parameters for one of the datasets. I guess others are the same, didn't check.
Old system:
Code:
zfs get all rpool/data/subvol-100-disk-1
NAME PROPERTY VALUE SOURCE
rpool/data/subvol-100-disk-1 type filesystem -
rpool/data/subvol-100-disk-1 creation Tue Sep 27 16:06 2016 -
rpool/data/subvol-100-disk-1 used 137G -
rpool/data/subvol-100-disk-1 available 113G -
rpool/data/subvol-100-disk-1 referenced 137G -
rpool/data/subvol-100-disk-1 compressratio 1.76x -
rpool/data/subvol-100-disk-1 mounted yes -
rpool/data/subvol-100-disk-1 quota none default
rpool/data/subvol-100-disk-1 reservation none default
rpool/data/subvol-100-disk-1 recordsize 128K default
rpool/data/subvol-100-disk-1 mountpoint /rpool/data/subvol-100-disk-1 default
rpool/data/subvol-100-disk-1 sharenfs off default
rpool/data/subvol-100-disk-1 checksum on default
rpool/data/subvol-100-disk-1 compression lz4 inherited from rpool
rpool/data/subvol-100-disk-1 atime off inherited from rpool
rpool/data/subvol-100-disk-1 devices on default
rpool/data/subvol-100-disk-1 exec on default
rpool/data/subvol-100-disk-1 setuid on default
rpool/data/subvol-100-disk-1 readonly off default
rpool/data/subvol-100-disk-1 zoned off default
rpool/data/subvol-100-disk-1 snapdir hidden default
rpool/data/subvol-100-disk-1 aclinherit restricted default
rpool/data/subvol-100-disk-1 canmount on default
rpool/data/subvol-100-disk-1 xattr sa local
rpool/data/subvol-100-disk-1 copies 1 default
rpool/data/subvol-100-disk-1 version 5 -
rpool/data/subvol-100-disk-1 utf8only off -
rpool/data/subvol-100-disk-1 normalization none -
rpool/data/subvol-100-disk-1 casesensitivity sensitive -
rpool/data/subvol-100-disk-1 vscan off default
rpool/data/subvol-100-disk-1 nbmand off default
rpool/data/subvol-100-disk-1 sharesmb off default
rpool/data/subvol-100-disk-1 refquota 250G local
rpool/data/subvol-100-disk-1 refreservation none default
rpool/data/subvol-100-disk-1 primarycache all default
rpool/data/subvol-100-disk-1 secondarycache all default
rpool/data/subvol-100-disk-1 usedbysnapshots 739M -
rpool/data/subvol-100-disk-1 usedbydataset 137G -
rpool/data/subvol-100-disk-1 usedbychildren 0 -
rpool/data/subvol-100-disk-1 usedbyrefreservation 0 -
rpool/data/subvol-100-disk-1 logbias latency default
rpool/data/subvol-100-disk-1 dedup off default
rpool/data/subvol-100-disk-1 mlslabel none default
rpool/data/subvol-100-disk-1 sync standard inherited from rpool
rpool/data/subvol-100-disk-1 refcompressratio 1.77x -
rpool/data/subvol-100-disk-1 written 0 -
rpool/data/subvol-100-disk-1 logicalused 227G -
rpool/data/subvol-100-disk-1 logicalreferenced 226G -
rpool/data/subvol-100-disk-1 filesystem_limit none default
rpool/data/subvol-100-disk-1 snapshot_limit none default
rpool/data/subvol-100-disk-1 filesystem_count none default
rpool/data/subvol-100-disk-1 snapshot_count none default
rpool/data/subvol-100-disk-1 snapdev hidden default
rpool/data/subvol-100-disk-1 acltype posixacl local
rpool/data/subvol-100-disk-1 context none default
rpool/data/subvol-100-disk-1 fscontext none default
rpool/data/subvol-100-disk-1 defcontext none default
rpool/data/subvol-100-disk-1 rootcontext none default
rpool/data/subvol-100-disk-1 relatime off default
rpool/data/subvol-100-disk-1 redundant_metadata all default
rpool/data/subvol-100-disk-1 overlay off default
Code:
zfs get all rpool/data/subvol-100-disk-1
NAME PROPERTY VALUE SOURCE
rpool/data/subvol-100-disk-1 type filesystem -
rpool/data/subvol-100-disk-1 creation Thu Sep 20 23:51 2018 -
rpool/data/subvol-100-disk-1 used 137G -
rpool/data/subvol-100-disk-1 available 377G -
rpool/data/subvol-100-disk-1 referenced 137G -
rpool/data/subvol-100-disk-1 compressratio 1.77x -
rpool/data/subvol-100-disk-1 mounted yes -
rpool/data/subvol-100-disk-1 quota none default
rpool/data/subvol-100-disk-1 reservation none default
rpool/data/subvol-100-disk-1 recordsize 128K default
rpool/data/subvol-100-disk-1 mountpoint /rpool/data/subvol-100-disk-1 default
rpool/data/subvol-100-disk-1 sharenfs off default
rpool/data/subvol-100-disk-1 checksum on default
rpool/data/subvol-100-disk-1 compression on inherited from rpool
rpool/data/subvol-100-disk-1 atime off inherited from rpool
rpool/data/subvol-100-disk-1 devices on default
rpool/data/subvol-100-disk-1 exec on default
rpool/data/subvol-100-disk-1 setuid on default
rpool/data/subvol-100-disk-1 readonly off default
rpool/data/subvol-100-disk-1 zoned off default
rpool/data/subvol-100-disk-1 snapdir hidden default
rpool/data/subvol-100-disk-1 aclinherit restricted default
rpool/data/subvol-100-disk-1 createtxg 263205 -
rpool/data/subvol-100-disk-1 canmount on default
rpool/data/subvol-100-disk-1 xattr on default
rpool/data/subvol-100-disk-1 copies 1 default
rpool/data/subvol-100-disk-1 version 5 -
rpool/data/subvol-100-disk-1 utf8only off -
rpool/data/subvol-100-disk-1 normalization none -
rpool/data/subvol-100-disk-1 casesensitivity sensitive -
rpool/data/subvol-100-disk-1 vscan off default
rpool/data/subvol-100-disk-1 nbmand off default
rpool/data/subvol-100-disk-1 sharesmb off default
rpool/data/subvol-100-disk-1 refquota none default
rpool/data/subvol-100-disk-1 refreservation none default
rpool/data/subvol-100-disk-1 guid 18205097948596454012 -
rpool/data/subvol-100-disk-1 primarycache all default
rpool/data/subvol-100-disk-1 secondarycache all default
rpool/data/subvol-100-disk-1 usedbysnapshots 0B -
rpool/data/subvol-100-disk-1 usedbydataset 137G -
rpool/data/subvol-100-disk-1 usedbychildren 0B -
rpool/data/subvol-100-disk-1 usedbyrefreservation 0B -
rpool/data/subvol-100-disk-1 logbias latency default
rpool/data/subvol-100-disk-1 dedup off default
rpool/data/subvol-100-disk-1 mlslabel none default
rpool/data/subvol-100-disk-1 sync standard inherited from rpool
rpool/data/subvol-100-disk-1 dnodesize legacy default
rpool/data/subvol-100-disk-1 refcompressratio 1.77x -
rpool/data/subvol-100-disk-1 written 137G -
rpool/data/subvol-100-disk-1 logicalused 225G -
rpool/data/subvol-100-disk-1 logicalreferenced 225G -
rpool/data/subvol-100-disk-1 volmode default default
rpool/data/subvol-100-disk-1 filesystem_limit none default
rpool/data/subvol-100-disk-1 snapshot_limit none default
rpool/data/subvol-100-disk-1 filesystem_count none default
rpool/data/subvol-100-disk-1 snapshot_count none default
rpool/data/subvol-100-disk-1 snapdev hidden default
rpool/data/subvol-100-disk-1 acltype off default
rpool/data/subvol-100-disk-1 context none default
rpool/data/subvol-100-disk-1 fscontext none default
rpool/data/subvol-100-disk-1 defcontext none default
rpool/data/subvol-100-disk-1 rootcontext none default
rpool/data/subvol-100-disk-1 relatime off default
rpool/data/subvol-100-disk-1 redundant_metadata all default
rpool/data/subvol-100-disk-1 overlay off default