Re: btrfs raid1 still recognized after being overwritten by md raid1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/07/2010 03:29 PM, minskey guo wrote:
On 06/07/2010 05:12 PM, J. David Beutel wrote:
I created an md raid1 on partitions that had a btrfs raid1, but btrfs is
still recognized on one of those partitions. (Is it finding some
left-over, redundant metadata?) I'm concerned this will confuse me or
btrfs in the future. How should I fix this?


Seem that btrfs-show checks the 1st superblock only, running the following can zap some part of that superblock,

  dd if=/dev/zero of=/dev/sda7 seek=128 bs=512 count=1

but probably, you need to zap the 2nd superblock as

 dd if=/dev/zero of=/dev/sda7 seek=128k bs=512 count=1


In case the block is being used, you can dump that block and
search "_BHRfS_M" in that block before clear it.


Thanks! Both of those blocks had "_BHRfS_M". Zapping them stopped sda7 from showing up in btrfs-show, while /proc/mdstat is unchanged and / still works.

Cheers,
11011011
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux