Hi,
I just built a ZFS pool with one SSD drive for testing purposes.
Then I created 1 VM and 1 LXC container using this ZFS pool.
So, inside KVM, I made a simple test :
OK but same test on LXC is just a fail :
without oflag=direct it works :
Same thing directly on host
Is there any restriction regarding the disk cache for using zfs with lxc container ?
I plan to create a mysql galera cluster, should I use KVM or LXC with ZFS ?
Thanks a lot !
I just built a ZFS pool with one SSD drive for testing purposes.
Then I created 1 VM and 1 LXC container using this ZFS pool.
So, inside KVM, I made a simple test :
Code:
root@debian:~# dd if=/dev/zero of=here bs=4k count=10k oflag=direct
10240+0 enregistrements lus
10240+0 enregistrements écrits
41943040 bytes (42 MB, 40 MiB) copied, 0,891124 s, 47,1 MB/s
OK but same test on LXC is just a fail :
Code:
dd if=/dev/zero of=/root/test bs=4k count=10k oflag=direct
dd: failed to open '/root/test': Invalid argument
without oflag=direct it works :
Code:
dd if=/dev/zero of=/root/test bs=4k count=10k
10240+0 records in
10240+0 records out
41943040 bytes (42 MB, 40 MiB) copied, 0.0830864 s, 505 MB/s
Same thing directly on host

Is there any restriction regarding the disk cache for using zfs with lxc container ?
I plan to create a mysql galera cluster, should I use KVM or LXC with ZFS ?
Thanks a lot !