1 |
Am 12.05.2014 16:30, schrieb Marc Joliet: |
2 |
|
3 |
> In a presentation by Donny Berkholz at Fosdem this year [0], he |
4 |
> mentioned the distro CoreOS, and that they can do atomic updates. I |
5 |
> haven't looked it up in detail, but they're website says that they |
6 |
> use a dual-root scheme where the update is performed in a second |
7 |
> root, which is made the real root after rebooting or after a kexec |
8 |
> [1]. It seems to me that this could be made simpler and easier with |
9 |
> btrfs snapshots. |
10 |
|
11 |
Yes. I will maybe look into your link sometimes ... |
12 |
|
13 |
What I want to research: |
14 |
|
15 |
systemd is now able to "detect" / and /home (and swap) via the GPT-IDs |
16 |
... I wonder if I could get rid of fstab or at least the entries for / |
17 |
|
18 |
Right now when I test my rollbacks I edit (a) the subvolid in the |
19 |
kernel-line of grub.cfg and (b) in /etc/fstab on the "target" subvol. |
20 |
|
21 |
Maybe the second part is redundant, I don't know? |
22 |
|
23 |
I think of generating something like a daily "last known good rootfs" |
24 |
and a related entry in grub2 :-) |
25 |
|
26 |
Just playing here so far, but interesting options. |
27 |
|
28 |
(2nd thought: the subvol would then need to get that GPT-ID?) |
29 |
|
30 |
>> Would mixing hdds and the ssd into one pool make sense? I think, no |
31 |
>> ... ? |
32 |
> |
33 |
> I suspect something like bcache would work (except I remember reading |
34 |
> that btrfs does not work with it yet). |
35 |
|
36 |
So far I run one btrfs on a partition (/dev/sdc3) of an SSD (containing |
37 |
my active /, /home and some data I want to have mounted with speedy |
38 |
performance) and a second btrfs on a 1TB-HDD. |
39 |
|
40 |
I decided to degrade my mdadm RAID1 and dedicate one of the hdds (sdd) |
41 |
completely to btrfs ... then migrated the old LVs into subvols today. |
42 |
|
43 |
Looking good so far (right now I have no more active LVs here ...). |
44 |
|
45 |
Next steps: |
46 |
|
47 |
* see if things work :-) |
48 |
|
49 |
* migrate my other, faster and bigger SSD to the new and shiny root-fs. |
50 |
I boot from the EFI partition there ... but root and stuff is on the 2nd |
51 |
SSD. |
52 |
|
53 |
* decide if to get rid of the old Win7-partition (on sdb) that wasn't |
54 |
booted for years (?) now ... if I don't do that I don't have a second |
55 |
hdd with the same size for mirroring the btrfs ... |
56 |
|
57 |
a) sdd = sdb |
58 |
|
59 |
b) size of sdd > (size of sdb minus partition-win7) |
60 |
|
61 |
So more to consider here. |
62 |
|
63 |
But the btrfs contains mostly pics and music and test-vms ... all backed |
64 |
up via amanda to tape nearly daily, so no specific need for mirroring. |
65 |
|
66 |
|
67 |
> I'm glad I motivated some people to try btrfs themselves :) . |
68 |
|
69 |
Thanks for the reminder .. it fits into my cleaning up here ;-) |
70 |
|
71 |
Now for some scrubbing, backups and watching TV in the meantime. |
72 |
|
73 |
Greets, Stefan |