<div dir="ltr"><div>Well<br><br></div>I think the opposite what you suggest... I want use btrfs inside the KVM guest, in order to increase/decrease the size oh disk partition...<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 14:53 GMT-02:00 brian mullan <span dir="ltr"><<a href="mailto:bmullan.mail@gmail.com" target="_blank">bmullan.mail@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Gilberto,<br><br></div>I have used btrfs for almost 2 years and like it alot for its features.<br></div><div>I've not used it with proxmox though.<br></div><div><br></div><div>Matter of fact I just changed my machine to use btrfs raid10 (btrfs raid not mdm raid). In btrfs this is only 1 command:<br><pre>reference: <a href="https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices" target="_blank">btrfs with multiple devices</a><br>example:<br># Use raid10 for both data and metadata
mkfs.btrfs -m raid10 -d raid10 /dev/sdb /dev/sdc /dev/sdd /dev/sde</pre></div><div></div><br>However, I have learned a lot over that time also.<br><br></div>First, I don't think its yet recommended to run KVM on btrfs. This could have changed but it would be wise to understand what the concerns were. <br><br>I think it had to do with the COW algorithm of btrfs will churn with every change made to the running kvm 'image" file... causing high cpu etc.<br></div><br></div>reference: <a href="http://www.linux-kvm.org/page/Tuning_KVM" target="_blank"> http://www.linux-kvm.org/page/Tuning_KVM</a><br><br></div>see the statement at the bottom...<br><div style="margin-left:40px"><i><b>Don't use the linux filesystem btrfs on the host for the image files. It
will result in low IO performance. The kvm guest may even freeze when
high IO traffic is done on the guest.
</b></i><br><br></div>However, LXC containers on the other hand actually work wonderfully with btrfs as you can specify the LXC container "backingstore" to be btrfs and cloning, etc becomes almost instantaneous.<br><pre style="margin-left:40px"><i>If 'btrfs' is specified, then the target filesystem must be btrfs, <br>and the container rootfs will be created as a new subvolume. <br>This allows snapshotted clones to be created, but also causes <br>rsync --one-filesystem to treat it as a separate filesystem.</i></pre><br></div>So today I have my KVM images run off an ext4 disk but my lxc containers are on my main btrfs raid10.<br><br></div>Others may have better insight.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Brian<br><br></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Gilberto Ferreira<br>+55 (47) 9676-7530<br>Skype: gilberto.nunes36<br></div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>