linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't add/replace a device on degraded filesystem
@ 2016-12-30  0:27 Rich Gannon
  2016-12-31  4:21 ` Duncan
  2016-12-31  8:08 ` Roman Mamedov
  0 siblings, 2 replies; 3+ messages in thread
From: Rich Gannon @ 2016-12-30  0:27 UTC (permalink / raw)
  To: linux-btrfs

Well I certainly got myself into a pickle.  Been a Btrfs user since 2008 
and this is the first time I've had a serious problem....and I got two 
on the same day (I'm separating them in a different emails).

I had 4x 4TB harddrives in a d=single m=raid1 array for about a year now 
containing many media files I really want to save.  Yesterday I removed 
them from my desktop, installed them into a "new-to-me" Supermicro 2U 
server and even swapped over my HighPoint MegaRAID 2720 SAS HBA (yes, 
it's acting as a direct pass-thruHBA only).  With the added space, I 
also installed an additional 4TB drive to the filesystem and was 
performing a rebalance with filters:

btrfs balance start -dconvert=raid10 -mconvert=raid10 /mnt/bpool-btrfs

I found that the new drive dropped off-line during the rebalance.  I 
swapped the drive into a different bay to see if it was backplane,cord, 
or drive related.  Upon remount, the same drive dropped offline.  I had 
another new 4TB drive and swapped it in for the dead drive.

I can mount my filesystem with -o degraded, but I can not do btrfs 
replace or btrfs device add as the filesystem is in read-only mode, and 
I can not mount read-write.

 From my understanding, my data should all be safe as during the 
balance, no single-copy files should have made it onto the new drive 
(that subsequently failed).  Is this a correct assumption?

Here is some btrfs data:
proton bpool-btrfs # btrfs fi df /mnt/bpool-btrfs/
Data, RAID10: total=2.17TiB, used=1.04TiB
Data, single: total=7.79TiB, used=7.59TiB
System, RAID1: total=32.00MiB, used=1.08MiB
Metadata, RAID10: total=1.00GiB, used=1023.88MiB
Metadata, RAID1: total=10.00GiB, used=8.24GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
proton bpool-btrfs # btrfs fi sh /mnt/bpool-btrfs/
Label: 'bigpool'  uuid: 85e8b0dd-fbbd-48a2-abc4-ccaefa5e8d18
         Total devices 5 FS bytes used 8.64TiB
         devid    5 size 3.64TiB used 2.77TiB path /dev/mapper/bpool-3
         devid    6 size 3.64TiB used 2.77TiB path /dev/mapper/bpool-4
         devid    7 size 3.64TiB used 2.77TiB path /dev/mapper/bpool-1
         devid    8 size 3.64TiB used 2.77TiB path /dev/mapper/bpool-2
         *** Some devices missing


NOTE: The drives are all fully encrypted with LUKS/dm_crypt.

Please help me save the data :)

Rich

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

end of thread, other threads:[~2016-12-31  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-30  0:27 Can't add/replace a device on degraded filesystem Rich Gannon
2016-12-31  4:21 ` Duncan
2016-12-31  8:08 ` Roman Mamedov

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).