linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Best practices for raid 1
@ 2017-01-10 21:07 Vinko Magecic
  2017-01-10 21:49 ` Chris Murphy
  2017-01-11 19:04 ` Tomasz Kusmierz
  0 siblings, 2 replies; 7+ messages in thread
From: Vinko Magecic @ 2017-01-10 21:07 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hello,

I set up a raid 1 with two btrfs devices and came across some situations in my testing that I can't get a straight answer on.

1) When replacing a volume, do I still need to `umount /path` and then `mount -o degraded ...` the good volume before doing the `btrfs replace start ...` ? I didn't see anything that said I had to and when I tested it without mounting the volume it was able to replace the device without any issue. Is that considered bad and could risk damage or has `replace` made it possible to replace devices without umounting the filesystem?

2) Everything I see about replacing a drive says to use `/old/device /new/device` but what if the old device can't be read or no longer exists? Would that be a `btrfs device add /new/device; btrfs balance start /new/device` ?

3) When I have the RAID1 with two devices and I want to grow it out, which is the better practice? Create a larger volume, replace the old device with the new device and then do it a second time for the other device, or attaching the new volumes to the label/uuid one at a time and with each one use `btrfs filesystem resize devid:max /mountpoint`.

Thanks


     

    

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

end of thread, other threads:[~2017-01-12 12:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 21:07 Best practices for raid 1 Vinko Magecic
2017-01-10 21:49 ` Chris Murphy
2017-01-11 20:07   ` Austin S. Hemmelgarn
2017-01-11 20:37   ` Tomasz Kusmierz
2017-01-12 12:47     ` Austin S. Hemmelgarn
2017-01-12 12:58       ` Tomasz Kusmierz
2017-01-11 19:04 ` Tomasz Kusmierz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).