<html><head></head><body>Does anyone know a way to have root only on SSD btrfs and sdb sdc as btrfs raid1 for containers?<br><br><div class="gmail_quote">On 23 September 2017 17:37:59 BST, John Leach <john@johnleach.co.uk> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Sat, 2017-09-23 at 09:29 +0000, Scott Hodgson wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Just ordered an SSD. Does yours have btrfs on or other filesystem on<br /> the OS disk.<br /></blockquote><br />I went with a nice standard not easily broken, easy to rescue<br />filesystem on the ssd (ext4 :)<br /><br />To answer your earlier question (late now I know) I just bought the<br />smallest/cheapest available SATA SSD at the time. I think it was 32GB<br />for around £30/40 iirc, but it was years ago.<br /><br />John.<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> <br /> On 21 September 2017 15:52:09 BST, John Leach via Wylug-discuss <wylu<br /> g-discuss@wylug.org.uk> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> On Tue, 2017-09-19 at 16:23 +0000, Scott Hodgson via Wylug-discuss<br /> wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> Hi<br /> <br /> Wanting to know what peoples thoughts are on setting up the<br /> filesystem on a home server.<br /> Got a 2 x 1tb hard drives setup for raid1. <br /> I want to use Linux containers for some websites so tried BTRFS.<br /> I<br /> used sda2 for uefi sda2 as BTRFS for /. Sda2 was then put in<br /> raid<br /> with BTRFS and sub volumes added.<br /> To test, I unplugged one of the drives but upon a reboot it went<br /> straight to initramfs shell. I sorted that by adding degraded to<br /> fstab and grub, however even though the partitions have the same<br /> uuid, it doesn't boot for one of the drives which makes me fear<br /> I<br /> could lose the information.<br /> Now I want the function of Btrfs but a bit more easy to use FS.<br /> My<br /> options are have a root partition and a /var partition and then<br /> make<br /> them BTRFS or other suggestions of a FS. Though do I use mdadm<br /> raid<br /> or btrfs raid or zfs raid? What are my options? Anyone have a<br /> solution? All opinions welcome.<br /> <br /> <br /></blockquote> <br /> I've been running a home server using btrfs raid1 for several years<br /> now<br /> without any problems.<br /> <br /> I run it under Debian, but I avoided the kinds of boot problems you<br /> mentioned by actually booting from a small cheap 32GB SSD, which<br /> holds<br /> the OS. Which means, given a problem with btrfs, I can always boot<br /> and<br /> sort it out.<br /> <br /> Obviously the SSD could fail, but it doesn't handle very many<br /> reads/writes and doesn't hold any important data so is easy to<br /> replace<br /> and reinstall given a problem (I backup the configs to the btrfs :)<br /> <br /> A bit of a cop-out I know, but still, it's worked nicely for a long<br /> time.<br /> <br /> For your case, it's worth noting that, to be able to boot from both<br /> disks directly (i.e: if one fails) they need the right boot sector<br /> stuff and grub installation on both disks. I had the same problem<br /> with<br /> the standard md raid1 setup. I never found a very satisfactory<br /> solution<br /> for this - it was always a very complicated manual process to<br /> ensure<br /> both disks were setup for boot. And it (usually) needs redoing any<br /> time<br /> you upgrade grub.<br /> <br /> <br /> The most annoying thing about this is, neither of my disks have<br /> actually had a single problem. Not a single bit flipped. I run a<br /> btrfs<br /> scrub every week and never had even one checksum problem or bad<br /> read.<br /> That's with almost 4TB of data, millions of files, constantly<br /> churning.<br /> <br /> I think I won the hard disk lottery. They'll go eventually and then<br /> I'll be thankful for btrfs :)<br /> <br /> John.<br /> <br /> <br /> <br /> <br /> <br /></blockquote> <br /> <br /></blockquote>`<br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>