Public bug reported:

I had a one disk btrfs fs, I added a device, balanced, than added two
more, balanced, finally removed the original device, and now observe
that btrfs believes I only have 2 devices.

sudo btrfs fi show
failed to read /dev/sr0
Label: 'backups'  uuid: 6a6196eb-4242-422b-8d0f-b9112aad25cc
        Total devices 2 FS bytes used 819.76GB
        devid    4 size 2.73TB used 605.03GB path /dev/sdh1
        devid    2 size 279.46GB used 205.00GB path /dev/sdg1
        devid    3 size 2.73TB used 604.03GB path /dev/sdf1

Label: 'tb1-2'  uuid: 4b14934a-73e3-4f44-8cb7-37063a824e10
        Total devices 1 FS bytes used 464.27GB
        devid    1 size 931.51GB used 542.04GB path /dev/sde1

This makes it kind of hard to remove the teensy device that was meant to
be for testing only, as it thinks it would drop the available devices
below 2 for raid1 metadata.

sudo btrfs fi df /media/backups/
Data: total=985.00GB, used=787.49GB
System, RAID1: total=32.00MB, used=136.00KB
Metadata, RAID1: total=112.00GB, used=32.27GB

Mounting it shows:
Jan 18 20:04:46 lifelessdesktop kernel: [ 1870.353108] device label backups 
devid 4 transid 64842 /dev/sdh1
Jan 18 20:04:46 lifelessdesktop kernel: [ 1870.405588] btrfs: bdev /dev/sdh1 
errs: wr 0, rd 0, flush 0, corrupt 0, gen 0
Jan 18 20:04:46 lifelessdesktop kernel: [ 1870.405595] btrfs: bdev /dev/sdf1 
errs: wr 0, rd 0, flush 0, corrupt 0, gen 0

In dmesg, which is unexepected given sdg1 is part of it.
sdf                                      8:80   0   2.7T  0 disk    
└─sdf1                                   8:81   0   2.7T  0 part    
sdg                                      8:96   0 279.5G  0 disk    
└─sdg1                                   8:97   0 279.5G  0 part    
sdh                                      8:112  0   2.7T  0 disk    
└─sdh1                                   8:113  0   2.7T  0 part    

lsblk -

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: linux-image-3.5.0-21-generic 3.5.0-21.32
ProcVersionSignature: Ubuntu 3.5.0-21.32-generic 3.5.7.1
Uname: Linux 3.5.0-21-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not 
found.
Date: Fri Jan 18 20:05:49 2013
HibernationDevice: RESUME=UUID=37f503c0-b403-49e6-b9d7-e41104836065
MachineType: Alienware Aurora-R3
MarkForUpload: True
ProcFB:
 
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-21-generic 
root=UUID=9dce3ded-5110-40ec-9401-0e46a11f281d ro 
crashkernel=384M-2G:64M,2G-:128M quiet splash
RelatedPackageVersions:
 linux-restricted-modules-3.5.0-21-generic N/A
 linux-backports-modules-3.5.0-21-generic  N/A
 linux-firmware                            1.95
RfKill:
 
SourcePackage: linux
UpgradeStatus: Upgraded to quantal on 2012-10-30 (80 days ago)
dmi.bios.date: 02/11/2011
dmi.bios.vendor: Alienware
dmi.bios.version: A05
dmi.board.name: 046MHW
dmi.board.vendor: Alienware
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: Alienware
dmi.modalias: 
dmi:bvnAlienware:bvrA05:bd02/11/2011:svnAlienware:pnAurora-R3:pvr00:rvnAlienware:rn046MHW:rvrA00:cvnAlienware:ct3:cvr:
dmi.product.name: Aurora-R3
dmi.product.version: 00
dmi.sys.vendor: Alienware

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug quantal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1101086

Title:
  btrfs confused about number of devices in filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1101086/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to