Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th October 2011, 07:19 AM
SiriusStarr Offline
Registered User
 
Join Date: Apr 2007
Location: WA, USA
Posts: 73
linuxfirefox
Btrfs RAID 1 Problem

Hi all,

I want to switch all of my external drives (used for storage/archiving/backup) over to Btrfs. I have two hard drives (encrypted with dm-crypt, though that is probably not relevant) that I have made a fully redundant Btrfs volume of, with:

Code:
mkfs.btrfs -L VolumeName -d raid1 -m raid1 /dev/mapper/device1 /dev/mapper/device2
This appears to work normally, the filesystem mounts normally, and I can copy data to and from it with no problems. In this setup, data should be fully redundant and the volume should be able to be mounted just fine, with all data accessible, if either drive fails. Upon copying some data to the drives and simulating drive failure (by not decrypting one or the other drive), I noticed very strange behavior. One of the two drives will mount fine in degraded mode with all data present. The other one, however, fails with:
Code:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/device1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
The filesystem appears to be there:
Code:
btrfs filesystem show

WITH BAD DRIVE:
failed to read /dev/sr0
Label: 'VolumeName''  uuid: dda0ce8b-a40a-4c74-8cba-e9cefc9747be
	Total devices 2 FS bytes used 5.28GB
	devid    1 size 931.51GB used 7.03GB path /dev/dm-4
	*** Some devices missing

Btrfs Btrfs v0.19



WITH GOOD DRIVE:
failed to read /dev/sr0
Label: 'VolumeName''  uuid: dda0ce8b-a40a-4c74-8cba-e9cefc9747be
	Total devices 2 FS bytes used 5.28GB
	devid    2 size 931.51GB used 7.01GB path /dev/dm-4
	*** Some devices missing

Btrfs Btrfs v0.19
In the case of trying to mount the non-functional drive, dmesg shows the following:
Code:
[ 8223.374201] device label VolumeName devid 1 transid 31 /dev/mapper/device1
[ 8223.376441] btrfs: allowing degraded mounts
[ 8223.383357] parent transid verify failed on 29605888 wanted 26 found 13
[ 8223.384292] parent transid verify failed on 29605888 wanted 26 found 13
[ 8223.385048] parent transid verify failed on 29605888 wanted 26 found 13
[ 8223.385053] parent transid verify failed on 29605888 wanted 26 found 13
[ 8223.385058] Failed to read block groups: -5
[ 8223.390181] btrfs: open_ctree failed
Naturally, I'm rather confused by this behavior, since the two drives should be equally functional in this mirrored mode. Does anyone have any thoughts? Note: There is no data on the drives, so I'm okay with attempting anything destructive.

Thanks,
~Sirius

---------- Post added at 10:36 PM ---------- Previous post was at 10:27 PM ----------

Okay, having some weirder problems now, where both drives will mount individually in degraded mode, but cannot mount the complete array now. Will get back to this thread with more information once I've played with this more.

---------- Post added at 11:19 PM ---------- Previous post was at 10:36 PM ----------

Okay, completely reformatted and it works fine now. Go figure.
__________________
The ballroom dancing, Linux loving, molecular biologist S.T.A.L.K.E.R. :)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BTRFS and F16 tox F16 Development 10 10th August 2011 12:48 AM
[SOLVED] BTRFS May Not be default in F16? tox F16 Development 4 21st July 2011 06:43 AM
btrfs - add RAID1 partition to existing encrypted btrfs parition techmum Using Fedora 0 4th July 2011 01:21 AM
Software RAID problem (RAID is gone after create process finishes) michal Using Fedora 4 16th November 2005 12:24 PM
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Hardware & Laptops 1 15th September 2005 04:26 PM


Current GMT-time: 02:24 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat