Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Ulli Horlacher <framstag@rus.uni-stuttgart.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: Fixing a corrupted file system
Date: Fri, 24 Apr 2026 10:23:00 +0200	[thread overview]
Message-ID: <20260424082300.GA361238@tik.uni-stuttgart.de> (raw)
In-Reply-To: <87d1aca.ae41f579.19d4f977d95@tnonline.net>


On Thu 2026-04-02 (21:07), Forza wrote:

> > I forget what mkfs version, but the default behaviour changed a few years ago so the default profile is Single on SSD's. (Correct me if this has since been reverted.)  Something about the way SSD's copy on write, the DUP entries would end up on the same physical block, so the redundancy was not effective.
> 
> It is the reverse. Since btrfs-progs 5.15, the default was changed to DUP for single device fs.
> 
> https://github.com/kdave/btrfs-progs/commit/65181c273e67bd48d01fc79f00826dce38b93c4c

I have some old btrfs filesystems with single metadata:

root@moep:~# btrfs filesystem df /
Data, single: total=23.01GiB, used=12.51GiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=1.75GiB, used=930.19MiB
GlobalReserve, single: total=42.06MiB, used=0.00B

root@moep:~# btrfs filesystem df /home
Data, single: total=95.01GiB, used=54.27GiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=1.00GiB, used=293.70MiB
GlobalReserve, single: total=80.53MiB, used=0.00B

(How) can I convert /home to DUP for System and Metadata?
(/ looks good)

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    https://www.tik.uni-stuttgart.de/
REF:<87d1aca.ae41f579.19d4f977d95@tnonline.net>

  reply	other threads:[~2026-04-24  8:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01 15:58 Fixing a corrupted file system Amit Shah
2026-04-01 21:21 ` Qu Wenruo
2026-04-02 18:18   ` Amit Shah
2026-04-02 18:32   ` remi
2026-04-02 18:52     ` Amit Shah
2026-04-02 19:07     ` Forza
2026-04-24  8:23       ` Ulli Horlacher [this message]
2026-04-24 12:49         ` Roman Mamedov
2026-04-24 18:10           ` How to corrupt a btrfs fs [was Re: Fixing a corrupted file system] Nicholas D Steeves
2026-04-24 18:16             ` Roman Mamedov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260424082300.GA361238@tik.uni-stuttgart.de \
    --to=framstag@rus.uni-stuttgart.de \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox