From: Vincent <vincent@influence-pc.fr>
To: linux-btrfs@vger.kernel.org
Subject: Remove a materially failed device from a Btrfs "single-raid" using partitions
Date: Mon, 13 May 2013 16:15:59 +0200 [thread overview]
Message-ID: <5190F59F.405@influence-pc.fr> (raw)
Hello,
I am on Ubuntu Server 13.04 with Linux 3.8.
I've created a "single-raid" using /dev/sd{a,b,c,d}{1,3}. One of my hard
drives has failed, I mean it's materially dead.
:~$ sudo btrfs filesystem show
Label: none uuid: 40886f51-8c9b-4be1-8721-83bf5653d2a0
Total devices 5 FS bytes used 226.90GB
devid 4 size 37.27GB used 31.01GB path /dev/sdd1
devid 3 size 37.27GB used 31.01GB path /dev/sdc1
devid 2 size 37.31GB used 31.00GB path /dev/sdb1
devid 1 size 139.73GB used 132.02GB path /dev/sda3
*** Some devices missing
Many tutorials I found about it never mention the simple deletion of a
non-remountable disk in case of a "single-raid" (where the datas doesn't
matter, I've used the only "d=single" option, insinuating "m=mirrored").
I've read this page http://www.howtoforge.com/a-beginners-guide-to-btrfs
until "8 Adding/Deleting Hard Drives To/From A btrfs File System"
section. But this page want to make me mount the drive, but it's dead.
When my Btrfs partition is not mounted and when I do:
:~$ sudo btrfs device delete missing
btrfs device delete: too few arguments
or
:~$ sudo btrfs device delete missing /media/single-raid/
Nothing happen.
If I try to mount the failed device, and remove /dev/sde1 from the
mountpoint, my console doesn't respond anymore.
I've also read the official documentation
https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices#Removing_devices
using degraded mode: mount -o degraded /dev/sda3 /media/single-raid/
The fstab line is however: /dev/sda3
/media/single-raid/ btrfs
device=/dev/sda3,device=/dev/sdb1,device=/dev/sdc1,device=/dev/sdd1
0 2
Then perform :~$ sudo btrfs filesystem show
Label: none uuid: 40886f51-8c9b-4be1-8721-83bf5653d2a0
Total devices 5 FS bytes used 226.30GB
devid 4 size 37.27GB used 31.01GB path /dev/sdd1
devid 3 size 37.27GB used 31.01GB path /dev/sdc1
devid 2 size 37.31GB used 31.00GB path /dev/sdb1
devid 1 size 139.73GB used 132.02GB path /dev/sda3
**** Some devices missing*
I don't understand why in degraded mode I can't remove the failed
device. Could you help me please?
next reply other threads:[~2013-05-13 14:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 14:15 Vincent [this message]
2013-05-13 14:29 ` Remove a materially failed device from a Btrfs "single-raid" using partitions Harald Glatt
2013-05-13 14:33 ` Vincent
2013-05-13 14:41 ` Harald Glatt
2013-05-13 15:30 ` Vincent
2013-05-13 17:21 ` Chris Murphy
2013-05-14 15:30 ` Vincent
2013-05-14 16:30 ` Chris Murphy
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=5190F59F.405@influence-pc.fr \
--to=vincent@influence-pc.fr \
--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 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.