public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] planned btrfs conversion: questions
@ 2014-05-06 10:18 Marc Joliet
  2014-05-06 18:13 ` [gentoo-user] " James
                   ` (4 more replies)
  0 siblings, 5 replies; 51+ messages in thread
From: Marc Joliet @ 2014-05-06 10:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 4632 bytes --]

Hi all,

I've become increasingly motivated to convert to btrfs.  From what I've seen,
it has become increasingly stable; enough so that it is apparently supposed to
become the default FS on OpenSuse in 13.2.

I am motivated by various reasons:

- The experience of insignificant data loss after a reboot after no
  (visible) problems during normal operations (no similar occurrence since). I
  suspect this would have been discovered sooner by btrfs' data checksumming.

  While the data lost was of a small amount, not to mention insignificant
  (internet pictures) and could be retrieved again easily, I worry that this
  sort of silent corruption might happen to data that I *do* care about. My
  backups would become less than useless if I were to discover such corruption
  too late.

- The outright sexy multiple device support :) .

This migration will occur in conjunction with a migration of / + /usr to a
cheap SSD that I just bought (Crucial M500 120 GB). The overall plan is thus as
follows:

Replace

	/boot on /dev/md1 (EXT3, RAID 1)
	/ (with assorted sub-directories, sans /usr) on /dev/md2 (EXT4, RAID 10)
	the rest on LVM on /dev/md3 (all LVs EXT4, RAID 10)

with

	/ + /boot + /usr + swapfile on the SSD (EXT4)
	the rest (/home, my media partitions) on a btrfs RAID 10

(which replaces an older plan to recreate the RAID 10 + LVM to use the whole
disks with the current 1.2 metadata format)

The goals are, in addition to alleviating my data safety concerns above, to
guarantee that I don't need an initramfs at boot (hence the SSD), and to
greatly simplify my partitioning scheme (I just have too many separate logical
volumes ;-) ). Any added performance is "just" a nice bonus.

The reason why I would choose EXT4 for the SSD is that btrfs still lacks support
for swap files and I worry about creating a swap partition on the SSD. Is that
warranted, or will the wear-levelling of the SSD handle that just fine? Do swap
partitions support SSDs specially? Also, does anyone know whether EXT4 goes
beyond "merely" supporting TRIM? That is, the btrfs wiki advertises the
following:

  "SSD (Flash storage) awareness (TRIM/Discard for reporting free blocks for
  reuse) and optimizations (e.g. avoiding unnecessary seek optimizations,
  sending writes in clusters, even if they are from unrelated files. This
  results in larger write operations and faster write throughput)"

Does EXT4 also implement such optimisations for SSDs?

So I guess I want to know: does anybody have any further suggestions to make?
Is btrfs a good choice for / after all? And should I be using the most recent
kernel versions? (I would go with no, despite the advice from upstream, because
the changes in the last two versions don't seem to be particularly user
visible, at least to me, from reading kernelnewbies.org.)

I also have a more specific question regarding RAID 10: the btrfs wiki says
that you can add devices with different sizes to a multiple device setup, but I
don't think it says to which RAID levels this applies and how. From [0] I would
say it works with RAID 10 (since that's what the example uses), but thought
maybe somebody here knows more details and/or gotchas. From my understanding,
this means that I can iteratively upgrade my RAID 10 to larger drives and have
btrfs use all of the available space (or at least as much as is possible). This
is important to me because I currently have 4 320 GB HDDs + 1 (possibly broken,
must check) spare and wish to be able to upgrade without having to buy four
HDDs at once.

Now to the migration plan: first, partition the SSD and copy all relevant file
systems to it; this will be done from a Live-CD (SystemRescueCD). After I have
configured the mount options appropriately and can boot from that, I should be
able to mount the other file systems (/home and my media partitions) read-only
from the actual system and do the RAID + LVM -> btrfs migration from there.

Note that I will in general follow the advice from [1-3], and if people
recommend btrfs on /, then I will also try to get relevant information from [4].

[0]
https://btrfs.wiki.kernel.org/index.php/SysadminGuide#RAID_and_data_replication
[1] https://wiki.archlinux.org/index.php/Solid_State_Drives
[2] https://wiki.archlinux.org/index.php/Btrfs
[3] http://wiki.gentoo.org/wiki/Btrfs
[4] http://wiki.gentoo.org/wiki/Btrfs_system_root

Greetings and thanks in advance for any help given
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2014-05-17 12:35 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-06 10:18 [gentoo-user] planned btrfs conversion: questions Marc Joliet
2014-05-06 18:13 ` [gentoo-user] " James
2014-05-06 23:30   ` Marc Joliet
2014-05-06 22:53 ` [gentoo-user] " Marc Joliet
2014-05-07 15:12   ` Marc Joliet
2014-05-09 21:05   ` Marc Joliet
2014-05-06 22:56 ` William Kenworthy
2014-05-06 23:51   ` Marc Joliet
2014-05-08 11:57     ` William Kenworthy
2014-05-08 18:14       ` Stefan G. Weichinger
2014-05-09 19:59         ` Stefan G. Weichinger
2014-05-10 11:14           ` Stefan G. Weichinger
2014-05-11 12:35             ` Stefan G. Weichinger
2014-05-11 16:17               ` Stefan G. Weichinger
2014-05-11 17:37                 ` Peter Humphrey
2014-05-11 21:24                 ` [gentoo-user] btrfs conversion: first impressions Stefan G. Weichinger
2014-05-12 14:30                   ` Marc Joliet
2014-05-12 18:28                     ` Stefan G. Weichinger
2014-05-13 22:34                       ` Stefan G. Weichinger
2014-05-13 23:02                         ` Neil Bothwick
2014-05-13 23:09                           ` Stefan G. Weichinger
2014-05-14  0:39                             ` Neil Bothwick
2014-05-14  8:01                               ` Stefan G. Weichinger
2014-05-14  8:42                                 ` Neil Bothwick
2014-05-14  8:54                                   ` Stefan G. Weichinger
2014-05-14  9:26                                     ` Neil Bothwick
2014-05-14  9:30                                       ` Stefan G. Weichinger
2014-05-15  6:17                                         ` Stefan G. Weichinger
2014-05-12 11:19                 ` [gentoo-user] planned btrfs conversion: questions Stefan G. Weichinger
2014-05-08 20:43       ` Marc Joliet
2014-05-10  9:33       ` William Kenworthy
2014-05-11  8:53         ` Mick
2014-05-11 10:43           ` William Kenworthy
2014-05-11 12:29             ` Peter Humphrey
2014-05-11 15:53               ` Alan McKinnon
2014-05-12 14:08           ` Marc Joliet
2014-05-12 14:39             ` Peter Humphrey
2014-05-12 15:04               ` Marc Joliet
2014-05-12 16:15                 ` Dale
2014-05-12 19:12                   ` Marc Joliet
2014-05-12 19:28                 ` Daniel Frey
2014-05-07  2:33 ` [gentoo-user] " Jonathan Callen
2014-05-16 20:15 ` [gentoo-user] experience thus far (was: planned btrfs conversion: questions) Marc Joliet
2014-05-16 20:43   ` Marc Joliet
2014-05-17  0:08   ` [gentoo-user] experience thus far William Kenworthy
2014-05-17  0:44     ` Marc Joliet
2014-05-17  3:02     ` William Kenworthy
2014-05-17  7:53       ` Mick
2014-05-17 11:41         ` Rich Freeman
2014-05-17 10:07     ` Neil Bothwick
2014-05-17 12:35       ` William Kenworthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox