Skip to contentSkip to conversation

RAID 1 with no data on it when accidentally switched HDD

DISCUSSION Ingo Ebel 2 participants 2 messages Jan 12, 2014 Btrfs file system

lore
Share & tools
lore

Ingo Ebel

author
#0 lore raw

Hi,

I'm not sure whether it's a bug in btrfs or my distro but I discovered an odd behavior today.

My Setup:

* Btrfs v3.12+20131125
* /dev/sda – Boot OS - opensuse 13.1
* Btrfs RAID 1 on /dev/sdb1 and /dev/sdc1

I added an extra HDD with an other OS and Data on it witch accidentally became /dev/sdc.

Btrfs got mounted at boot time without any complains but in the main volume was empty. Some subvolumes still had Data.

I took the extra HDD out but still no data in the Btrfs main volume. Bfrfsck reported no error. Some Parts on the (accidentally) /dev/sdc are now corrupt.

I would expect that btrfs would throw an error when getting in the kind of scenario.

Regards

Ingo

#1 lore raw
Quoted 11 lines · Ingo Ebel

Hi,

I'm not sure whether it's a bug in btrfs or my distro but I discovered an odd behavior today.

My Setup:

* Btrfs v3.12+20131125
* /dev/sda – Boot OS - opensuse 13.1
* Btrfs RAID 1 on /dev/sdb1 and /dev/sdc1

I added an extra HDD with an other OS and Data on it witch accidentally became /dev/sdc.

I don't understand the exact sequence. How does a 3rd drive appear as sdc when the 2nd drive is sdc and sdc1 is part of a Btrfs file system already? Did you reboot and the 3rd drive became sdc? This needs to be explained better, including the exact commands you used.

Chris Murphy