On my containers using the "dir" storage backend, /etc/cron.weekly/fstrim outputs:
fstrim: cannot open /dev/.lxd-mounts: Permission denied
fstrim: /dev/lxd: FITRIM ioctl failed: Operation not permitted
fstrim: /: FITRIM ioctl failed: Operation not permitted
From one of those containers:
# mount | grep sda
/dev/sda on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)
/dev/sda on /dev/lxd type ext4 (rw,noatime,errors=remount-ro,data=ordered)
/dev/sda on /dev/.lxd-mounts type ext4 (rw,noatime,errors=remount-ro,data=ordered)
On my containers using the "dir" storage backend, /etc/cron. weekly/ fstrim outputs:
fstrim: cannot open /dev/.lxd-mounts: Permission denied
fstrim: /dev/lxd: FITRIM ioctl failed: Operation not permitted
fstrim: /: FITRIM ioctl failed: Operation not permitted
From one of those containers:
# mount | grep sda errors= remount- ro,data= ordered) errors= remount- ro,data= ordered) errors= remount- ro,data= ordered)
/dev/sda on / type ext4 (rw,noatime,
/dev/sda on /dev/lxd type ext4 (rw,noatime,
/dev/sda on /dev/.lxd-mounts type ext4 (rw,noatime,