From: Bob Williams <linux@barrowhillfarm.org.uk>
To: linux-btrfs@vger.kernel.org
Subject: Re-assembling a btrfs raid1 array
Date: Thu, 19 Feb 2015 09:29:04 +0000 [thread overview]
Message-ID: <54E5ACE0.7000709@barrowhillfarm.org.uk> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My system comprises 2 x 3TB hard drives, each partitioned into a 4GB
swap, a 36GB /, and the rest for /home. / and /home are (were) then
assembled into btrfs raid1 arrays, with both metadata and data being
mirrored.
I then installed the wrong graphics drivers for my nVidia card,
resulting in an unbootable system. The only way out was to reinstall
the system (openSUSE 13.2), but it only used a single drive, resulting
in the following setup:
:~ # btrfs fi sh
Label: none uuid: d5919e1a-b52f-421d-9785-cb081ae3b334
Total devices 1 FS bytes used 5.60GiB
devid 1 size 36.00GiB used 8.04GiB path /dev/sdf2
Label: 'home' uuid: 56884b1d-93ab-4db9-bc93-eff3833e91e1
Total devices 2 FS bytes used 1.06TiB
devid 1 size 2.69TiB used 1.07TiB path /dev/sdf3
devid 2 size 2.69TiB used 1.07TiB path /dev/sdg3
Label: none uuid: 06ea503f-58ff-48ca-9c50-b0679288fae6
Total devices 2 FS bytes used 15.87GiB
devid 2 size 36.00GiB used 17.03GiB path /dev/sdg2
*** Some devices missing
Btrfs v3.16.2+20141003
:~ # uname -r
3.16.7-7-desktop
I would like some advice on how to safely delete the contents of
/dev/sdg2, and then add it to /dev/sdf2 to make a new raid1 array. I
know how to do the second step,
mkfs.btrfs -m raid1 -d raid1 /dev/sdf2 /dev/sdg2
(or would that destroy the data on /dev/sdf2 ?)
and I could delete the contents of the partition, but in between these
two steps I'm supposing I need to disassemble one raid1 array and then
put it together again.
Or maybe I'm making this seem harder than it really is?
Bob
- --
Bob Williams
System: Linux 3.16.7-7-desktop
Distro: openSUSE 13.2 (x86_64) with KDE Development Platform: 4.14.3
Uptime: 06:00am up 7:55, 3 users, load average: 0.16, 0.05, 0.06
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlTlrNwACgkQ0Sr7eZJrmU6thgCbBpokV7zCv2sEejk1Qj8BRcb0
ArMAn0gVQlRCZbc7oUJiw5Z4tV2i5VST
=tMn3
-----END PGP SIGNATURE-----
next reply other threads:[~2015-02-19 9:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 9:29 Bob Williams [this message]
2015-02-19 10:06 ` Re-assembling a btrfs raid1 array Bob Williams
2015-02-19 15:43 ` Bob Williams
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=54E5ACE0.7000709@barrowhillfarm.org.uk \
--to=linux@barrowhillfarm.org.uk \
--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