* btrfs metadata mirroring
@ 2020-11-27 15:11 Zener
2020-11-27 16:09 ` Hugo Mills
0 siblings, 1 reply; 2+ messages in thread
From: Zener @ 2020-11-27 15:11 UTC (permalink / raw)
To: linux-btrfs
Hi, I have a disk with btrfs but now I'd like enable just metadata
mirroring to understand if some error occurs.
Do I need another disk / partition / volume dedicated?
How to do?
Is it safe now or do I risk to loss my formely data?
Thank you for your support.
Bye.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: btrfs metadata mirroring
2020-11-27 15:11 btrfs metadata mirroring Zener
@ 2020-11-27 16:09 ` Hugo Mills
0 siblings, 0 replies; 2+ messages in thread
From: Hugo Mills @ 2020-11-27 16:09 UTC (permalink / raw)
To: Zener; +Cc: linux-btrfs
On Fri, Nov 27, 2020 at 04:11:19PM +0100, Zener wrote:
> Hi, I have a disk with btrfs but now I'd like enable just metadata mirroring
> to understand if some error occurs.
> Do I need another disk / partition / volume dedicated?
> How to do?
> Is it safe now or do I risk to loss my formely data?
It's quite possible that you already have it.
If you look at the output of "btrfs fi usage -T /mountpoint",
you'll see the RAID level for your metadata listed. If it's "DUP",
then you have two copies of each metadata block duplicated --
effectively running "RAID-1" for your metadata, but on a single
device.
If it says "single", then you've only got one copy of your
metadata. You can convert it to DUP with a balance conversion:
# btrfs balance start -mconvert=dup,soft /mountpoint
You may need to run this more than once. Sometimes the conversion
process manages to allocate (and then skip over) a new metadata chunk
as single. Check with "btrfs fi usage -T /mountpoint" after running
the first time, and see if there's any single metadata allocation
left. If there is, run the command again.
Hugo.
--
Hugo Mills | Anyone who says their system is completely secure
hugo@... carfax.org.uk | understands neither systems nor security.
http://carfax.org.uk/ |
PGP: E2AB1DE4 | Bruce Schneier
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-27 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 15:11 btrfs metadata mirroring Zener
2020-11-27 16:09 ` Hugo Mills
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.