* btrfs: unable to remove the only writeable device
@ 2010-09-09 1:04 Roy Keene
2010-12-13 14:23 ` Paul Komkoff
0 siblings, 1 reply; 3+ messages in thread
From: Roy Keene @ 2010-09-09 1:04 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1140 bytes --]
All,
I am using BtrFS at home for testing on my /home filesystem. I
started out with one disk (mkfs.btrfs /dev/sdb1) and then added another
disk (btrfs device add /dev/sda2 /home; btrfs filesystem balance /home).
I then wanted to remove my second disk, but was unable to do so, I got:
btrfs: unable to go below two devices on raid1
I was told by the members of the BtrFS IRC channel that this was because
my metadata was RAID1'd.
To resolve this situation, I added an 8GB flash drive (my metadata was
5.99GB) and attempted to remove the drive again. It ran for a while (a
long while) and eventually returned me to the prompt. It did not remove
the disk -- so I ran it again... and again... and again...
I am to the point where "btrfs device delete <blah> /home" returns
instantly, but has no effect. The following is written to my kernel
message buffer whenever I try to remove ANY device from /home:
btrfs: unable to remove the only writeable device
More information can be found in the attachement.
I am still on my quest to remove a device from my BtrFS pool. Does anyone
have any advice ?
Thanks,
Roy Keene
[-- Attachment #2: Type: TEXT/PLAIN, Size: 32083 bytes --]
# cat /etc/fstab; btrfs-show; df -lh; du -sh /home /mnt/slackbuild; btrfs subvolume list /pools/data
/dev/Data/swap swap swap defaults 0 0
/dev/Data/Slackware64_13.1_Root / ext4 defaults 1 1
/dev/sdc1 /boot ext2 defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
/dev/sdb1 /pools/data btrfs defaults 1 0
/dev/sdb1 /home btrfs subvol=Home 1 0
/dev/sdb1 /mnt/slackbuild btrfs subvol=Build 1 0
failed to read /dev/dm-13
failed to read /dev/sr0
Label: none uuid: 9cb99da3-216b-46e4-bcaa-21d3d08a92be
Total devices 2 FS bytes used 84.07GB
devid 2 size 142.87GB used 56.63GB path /dev/sda2
devid 1 size 152.62GB used 56.64GB path /dev/sdb1
Btrfs v0.19-16-g075587c
Filesystem Size Used Avail Use% Mounted on
/dev/Data/Slackware64_13.1_Root 9.9G 7.0G 2.4G 75% /
/dev/sdc1 2.0G 59M 1.9G 4% /boot
tmpfs 1005M 140K 1005M 1% /dev/shm
tmpfs 1005M 8.0K 1005M 1% /tmp
/dev/sdb1 296G 91G 206G 31% /pools/data
/dev/sdb1 296G 91G 206G 31% /home
/dev/sdb1 296G 91G 206G 31% /mnt/slackbuild
17G /home
63G /mnt/slackbuild
ID 256 top level 5 path Home
ID 260 top level 5 path Build
# dmesg | tail -n 1
btrfs: unable to go below two devices on raid1
# btrfs filesystem df /pools/data
Metadata: total=8.62GB, used=5.99GB
Data: total=96.00GB, used=76.65GB
System: total=12.00MB, used=28.00KB
....
08:42 < cwillu_at_work> [rkeene], you might only have metadata on raid1
08:43 < cwillu_at_work> btrfs-show should show the raid level, but I think something in the syscall is broken in that regard at the moment
....
# btrfs device add /dev/sdd1 /pools/data
# btrfs device delete /dev/sdb1 /pools/data
# btrfs device delete /dev/sdb1 /pools/data
# btrfs device delete /dev/sdb1 /pools/data
....
# dmesg
46499584, bytes 4096, bitmap no
entry offset 205748109312, bytes 4096, bitmap no
entry offset 205754097664, bytes 4096, bitmap no
entry offset 205754150912, bytes 4096, bitmap no
entry offset 205754208256, bytes 4096, bitmap no
entry offset 205755539456, bytes 4096, bitmap no
entry offset 205756133376, bytes 4096, bitmap no
entry offset 205756366848, bytes 4096, bitmap no
entry offset 205756596224, bytes 4096, bitmap no
entry offset 205756661760, bytes 4096, bitmap no
entry offset 205756874752, bytes 4096, bitmap no
entry offset 205757087744, bytes 4096, bitmap no
entry offset 205757186048, bytes 4096, bitmap no
entry offset 205757280256, bytes 4096, bitmap no
entry offset 205757374464, bytes 4096, bitmap no
entry offset 205757456384, bytes 4096, bitmap no
entry offset 205757616128, bytes 4096, bitmap no
entry offset 205757837312, bytes 4096, bitmap no
entry offset 205758025728, bytes 4096, bitmap no
entry offset 205758218240, bytes 4096, bitmap no
entry offset 205758382080, bytes 4096, bitmap no
entry offset 205760925696, bytes 4096, bitmap no
entry offset 205761114112, bytes 4096, bitmap no
entry offset 207152447488, bytes 32768, bitmap no
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
btrfs: relocating block group 185266601984 flags 18
btrfs: found 6 extents
btrfs: relocating block group 0 flags 2
btrfs: relocating block group 157617750016 flags 9
btrfs allocation failed flags 9, wanted 8192
space_info has 4808704 free, is full
space_info total=83751862272, used=83746983936, pinned=0, reserved=4096, may_use=2596864, readonly=65536
block group 96817119232 has 2147483648 bytes, 2147323904 used 0 pinned 4096 reserved
entry offset 97353990144, bytes 4096, bitmap yes
entry offset 97756643328, bytes 73728, bitmap yes
entry offset 98427731968, bytes 4096, bitmap yes
entry offset 98696167424, bytes 45056, bitmap yes
entry offset 98830385152, bytes 28672, bitmap yes
block group has cluster?: no
3 blocks of free space at or bigger than bytes is
block group 99367256064 has 2147483648 bytes, 2147012608 used 0 pinned 0 reserved
entry offset 99367256064, bytes 8192, bitmap yes
entry offset 99501473792, bytes 217088, bitmap yes
entry offset 99635691520, bytes 24576, bitmap yes
entry offset 99769909248, bytes 172032, bitmap yes
entry offset 99904126976, bytes 4096, bitmap yes
entry offset 100440997888, bytes 45056, bitmap yes
block group has cluster?: no
5 blocks of free space at or bigger than bytes is
block group 101783175168 has 2147483648 bytes, 2147434496 used 0 pinned 0 reserved
entry offset 101917392896, bytes 8192, bitmap yes
entry offset 102051610624, bytes 24576, bitmap yes
entry offset 102320046080, bytes 4096, bitmap yes
entry offset 102454263808, bytes 4096, bitmap yes
entry offset 102532886528, bytes 4096, bitmap no
entry offset 103796441088, bytes 4096, bitmap yes
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 104333312000 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 106480795648 has 2147483648 bytes, 2147299328 used 0 pinned 0 reserved
entry offset 106773864448, bytes 4096, bitmap no
entry offset 106784952320, bytes 4096, bitmap no
entry offset 107286102016, bytes 57344, bitmap yes
entry offset 107329241088, bytes 4096, bitmap no
entry offset 107334025216, bytes 4096, bitmap no
entry offset 107334074368, bytes 4096, bitmap no
entry offset 107335741440, bytes 4096, bitmap no
entry offset 107344482304, bytes 4096, bitmap no
entry offset 107344916480, bytes 4096, bitmap no
entry offset 107355226112, bytes 4096, bitmap no
entry offset 107355983872, bytes 4096, bitmap no
entry offset 107361447936, bytes 4096, bitmap no
entry offset 107362676736, bytes 4096, bitmap no
entry offset 107371925504, bytes 4096, bitmap no
entry offset 107420319744, bytes 4096, bitmap yes
entry offset 107803820032, bytes 4096, bitmap no
entry offset 107810795520, bytes 4096, bitmap no
entry offset 107811540992, bytes 4096, bitmap no
entry offset 107957190656, bytes 4096, bitmap yes
entry offset 107961962496, bytes 4096, bitmap no
entry offset 107962933248, bytes 4096, bitmap no
entry offset 107963142144, bytes 4096, bitmap no
entry offset 108100034560, bytes 4096, bitmap no
entry offset 108494061568, bytes 4096, bitmap yes
entry offset 108617101312, bytes 4096, bitmap no
entry offset 108617216000, bytes 4096, bitmap no
entry offset 108621598720, bytes 4096, bitmap no
entry offset 108624883712, bytes 4096, bitmap no
entry offset 108625551360, bytes 4096, bitmap no
entry offset 108626599936, bytes 4096, bitmap no
entry offset 108626743296, bytes 4096, bitmap no
entry offset 108626993152, bytes 4096, bitmap no
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 108762497024 has 2147483648 bytes, 2147438592 used 0 pinned 0 reserved
entry offset 109030932480, bytes 4096, bitmap yes
entry offset 109074358272, bytes 4096, bitmap no
entry offset 109497917440, bytes 4096, bitmap no
entry offset 110104674304, bytes 16384, bitmap yes
entry offset 110238892032, bytes 12288, bitmap yes
entry offset 110507327488, bytes 4096, bitmap yes
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 111178416128 has 2147483648 bytes, 2147409920 used 0 pinned 0 reserved
entry offset 111581069312, bytes 16384, bitmap yes
entry offset 111849504768, bytes 28672, bitmap yes
entry offset 111873798144, bytes 4096, bitmap no
entry offset 111874318336, bytes 4096, bitmap no
entry offset 111882489856, bytes 4096, bitmap no
entry offset 112386375680, bytes 4096, bitmap yes
entry offset 112509054976, bytes 4096, bitmap no
entry offset 112654811136, bytes 4096, bitmap yes
entry offset 112918417408, bytes 4096, bitmap no
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 113728552960 has 2147483648 bytes, 2147258368 used 0 pinned 0 reserved
entry offset 114399641600, bytes 36864, bitmap yes
entry offset 114465726464, bytes 4096, bitmap no
entry offset 114533859328, bytes 4096, bitmap yes
entry offset 114802294784, bytes 24576, bitmap yes
entry offset 114936512512, bytes 8192, bitmap yes
entry offset 114986672128, bytes 4096, bitmap no
entry offset 115070730240, bytes 53248, bitmap yes
entry offset 115099291648, bytes 4096, bitmap no
entry offset 115178876928, bytes 4096, bitmap no
entry offset 115204947968, bytes 57344, bitmap yes
entry offset 115226128384, bytes 4096, bitmap no
entry offset 115473383424, bytes 12288, bitmap yes
entry offset 115741818880, bytes 8192, bitmap yes
block group has cluster?: no
7 blocks of free space at or bigger than bytes is
block group 116144472064 has 2147483648 bytes, 2147385344 used 0 pinned 0 reserved
entry offset 116547125248, bytes 12288, bitmap yes
entry offset 116583415808, bytes 4096, bitmap no
entry offset 116681342976, bytes 4096, bitmap yes
entry offset 116753108992, bytes 4096, bitmap no
entry offset 116815560704, bytes 36864, bitmap yes
entry offset 116843507712, bytes 4096, bitmap no
entry offset 116843757568, bytes 4096, bitmap no
entry offset 116949778432, bytes 8192, bitmap yes
entry offset 117083996160, bytes 8192, bitmap yes
entry offset 117089923072, bytes 4096, bitmap no
entry offset 117368500224, bytes 4096, bitmap no
entry offset 117889302528, bytes 4096, bitmap yes
block group has cluster?: no
4 blocks of free space at or bigger than bytes is
block group 118560391168 has 2147483648 bytes, 2147442688 used 0 pinned 0 reserved
entry offset 120036786176, bytes 16384, bitmap yes
entry offset 120060645376, bytes 4096, bitmap no
entry offset 120171003904, bytes 4096, bitmap yes
entry offset 120573657088, bytes 16384, bitmap yes
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 121110528000 has 2147483648 bytes, 2147414016 used 0 pinned 0 reserved
entry offset 121110528000, bytes 32768, bitmap yes
entry offset 121152413696, bytes 4096, bitmap no
entry offset 121378963456, bytes 8192, bitmap yes
entry offset 121382850560, bytes 4096, bitmap no
entry offset 121513181184, bytes 4096, bitmap yes
entry offset 121647398912, bytes 4096, bitmap yes
entry offset 121652617216, bytes 4096, bitmap no
entry offset 121781616640, bytes 4096, bitmap yes
entry offset 121822375936, bytes 4096, bitmap no
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 123526447104 has 2147483648 bytes, 2147454976 used 0 pinned 0 reserved
entry offset 124063318016, bytes 12288, bitmap yes
entry offset 124197535744, bytes 8192, bitmap yes
entry offset 124465971200, bytes 4096, bitmap yes
entry offset 124734406656, bytes 4096, bitmap yes
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 125942366208 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 128626720768 has 2147483648 bytes, 2147463168 used 0 pinned 0 reserved
entry offset 130103115776, bytes 8192, bitmap yes
entry offset 130109546496, bytes 4096, bitmap no
entry offset 130182086656, bytes 4096, bitmap no
entry offset 130371551232, bytes 4096, bitmap yes
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 130908422144 has 2147483648 bytes, 2147373056 used 0 pinned 0 reserved
entry offset 131579510784, bytes 12288, bitmap yes
entry offset 131847946240, bytes 4096, bitmap yes
entry offset 132250599424, bytes 24576, bitmap yes
entry offset 132315287552, bytes 4096, bitmap no
entry offset 132384817152, bytes 8192, bitmap yes
entry offset 132488994816, bytes 4096, bitmap no
entry offset 132495925248, bytes 4096, bitmap no
entry offset 132519034880, bytes 28672, bitmap yes
entry offset 132612726784, bytes 4096, bitmap no
entry offset 132617539584, bytes 4096, bitmap no
entry offset 132653252608, bytes 8192, bitmap yes
entry offset 132671901696, bytes 4096, bitmap no
block group has cluster?: no
5 blocks of free space at or bigger than bytes is
block group 133458558976 has 2147483648 bytes, 2147442688 used 0 pinned 0 reserved
entry offset 134263865344, bytes 8192, bitmap yes
entry offset 134372868096, bytes 4096, bitmap no
entry offset 134532300800, bytes 4096, bitmap yes
entry offset 134666518528, bytes 20480, bitmap yes
entry offset 135316774912, bytes 4096, bitmap no
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 135874478080 has 2147483648 bytes, 2147450880 used 0 pinned 0 reserved
entry offset 136545566720, bytes 12288, bitmap yes
entry offset 137485090816, bytes 8192, bitmap yes
entry offset 137518669824, bytes 4096, bitmap no
entry offset 137619308544, bytes 4096, bitmap yes
entry offset 137663528960, bytes 4096, bitmap no
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 138424614912 has 2147483648 bytes, 2147463168 used 0 pinned 0 reserved
entry offset 139095703552, bytes 16384, bitmap yes
entry offset 139822645248, bytes 4096, bitmap no
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 140572098560 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 142719582208 has 2147483648 bytes, 2147409920 used 0 pinned 0 reserved
entry offset 143348924416, bytes 4096, bitmap no
entry offset 143390670848, bytes 4096, bitmap yes
entry offset 143669706752, bytes 4096, bitmap no
entry offset 144195977216, bytes 12288, bitmap yes
entry offset 144249696256, bytes 4096, bitmap no
entry offset 144268337152, bytes 4096, bitmap no
entry offset 144304189440, bytes 4096, bitmap no
entry offset 144304214016, bytes 4096, bitmap no
entry offset 144330194944, bytes 8192, bitmap yes
entry offset 144343961600, bytes 4096, bitmap no
entry offset 144437673984, bytes 4096, bitmap no
entry offset 144457150464, bytes 4096, bitmap no
entry offset 144464412672, bytes 8192, bitmap yes
entry offset 144598630400, bytes 4096, bitmap yes
block group has cluster?: no
3 blocks of free space at or bigger than bytes is
block group 145135501312 has 2147483648 bytes, 2147475456 used 0 pinned 0 reserved
entry offset 145806589952, bytes 8192, bitmap yes
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 147685638144 has 2147483648 bytes, 2147463168 used 0 pinned 0 reserved
entry offset 147836227584, bytes 4096, bitmap no
entry offset 148222509056, bytes 4096, bitmap yes
entry offset 148625162240, bytes 4096, bitmap yes
entry offset 148759379968, bytes 4096, bitmap yes
entry offset 149755293696, bytes 4096, bitmap no
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 150101557248 has 2147483648 bytes, 2147467264 used 0 pinned 0 reserved
entry offset 150772645888, bytes 4096, bitmap yes
entry offset 151192248320, bytes 4096, bitmap no
entry offset 151962095616, bytes 4096, bitmap no
entry offset 151967404032, bytes 4096, bitmap no
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 152651694080 has 2147483648 bytes, 2147409920 used 0 pinned 0 reserved
entry offset 152651694080, bytes 8192, bitmap yes
entry offset 152928067584, bytes 4096, bitmap no
entry offset 153188564992, bytes 4096, bitmap yes
entry offset 153322782720, bytes 20480, bitmap yes
entry offset 153400143872, bytes 4096, bitmap no
entry offset 153403379712, bytes 4096, bitmap no
entry offset 153404751872, bytes 4096, bitmap no
entry offset 153407250432, bytes 4096, bitmap no
entry offset 153407434752, bytes 4096, bitmap no
entry offset 153407688704, bytes 4096, bitmap no
entry offset 153408835584, bytes 4096, bitmap no
entry offset 153859653632, bytes 4096, bitmap yes
entry offset 153993871360, bytes 4096, bitmap yes
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 155201830912 has 2147483648 bytes, 2147454976 used 0 pinned 0 reserved
entry offset 155201830912, bytes 8192, bitmap yes
entry offset 155738701824, bytes 8192, bitmap yes
entry offset 155808112640, bytes 4096, bitmap no
entry offset 155936784384, bytes 4096, bitmap no
entry offset 156007137280, bytes 4096, bitmap yes
block group has cluster?: no
2 blocks of free space at or bigger than bytes is
block group 157617750016 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 172381700096 has 2147483648 bytes, 2147475456 used 0 pinned 0 reserved
entry offset 173052788736, bytes 4096, bitmap yes
entry offset 173118402560, bytes 4096, bitmap no
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 176676667392 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 180971634688 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 185274990592 has 2147483648 bytes, 2146074624 used 0 pinned 0 reserved
entry offset 185946079232, bytes 4096, bitmap yes
entry offset 186080296960, bytes 733184, bitmap yes
entry offset 186144825344, bytes 4096, bitmap no
entry offset 186146459648, bytes 4096, bitmap no
entry offset 186146574336, bytes 4096, bitmap no
entry offset 186146643968, bytes 4096, bitmap no
entry offset 186146680832, bytes 4096, bitmap no
entry offset 186148098048, bytes 4096, bitmap no
entry offset 186148515840, bytes 4096, bitmap no
entry offset 186149937152, bytes 4096, bitmap no
entry offset 186150027264, bytes 4096, bitmap no
entry offset 186153078784, bytes 4096, bitmap no
entry offset 186153295872, bytes 4096, bitmap no
entry offset 186153721856, bytes 4096, bitmap no
entry offset 186155286528, bytes 4096, bitmap no
entry offset 186157375488, bytes 4096, bitmap no
entry offset 186161229824, bytes 4096, bitmap no
entry offset 186163957760, bytes 4096, bitmap no
entry offset 186168688640, bytes 4096, bitmap no
entry offset 186170331136, bytes 4096, bitmap no
entry offset 186171240448, bytes 4096, bitmap no
entry offset 186179153920, bytes 4096, bitmap no
entry offset 186182025216, bytes 4096, bitmap no
entry offset 186183954432, bytes 4096, bitmap no
entry offset 186184044544, bytes 4096, bitmap no
entry offset 186185228288, bytes 4096, bitmap no
entry offset 186185478144, bytes 4096, bitmap no
entry offset 186185560064, bytes 4096, bitmap no
entry offset 186186412032, bytes 4096, bitmap no
entry offset 186186760192, bytes 4096, bitmap no
entry offset 186190667776, bytes 4096, bitmap no
entry offset 186190852096, bytes 4096, bitmap no
entry offset 186191667200, bytes 4096, bitmap no
entry offset 186192011264, bytes 4096, bitmap no
entry offset 186193100800, bytes 4096, bitmap no
entry offset 186193219584, bytes 4096, bitmap no
entry offset 186193313792, bytes 4096, bitmap no
entry offset 186193354752, bytes 4096, bitmap no
entry offset 186193526784, bytes 4096, bitmap no
entry offset 186193850368, bytes 4096, bitmap no
entry offset 186195210240, bytes 4096, bitmap no
entry offset 186200637440, bytes 4096, bitmap no
entry offset 186202177536, bytes 4096, bitmap no
entry offset 186208051200, bytes 4096, bitmap no
entry offset 186208751616, bytes 4096, bitmap no
entry offset 186209497088, bytes 4096, bitmap no
entry offset 186209636352, bytes 4096, bitmap no
entry offset 186209714176, bytes 4096, bitmap no
entry offset 186213273600, bytes 4096, bitmap no
entry offset 186213793792, bytes 4096, bitmap no
entry offset 186213904384, bytes 4096, bitmap no
entry offset 186213990400, bytes 4096, bitmap no
entry offset 186214100992, bytes 4096, bitmap no
entry offset 186214404096, bytes 4096, bitmap no
entry offset 186214514688, bytes 372736, bitmap yes
entry offset 186214535168, bytes 4096, bitmap no
entry offset 186214584320, bytes 4096, bitmap no
entry offset 186214649856, bytes 4096, bitmap no
entry offset 186214748160, bytes 4096, bitmap no
entry offset 186219044864, bytes 4096, bitmap no
entry offset 186220589056, bytes 4096, bitmap no
entry offset 186254110720, bytes 4096, bitmap no
entry offset 186254139392, bytes 4096, bitmap no
entry offset 186256318464, bytes 4096, bitmap no
entry offset 186257977344, bytes 4096, bitmap no
entry offset 186348732416, bytes 4096, bitmap yes
entry offset 186617167872, bytes 16384, bitmap yes
entry offset 186637996032, bytes 4096, bitmap no
entry offset 187288256512, bytes 8192, bitmap yes
entry offset 187419963392, bytes 4096, bitmap no
entry offset 187420049408, bytes 4096, bitmap no
entry offset 187420954624, bytes 4096, bitmap no
block group has cluster?: no
4 blocks of free space at or bigger than bytes is
block group 187556691968 has 2147483648 bytes, 2146881536 used 0 pinned 0 reserved
entry offset 188227780608, bytes 28672, bitmap yes
entry offset 188307062784, bytes 4096, bitmap no
entry offset 188326240256, bytes 4096, bitmap no
entry offset 188327874560, bytes 4096, bitmap no
entry offset 188342210560, bytes 4096, bitmap no
entry offset 188342284288, bytes 4096, bitmap no
entry offset 188349030400, bytes 4096, bitmap no
entry offset 188349079552, bytes 4096, bitmap no
entry offset 188349194240, bytes 4096, bitmap no
entry offset 188349652992, bytes 4096, bitmap no
entry offset 188349730816, bytes 4096, bitmap no
entry offset 188349980672, bytes 4096, bitmap no
entry offset 188350230528, bytes 4096, bitmap no
entry offset 188350726144, bytes 4096, bitmap no
entry offset 188352937984, bytes 4096, bitmap no
entry offset 188353544192, bytes 4096, bitmap no
entry offset 188354019328, bytes 4096, bitmap no
entry offset 188354625536, bytes 4096, bitmap no
entry offset 188355051520, bytes 4096, bitmap no
entry offset 188355186688, bytes 4096, bitmap no
entry offset 188360544256, bytes 4096, bitmap no
entry offset 188361998336, bytes 77824, bitmap yes
entry offset 188373352448, bytes 4096, bitmap no
entry offset 188375015424, bytes 4096, bitmap no
entry offset 188375990272, bytes 4096, bitmap no
entry offset 188378099712, bytes 4096, bitmap no
entry offset 188386283520, bytes 4096, bitmap no
entry offset 188386557952, bytes 4096, bitmap no
entry offset 188386697216, bytes 4096, bitmap no
entry offset 188388069376, bytes 4096, bitmap no
entry offset 188434522112, bytes 4096, bitmap no
entry offset 188435329024, bytes 4096, bitmap no
entry offset 188435853312, bytes 4096, bitmap no
entry offset 188436094976, bytes 4096, bitmap no
entry offset 188437114880, bytes 4096, bitmap no
entry offset 188447727616, bytes 4096, bitmap no
entry offset 188447899648, bytes 4096, bitmap no
entry offset 188448174080, bytes 4096, bitmap no
entry offset 188448219136, bytes 4096, bitmap no
entry offset 188448292864, bytes 4096, bitmap no
entry offset 188448378880, bytes 4096, bitmap no
entry offset 188448444416, bytes 4096, bitmap no
entry offset 188496216064, bytes 16384, bitmap yes
entry offset 188526542848, bytes 4096, bitmap no
entry offset 188581490688, bytes 4096, bitmap no
entry offset 188581531648, bytes 4096, bitmap no
entry offset 188581822464, bytes 4096, bitmap no
entry offset 188581883904, bytes 4096, bitmap no
entry offset 188582146048, bytes 4096, bitmap no
entry offset 188615389184, bytes 4096, bitmap no
entry offset 188623564800, bytes 4096, bitmap no
entry offset 188630433792, bytes 98304, bitmap yes
entry offset 188641316864, bytes 4096, bitmap no
entry offset 188642119680, bytes 4096, bitmap no
entry offset 188642418688, bytes 4096, bitmap no
entry offset 188643147776, bytes 4096, bitmap no
entry offset 188643614720, bytes 4096, bitmap no
entry offset 188644151296, bytes 4096, bitmap no
entry offset 188644302848, bytes 4096, bitmap no
entry offset 188645392384, bytes 4096, bitmap no
entry offset 188650676224, bytes 4096, bitmap no
entry offset 188650713088, bytes 4096, bitmap no
entry offset 188651061248, bytes 4096, bitmap no
entry offset 188667092992, bytes 4096, bitmap no
entry offset 188698415104, bytes 4096, bitmap no
entry offset 189033086976, bytes 36864, bitmap yes
entry offset 189085593600, bytes 4096, bitmap no
entry offset 189128200192, bytes 4096, bitmap no
entry offset 189132283904, bytes 4096, bitmap no
entry offset 189137702912, bytes 4096, bitmap no
entry offset 189137915904, bytes 4096, bitmap no
entry offset 189138096128, bytes 4096, bitmap no
entry offset 189147721728, bytes 4096, bitmap no
entry offset 189157306368, bytes 4096, bitmap no
entry offset 189157437440, bytes 4096, bitmap no
entry offset 189157908480, bytes 4096, bitmap no
entry offset 189157982208, bytes 4096, bitmap no
entry offset 189158064128, bytes 4096, bitmap no
entry offset 189167304704, bytes 4096, bitmap yes
entry offset 189175853056, bytes 4096, bitmap no
entry offset 189176315904, bytes 4096, bitmap no
entry offset 189301522432, bytes 12288, bitmap yes
entry offset 189412876288, bytes 4096, bitmap no
entry offset 189413064704, bytes 4096, bitmap no
entry offset 189415165952, bytes 4096, bitmap no
entry offset 189415657472, bytes 4096, bitmap no
entry offset 189423247360, bytes 4096, bitmap no
block group has cluster?: no
6 blocks of free space at or bigger than bytes is
block group 189838393344 has 2147483648 bytes, 2147225600 used 0 pinned 0 reserved
entry offset 189838393344, bytes 225280, bitmap yes
entry offset 189858754560, bytes 4096, bitmap no
entry offset 189910638592, bytes 4096, bitmap no
entry offset 191983325184, bytes 4096, bitmap no
entry offset 191983620096, bytes 4096, bitmap no
entry offset 191985414144, bytes 4096, bitmap no
entry offset 191985561600, bytes 4096, bitmap no
entry offset 191985729536, bytes 4096, bitmap no
entry offset 191985790976, bytes 4096, bitmap no
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 191985876992 has 2147483648 bytes, 2147241984 used 0 pinned 0 reserved
entry offset 191985876992, bytes 114688, bitmap yes
entry offset 191992520704, bytes 4096, bitmap no
entry offset 191992774656, bytes 4096, bitmap no
entry offset 191993151488, bytes 4096, bitmap no
entry offset 191994671104, bytes 4096, bitmap no
entry offset 191994851328, bytes 4096, bitmap no
entry offset 191996440576, bytes 4096, bitmap no
entry offset 192001040384, bytes 4096, bitmap no
entry offset 192001122304, bytes 4096, bitmap no
entry offset 192002863104, bytes 4096, bitmap no
entry offset 192002953216, bytes 4096, bitmap no
entry offset 192004222976, bytes 4096, bitmap no
entry offset 192004558848, bytes 4096, bitmap no
entry offset 192012103680, bytes 4096, bitmap no
entry offset 192117993472, bytes 4096, bitmap no
entry offset 194133356544, bytes 4096, bitmap no
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 194133360640 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 196280844288 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 198428327936 has 2147483648 bytes, 2147459072 used 0 pinned 0 reserved
entry offset 199367852032, bytes 4096, bitmap yes
entry offset 199636287488, bytes 16384, bitmap yes
entry offset 199770505216, bytes 4096, bitmap yes
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
block group 200575811584 has 2147483648 bytes, 2147483648 used 0 pinned 0 reserved
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 202723295232 has 2147483648 bytes, 2147475456 used 0 pinned 0 reserved
entry offset 203125948416, bytes 4096, bitmap yes
entry offset 203349028864, bytes 4096, bitmap no
block group has cluster?: no
0 blocks of free space at or bigger than bytes is
block group 205004996608 has 2147483648 bytes, 2147049472 used 0 pinned 0 reserved
entry offset 205676085248, bytes 389120, bitmap yes
entry offset 205756997632, bytes 4096, bitmap no
entry offset 205757087744, bytes 4096, bitmap no
entry offset 205757186048, bytes 4096, bitmap no
entry offset 205757587456, bytes 4096, bitmap no
entry offset 205757775872, bytes 4096, bitmap no
entry offset 205758218240, bytes 4096, bitmap no
entry offset 205758791680, bytes 4096, bitmap no
entry offset 205760466944, bytes 4096, bitmap no
entry offset 205760667648, bytes 4096, bitmap no
entry offset 205760897024, bytes 4096, bitmap no
entry offset 205760925696, bytes 4096, bitmap no
block group has cluster?: no
1 blocks of free space at or bigger than bytes is
INFO: task btrfs-transacti:1588 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
btrfs-transac D 0000000000000002 0 1588 2 0x00000000
ffff88007e9e7c30 0000000000000046 ffff88007e9e7c20 ffff88007e9e6000
ffff88007e9e7fd8 00000000000135c0 ffff88007e9e7fd8 ffff88007a1df920
00000000000135c0 00000000000135c0 ffff88007a1dc620 ffff88007a1df920
Call Trace:
[<ffffffff810cabe0>] ? sync_page+0x0/0x50
[<ffffffff8148e9c3>] io_schedule+0x73/0xc0
[<ffffffff810cac1d>] sync_page+0x3d/0x50
[<ffffffff8148f0f7>] __wait_on_bit+0x57/0x80
[<ffffffff810cadd3>] wait_on_page_bit+0x73/0x80
[<ffffffff81067060>] ? wake_bit_function+0x0/0x40
[<ffffffffa106af99>] btrfs_wait_marked_extents+0x139/0x170 [btrfs]
[<ffffffffa106b16f>] btrfs_write_and_wait_marked_extents+0x3f/0x60 [btrfs]
[<ffffffffa106b1bb>] btrfs_write_and_wait_transaction+0x2b/0x50 [btrfs]
[<ffffffffa106be85>] btrfs_commit_transaction+0x4b5/0x6f0 [btrfs]
[<ffffffff81067020>] ? autoremove_wake_function+0x0/0x40
[<ffffffffa1066033>] transaction_kthread+0x273/0x280 [btrfs]
[<ffffffffa1065dc0>] ? transaction_kthread+0x0/0x280 [btrfs]
[<ffffffff81066a96>] kthread+0x96/0xa0
[<ffffffff81003754>] kernel_thread_helper+0x4/0x10
[<ffffffff81066a00>] ? kthread+0x0/0xa0
[<ffffffff81003750>] ? kernel_thread_helper+0x0/0x10
btrfs: relocating block group 113594335232 flags 20
btrfs: relocating block group 120976310272 flags 20
btrfs: relocating block group 145001283584 flags 20
btrfs: relocating block group 154799177728 flags 20
btrfs: relocating block group 162315370496 flags 20
btrfs: relocating block group 113594335232 flags 20
btrfs: relocating block group 120976310272 flags 20
btrfs: relocating block group 145001283584 flags 20
btrfs: relocating block group 154799177728 flags 20
btrfs: relocating block group 162315370496 flags 20
btrfs: unable to remove the only writeable device
# btrfs filesystem df /pools/data
Metadata: total=7.88GB, used=5.99GB
Data: total=78.00GB, used=76.66GB
System: total=8.00MB, used=20.00KB
# btrfs-show
Label: none uuid: 9cb99da3-216b-46e4-bcaa-21d3d08a92be
Total devices 3 FS bytes used 82.65GB
devid 2 size 142.87GB used 46.88GB path /dev/sda2
devid 1 size 152.62GB used 39.50GB path /dev/sdb1
devid 3 size 7.49GB used 7.38GB path /dev/sdd1
Btrfs v0.19-16-g075587c
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: btrfs: unable to remove the only writeable device
2010-09-09 1:04 btrfs: unable to remove the only writeable device Roy Keene
@ 2010-12-13 14:23 ` Paul Komkoff
2010-12-14 19:24 ` Paul Komkoff
0 siblings, 1 reply; 3+ messages in thread
From: Paul Komkoff @ 2010-12-13 14:23 UTC (permalink / raw)
To: Roy Keene; +Cc: linux-btrfs
Hello.
Sorry if it's already fixed, but with 2.6.35.6-48.fc14.x86_64, when I
do btrfs device delete /dev/blabla /btrfs kernel moves everything
except 1 gigabyte off the device, but then fails to remove it, saying
"btrfs: unable to remove the only writeable device" to dmesg.
What's even more interesting, it does that with all 3 of my devices,
and I clearly have enough free space to eject one drive.
What am I doing wrong?
Thanks.
P.S. For reference - what seems to be the same bug but from september.
On Thu, Sep 9, 2010 at 2:04 AM, Roy Keene <btrfs@rkeene.org> wrote:
> All,
>
> =A0 =A0 =A0 =A0I am using BtrFS at home for testing on my /home files=
ystem. =A0I
> started out with one disk (mkfs.btrfs /dev/sdb1) and then added anoth=
er disk
> (btrfs device add /dev/sda2 /home; btrfs filesystem balance /home).
>
> I then wanted to remove my second disk, but was unable to do so, I go=
t:
> =A0 =A0 =A0 =A0btrfs: unable to go below two devices on raid1
>
> I was told by the members of the BtrFS IRC channel that this was beca=
use my
> metadata was RAID1'd.
>
> To resolve this situation, I added an 8GB flash drive (my metadata wa=
s
> 5.99GB) and attempted to remove the drive again. =A0It ran for a whil=
e (a long
> while) and eventually returned me to the prompt. =A0It did not remove=
the disk
> -- so I ran it again... and again... and again...
>
> I am to the point where "btrfs device delete <blah> /home" returns
> instantly, but has no effect. =A0The following is written to my kerne=
l message
> buffer whenever I try to remove ANY device from /home:
> =A0 =A0 =A0 =A0btrfs: unable to remove the only writeable device
>
> More information can be found in the attachement.
>
> I am still on my quest to remove a device from my BtrFS pool. =A0Does=
anyone
> have any advice ?
>
> Thanks,
> =A0 =A0 =A0 =A0Roy Keene
--=20
This message represents the official view of the voices in my head
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btrfs: unable to remove the only writeable device
2010-12-13 14:23 ` Paul Komkoff
@ 2010-12-14 19:24 ` Paul Komkoff
0 siblings, 0 replies; 3+ messages in thread
From: Paul Komkoff @ 2010-12-14 19:24 UTC (permalink / raw)
To: Roy Keene; +Cc: linux-btrfs
On Mon, Dec 13, 2010 at 2:23 PM, Paul Komkoff <i@stingr.net> wrote:
> Hello.
I'm curious... why everyone is ignoring me?
Anyway. While trying to beat btrfs into submission I managed to make
it fill my dmesg with this:
[3301790.155343] block group 6435937189888 has 1073741824 bytes,
733720576 used 0 pinned 0 reserved
[3301790.155349] entry offset 6436670910464, bytes 340021248, bitmap no
[3301790.155697] block group has cluster?: no
[3301790.155700] 0 blocks of free space at or bigger than bytes is
[3301790.155705] block group 6437010931712 has 1073741824 bytes,
366215168 used 0 pinned 0 reserved
[3301790.155710] entry offset 6437377146880, bytes 707526656, bitmap no
[3301790.156055] block group has cluster?: no
[3301790.156058] 0 blocks of free space at or bigger than bytes is
... and then, as before, fails to remove device.
--
This message represents the official view of the voices in my head
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-14 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 1:04 btrfs: unable to remove the only writeable device Roy Keene
2010-12-13 14:23 ` Paul Komkoff
2010-12-14 19:24 ` Paul Komkoff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).