I'm trying to have a base LXC container preconfigured in my homelab (smb, SSD, rsyslog, etc all preconfigured) to use as a template any time I need to spin up a new container. However, when I clone I try to full-clone the container, it's taking much longer than it should. And instead of writing only ~8GB that I would expect, it's writing ~465GB.
Container Config
Logs
Disk config
Any idea why this is happening?
Container Config
Code:
arch: amd64
cores: 1
hostname: unifivideo
memory: 1024
net0: name=eth0,bridge=vmbr1,firewall=1,hwaddr=0E:CC:FC:21:B4:68,ip=dhcp,tag=33,type=veth
ostype: ubuntu
rootfs: local-thin:vm-102-disk-0,size=8G
swap: 0
unprivileged: 1
lxc.idmap: u 0 100000 2000000000
lxc.idmap: g 0 100000 2000000000
Logs
Code:
Virtual Environment 5.4-13
Search
Node 'proxmox'
Server View
Logs
()
create full clone of mountpoint rootfs (local-thin:vm-102-disk-0)
Using default stripesize 64.00 KiB.
Logical volume "vm-110-disk-0" created.
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/2097152 done
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 78faee09-e98a-48ad-b5e0-0bf8b3210389
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: 0/64 done
Writing inode tables: 0/64 done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/64 done
Number of files: 25,856 (reg: 19,865, dir: 2,408, link: 3,536, special: 47)
Number of created files: 25,854 (reg: 19,865, dir: 2,406, link: 3,536, special: 47)
Number of deleted files: 0
Number of regular files transferred: 19,846
Total file size: 465,304,020,289 bytes
Total transferred file size: 465,091,247,727 bytes
Literal data: 465,091,247,727 bytes
Matched data: 0 bytes
File list size: 917,436
File list generation time: 0.004 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 465,206,367,485
Total bytes received: 402,286
sent 465,206,367,485 bytes received 402,286 bytes 325,889,155.71 bytes/sec
total size is 465,304,020,289 speedup is 1.00
TASK OK
Disk config
Any idea why this is happening?