Re: Dual Root setup

2023-03-07 Thread Genes Lists
All I gave updated the code and now provide an inotify based daemon to sync alternate s - and a systemd service unit to run it. I would very much appreciate if others ran this - by using the test option it does nothing but prints what would happen. And can be run as non-root user. It is

Re: Dual Root setup

2023-03-07 Thread Genes Lists
On 3/7/23 03:50, Óscar García Amor wrote: El lun, 06-03-2023 a las 21:30 -0500, Jonathan Whitlock escribió: This is about having a computer that is resilient to root drive failure. This is in addition to doing backups, certainly not a replacement :) gene

Re: Dual Root setup

2023-03-07 Thread Óscar García Amor
El lun, 06-03-2023 a las 21:30 -0500, Jonathan Whitlock escribió: > You really can't replace incremental backups... I have always understood having a RAID1 as an immediate disaster- recovery system in case of catastrophic disk failure. It is obvious that this will never replace backups as the purp

Re: Dual Root setup

2023-03-06 Thread Jonathan Whitlock
You really can't replace incremental backups... On 3/4/23 12:56, Genes Lists wrote: I know there's lots of info available about dual boot - but not much I could find on Dual Root. What is Dual Root?    This is a machine with 2 "root" disks where the second one is a hot standby - in event o

Re: Dual Root setup

2023-03-06 Thread Genes Lists
On 3/4/23 12:56, Genes Lists wrote: I know there's lots of info available about dual boot - but not much I could find on Dual Root. What is Dual Root?    This is a machine with 2 "root" disks where the second one is a hot standby - in event of root disk failure the second disk can be boote

Re: Dual Root setup

2023-03-06 Thread Genes Lists
On 3/6/23 02:50, Óscar García Amor wrote: Interesting, I'll take a look at it when you upload the code. I'd appreciate wider testing on the code - we all know that just because it works for me, doesn't mean it will work everywhere with certainty. It would be super helpful if others can te

Re: Dual Root setup

2023-03-05 Thread Óscar García Amor
El dom, 05-03-2023 a las 18:11 -0500, Genes Lists escribió: > Do you know if it would work to use separate /boot partitions, as I > mention above, (each XBOOTLDR) but raid-1 them together with btrfs? > I imagine this would be fine, but have not tested to confirm. To tell you the truth, since ESP

Re: Dual Root setup

2023-03-05 Thread Genes Lists
I have updated the notes which now shows the original way but also the approach suggested by Oscar (thank you) - this is a superior method but bit more painful for existing installs. This way has on each disk along with btrfs raid1 for the rest basically. I have a working example doing this

Re: Dual Root setup

2023-03-05 Thread Genes Lists
On 3/5/23 07:11, Óscar García Amor wrote: In fact at hook level you can put one like in the example of the manual ml Yes I agree that Hooks are useful, but they do only catch things on package updates as far as I know. If you want to catch manual changes, like an edit to a loader file, then

Re: Dual Root setup

2023-03-05 Thread Genes Lists
On 3/5/23 07:11, Óscar García Amor wrote: Thanks Oscar - I edited my notes to show this as the preferred approach. Still needs more write up but I thought it best to get it up sooner than later. Do you know if it would work to use separate /boot partitions, as I mention above, (each XBOOTLDR)

Re: Dual Root setup

2023-03-05 Thread Óscar García Amor
El dom, 05-03-2023 a las 06:04 -0500, Genes Lists escribió: > > [..] > I would keep separate boot partition(s) -  using XBOOTLDR - these can > also be mirrored using btrfs. As you said, you now only need to sync > and with kernels and initrds on separate boot, the will > rarely change. > Per

Re: Dual Root setup

2023-03-05 Thread Genes Lists
On 3/5/23 05:13, Óscar García Amor wrote: ... The method is simple as you simply need two partitions on the two disks. The first one on each disk is the ESP and the second one is the one you are going to use for the btrfs raid. Then you simply mount the raid1 between both partitions btrfs[1] and

Re: Dual Root setup

2023-03-05 Thread Óscar García Amor
El sáb, 04-03-2023 a las 12:56 -0500, Genes Lists escribió: > > I know there's lots of info available about dual boot [..] > For me there is an infinitely simpler solution to have a system in mirror mode (obviously assuming that you can not mount a hardware RAID1, because if not, I completely di

Re: Dual Root setup

2023-03-04 Thread Genes Lists
On 3/4/23 18:22, Genes Lists wrote: But your cautionary comment is definitely something to keep an eye on. I already have these concerns noted at the bottom of the notes - since you pointed it out, It would be better for me to highlight them and move them earlier in the notes. thanks aga

Re: Dual Root setup

2023-03-04 Thread Genes Lists
On 3/4/23 18:08, Łukasz Michalski wrote: I have this setup on all servers that do not have battery backed HW raid cards and use mdadm there. I use systemd-boot as bootloader. Works well and can be done on existing system with just a single reboot. It is not easy - you have to create degraded r

Re: Dual Root setup

2023-03-04 Thread Łukasz Michalski
On 3/4/23 19:37, Genes Lists wrote: On 3/4/23 13:21, Uwe Sauter wrote: The usual Linux MD-RAID can have its metadata placed on different positions in the partition (see man (8) mdadm, option "-e, --metadata"). Knowing this it is no problem to create a partition on each disk of type EF00,

Re: Dual Root setup

2023-03-04 Thread Genes Lists
On 3/4/23 13:21, Uwe Sauter wrote: The usual Linux MD-RAID can have its metadata placed on different positions in the partition (see man (8) mdadm, option "-e, --metadata"). This is intriguing for sure but to be honest it has a bit of a brittle, hacky feel to it. My own preference is to

Re: Dual Root setup

2023-03-04 Thread Genes Lists
On 3/4/23 13:21, Uwe Sauter wrote: The usual Linux MD-RAID can have its metadata placed on different positions in the partition (see man (8) mdadm, option "-e, --metadata"). Knowing this it is no problem to create a partition on each disk of type EF00, create a RAID1 with metadata version

Re: Dual Root setup

2023-03-04 Thread Uwe Sauter
Am 04.03.23 um 19:05 schrieb Genes Lists: On 3/4/23 13:00, Uwe Sauter wrote: Hi Gene, out of curiosity: where do you see the advantages of such a setup compared to having your root filesystem on a RAID1? , Could be wrong, but I don't believe the is on RAID1 is it? Dual root is dual eve

Re: Dual Root setup

2023-03-04 Thread Genes Lists
On 3/4/23 13:05, Genes Lists wrote: Could be wrong, but I don't believe the is on RAID1 is it? Dual root is dual everything - esp, root, boot, the whole lot. You can clearly have an esp on each raid disk, so this could work as well - recovery might be little different than what I did but se

Re: Dual Root setup

2023-03-04 Thread Genes Lists
On 3/4/23 13:00, Uwe Sauter wrote: Hi Gene, out of curiosity: where do you see the advantages of such a setup compared to having your root filesystem on a RAID1? , Could be wrong, but I don't believe the is on RAID1 is it? Dual root is dual everything - esp, root, boot, the whole lot.

Re: Dual Root setup

2023-03-04 Thread Uwe Sauter
Hi Gene, out of curiosity: where do you see the advantages of such a setup compared to having your root filesystem on a RAID1? Regards, Uwe Am 04.03.23 um 18:56 schrieb Genes Lists: I know there's lots of info available about dual boot - but not much I could find on Dual Root. Wha