Hi all,

When I created my btrfs filesystem, I use the command:

mkfs.btrfs -m raid1 -d raid0 /dev/sda5 /dev/sdb5

# btrfs fi df /srv/raid0/
Data, RAID0: total=1.92TB, used=1.46TB
System, RAID1: total=32.00MB, used=164.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=39.26GB, used=8.84GB

Today, my first disk broken, I want to copy all integrated files to /dev/sdb5 which not have data on /dev/sda5,
then remove /dev/sda5 from this btrfs file system, is it possible ?

# btrfs fi show
Label: 'dre log files'  uuid: d14f42ca-8784-463e-b85a-b94a5b9f70a2
        Total devices 2 FS bytes used 1.46TB
        devid    1 size 1.00TB used 1.00TB path /dev/sdb5
        *** Some devices missing

With the latest btrfs-progs v0.20-rc1 and kernel 3.7.5, I try to delete the missing device, but failed:

# ./btrfs device delete missing /srv/raid0
ERROR: error removing the device 'missing' - Invalid argument

[6191459.658962] btrfs: bdev /dev/sda5 errs: wr 96543, rd 1, flush 0, corrupt 0, gen 0 [6191459.665981] btrfs: bdev /dev/sda5 errs: wr 96544, rd 1, flush 0, corrupt 0, gen 0 [6191459.668319] btrfs: bdev /dev/sda5 errs: wr 96545, rd 1, flush 0, corrupt 0, gen 0 [6191459.682605] btrfs: bdev /dev/sda5 errs: wr 96546, rd 1, flush 0, corrupt 0, gen 0 [6191459.684672] btrfs: bdev /dev/sda5 errs: wr 96547, rd 1, flush 0, corrupt 0, gen 0 [6191459.699748] btrfs: bdev /dev/sda5 errs: wr 96548, rd 1, flush 0, corrupt 0, gen 0 [6191459.702150] btrfs: bdev /dev/sda5 errs: wr 96549, rd 1, flush 0, corrupt 0, gen 0 [6191459.704791] btrfs: bdev /dev/sda5 errs: wr 96550, rd 1, flush 0, corrupt 0, gen 0 [6191459.707257] btrfs: bdev /dev/sda5 errs: wr 96551, rd 1, flush 0, corrupt 0, gen 0
[6191459.749754] lost page write due to I/O error on /dev/sda5
[6191459.749763] btrfs: bdev /dev/sda5 errs: wr 96552, rd 1, flush 0, corrupt 0, gen 0
[6191459.751572] lost page write due to I/O error on /dev/sda5
[6191459.751585] lost page write due to I/O error on /dev/sda5
[6191468.705857] btrfs: unable to go below two devices on raid1

Thanks,
Dongsheng

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

Reply via email to