Public bug reported:

Hi, I encounter issue when I manually override the disk size. I got real
ZFS backed pool

The snap version is 5.0.3 from 5.0/stable channel 
$ snap info lxd |grep install
 installed:          5.0.3-babaaf8             (27948)  91MB -


When specify 24GB it's ok

mastier@drakkar:~$ lxc init ubuntu:22.04 testvm --vm -c limits.cpu=1 -c 
limits.memory=2GiB          
mastier@drakkar:~$ lxc config device override testvm root size=24GB             
                    
Device root overridden for testvm                                               
                    
mastier@drakkar:~$ lxc config device list testvm                                
                    
root                                                                            
                    
mastier@drakkar:~$ lxc start testvm                                             
                    
mastier@drakkar:~$ lxc exec testvm bash                                         
                    
root@testvm:~# df -h                                                            
                    
Filesystem      Size  Used Avail Use% Mounted on                                
                    
/dev/root        22G  1.4G   21G   7% /                                         
                    
tmpfs           991M     0  991M   0% /dev/shm                                  
                    
tmpfs           397M  612K  396M   1% /run                                      
                    
tmpfs           5.0M     0  5.0M   0% /run/lock                                 
                    
tmpfs            50M   14M   37M  27% /run/lxd_agent                            
                    
/dev/sda15      105M  6.1M   99M   6% /boot/efi                                 
                    
root@testvm:~#                                                                  
                    
exit                                                                            
                    
mastier@drakkar:~$ lxc delete --force testvm  

When I set 15 or 16GB.

mastier@drakkar:~$ lxc init ubuntu:22.04 testvm --vm -c limits.cpu=1 -c 
limits.memory=2GiB          
Creating testvm                                                                 
                    
                                                                                
                                
                                                                                
                    
mastier@drakkar:~$ lxc config device override esa-vpn root size=15GB
Error: Failed to update device "root": Failed to run: zfs set 
volsize=15000002560 rpool/lxd/virtual-machines/esa-vpn.block: exit status 255 
(cannot set property for 'rpool/lxd/virtual-machines/esa-vpn.block': 'volsize' 
must be a multiple of volume block size (16K))

mastier@drakkar:~$ lxc config device override testvm root size=16GB             
                    
Error: Failed to update device "root": Failed to run: zfs set 
volsize=16000000000 rpool/lxd/virtual-machines/testvm.block: exit status 255 
(cannot set property for 'rpool/lxd/virtual-machines/testvm.block'  'volsize' 
must be a multiple of volume block size (16K))

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2063105

Title:
  LXD 5.0.3 does not handle root disk sizes in ZFS correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/2063105/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to