<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 2, 2023 at 9:11 AM James <<a href="mailto:jam@tigger.ws">jam@tigger.ws</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br><div><br><blockquote type="cite"><div>On 2 Jun 2023, at 8:59 pm, James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 2, 2023 at 8:33 AM James <<a href="mailto:jam@tigger.ws" target="_blank">jam@tigger.ws</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br><div><br><blockquote type="cite"><div>On 2 Jun 2023, at 8:08 pm, Richard Shaw <<a href="mailto:hobbes1069@gmail.com" target="_blank">hobbes1069@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr">On Fri, Jun 2, 2023 at 6:54 AM James <<a href="mailto:jam@tigger.ws" target="_blank">jam@tigger.ws</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>There is quite a lot of discussion on why not to use btrfs with maria<div><a href="https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/58" target="_blank">https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/58</a></div></div></div></blockquote><div><br></div><div>There's a few different solutions if you already have the files created since the +C must be done at creation.<br></div><div><br></div><div>My method is to:<br>mv <file> <file>_backup</div><div>touch <file></div><div>chattr <a class="gmail_plusreply" id="m_6148784532034167808m_-6087249095224027248plusReplyChip-1">+C <file></a></div><div>dd if=<file>_backup of=<file></div><div><br></div><div>You can add bytesize (bz=1M) or similar to speed it up. I did this with a 1TB blockchain file successfully.</div><div></div></div></div></div></blockquote><br></div><div>Mostly for Jim Abernathy's info, I pretty much stick to ext4, but was toying with idea of changing</div><div><br></div><div>James</div></div></blockquote><div><br></div><div>I've used btrfs in a RAID 1 mirror array on my production backend with mariadb for a year plus a few months without issues. I update about once a month and that usually requires a reboot. The boot ssd also was installed with btrfs with timeshift snapshots every hour.</div><div><br></div><div>I didn't do anything about COW disable at the time of install. I see from the archlinux link that someone said it was addressed 2 years ago??? If that's true, should I even need to worry about chattr <a class="gmail_plusreply" id="m_6148784532034167808plusReplyChip-0">+C <file>???</a></div><div><br></div><div>I learned most of what I know about BTRFS usage from the Kubuntu Forum. They have a BTRFS category and I'll ask for knowledge over there.</div><div><br></div><div>I make special arrangements for COW issues for Virtual Machines by keeping all qcow2 files on a separate ssd formatted ext4. I think that is required because qcow2 files already use COW. I prefer this instead of chattr +C /var/lib/libvirt/images. Using a separate ext4 ssd has the added benefit of not having to recreate VMs when I change Distro every month or so because some defect in my brain requires it.</div></div></div></div></blockquote><br></div><div>Jim if you uncover anything interesting please post it (or even just mail me)</div><div>thanks</div><div>James</div></div></blockquote><div><br></div><div>I did discover that a normal install of mariadb-server on Kubuntu 23.04 on a btrfs volume does NOT set the COW disable attr.  I was able to mkdir -p /var/lib/mysql first and the chattr +C /var/lib/mysql before the apt install mariadb-server and that does setup all the right COW disable bits.</div><div><br></div><div>JIm A</div><div> </div></div></div>