public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Re: RAID 1 with no data on it when accidentally switched HDD
@ 2014-01-12 21:40 Ingo Ebel
  2014-01-12 21:50 ` Chris Murphy
  0 siblings, 1 reply; 7+ messages in thread
From: Ingo Ebel @ 2014-01-12 21:40 UTC (permalink / raw)
  To: linux-btrfs

Hi,

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

Ok i try to.

I made the btrfs with:
mkfs.btrfs -f -m raid1 -d raid1 /dev/sdb1 /dev/sdc1

part of my /etc/fstab:

/dev/sdb1	/data	btrfs	defaults,compress	0 0
/dev/sdb1 /usr/src/packages btrfs	defaults,compress,subvol=packages	0 0

No other special commands used.

Hardware Setup:

SATA-Port 1 - HDD with opensuse
SATA-Port 2 - HDD /dev/sdb
SATA-Port 3 - DVD
SATA-Port 4 - HDD /dev/sdc

Put at SATA Port 3 an HDD instead an DVD and it got /dev/sdc after 
rebooting my system.

Regards

Ingo

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RAID 1 with no data on it when accidentally switched HDD
@ 2014-01-12 19:35 Ingo Ebel
  2014-01-12 20:54 ` Chris Murphy
  0 siblings, 1 reply; 7+ messages in thread
From: Ingo Ebel @ 2014-01-12 19:35 UTC (permalink / raw)
  To: linux-btrfs

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

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

end of thread, other threads:[~2014-01-14  9:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-12 21:40 RAID 1 with no data on it when accidentally switched HDD Ingo Ebel
2014-01-12 21:50 ` Chris Murphy
2014-01-13  8:18   ` Duncan
2014-01-13 16:46     ` Chris Murphy
2014-01-14  9:10       ` Duncan
  -- strict thread matches above, loose matches on Subject: below --
2014-01-12 19:35 Ingo Ebel
2014-01-12 20:54 ` Chris Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox