* btrfs device delete missing problem
@ 2012-05-05 1:36 Mark Murawski
2012-05-05 10:48 ` Hugo Mills
0 siblings, 1 reply; 2+ messages in thread
From: Mark Murawski @ 2012-05-05 1:36 UTC (permalink / raw)
To: linux-btrfs
Using the latest mason git (and kernel 3.3.4)
stan {~} root# btrfs filesystem show
Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa
Total devices 2 FS bytes used 7.09GB
devid 2 size 9.31GB used 9.09GB path /dev/sdd6
devid 1 size 9.31GB used 9.09GB path /dev/sdg6
Label: none uuid: b142f575-df1c-4a57-8846-a43b979e2e09
Total devices 9 FS bytes used 1.35TB
devid 8 size 1.36TB used 1.07TB path /dev/sda
devid 7 size 1.36TB used 1.07TB path /dev/sde
devid 2 size 465.76GB used 134.00GB path /dev/sdb
devid 4 size 149.05GB used 0.00 path /dev/sdc
devid 9 size 465.76GB used 161.00GB path /dev/sdf
devid 3 size 149.05GB used 0.00 path /dev/sdh
devid 5 size 920.34GB used 616.03GB path /dev/sdd7
devid 6 size 920.34GB used 616.03GB path /dev/sdg7
*** Some devices missing
stan {~} root# btrfs device delete missing /storage
May 5 05:28:40 stan kernel: btrfs: relocating block group 0 flags 2
stan {~} root#
stan {~} root# btrfs filesystem show
Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa
Total devices 2 FS bytes used 7.09GB
devid 1 size 9.31GB used 9.09GB path /dev/sdg6
devid 2 size 9.31GB used 9.09GB path /dev/sdd6
Label: none uuid: b142f575-df1c-4a57-8846-a43b979e2e09
Total devices 9 FS bytes used 1.35TB
devid 3 size 149.05GB used 0.00 path /dev/sdh
devid 6 size 920.34GB used 616.03GB path /dev/sdg7
devid 9 size 465.76GB used 161.00GB path /dev/sdf
devid 7 size 1.36TB used 1.07TB path /dev/sde
devid 5 size 920.34GB used 616.03GB path /dev/sdd7
devid 4 size 149.05GB used 0.00 path /dev/sdc
devid 2 size 465.76GB used 134.00GB path /dev/sdb
devid 8 size 1.36TB used 1.07TB path /dev/sda
*** Some devices missing
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: btrfs device delete missing problem
2012-05-05 1:36 btrfs device delete missing problem Mark Murawski
@ 2012-05-05 10:48 ` Hugo Mills
0 siblings, 0 replies; 2+ messages in thread
From: Hugo Mills @ 2012-05-05 10:48 UTC (permalink / raw)
To: Mark Murawski; +Cc: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 2642 bytes --]
On Fri, May 04, 2012 at 09:36:22PM -0400, Mark Murawski wrote:
> Using the latest mason git (and kernel 3.3.4)
>
> stan {~} root# btrfs filesystem show
> Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa
> Total devices 2 FS bytes used 7.09GB
> devid 2 size 9.31GB used 9.09GB path /dev/sdd6
> devid 1 size 9.31GB used 9.09GB path /dev/sdg6
>
> Label: none uuid: b142f575-df1c-4a57-8846-a43b979e2e09
> Total devices 9 FS bytes used 1.35TB
> devid 8 size 1.36TB used 1.07TB path /dev/sda
> devid 7 size 1.36TB used 1.07TB path /dev/sde
> devid 2 size 465.76GB used 134.00GB path /dev/sdb
> devid 4 size 149.05GB used 0.00 path /dev/sdc
> devid 9 size 465.76GB used 161.00GB path /dev/sdf
> devid 3 size 149.05GB used 0.00 path /dev/sdh
> devid 5 size 920.34GB used 616.03GB path /dev/sdd7
> devid 6 size 920.34GB used 616.03GB path /dev/sdg7
> *** Some devices missing
>
> stan {~} root# btrfs device delete missing /storage
> May 5 05:28:40 stan kernel: btrfs: relocating block group 0 flags 2
> stan {~} root#
sync here, or btrfs fi sync /storage, or wait at least 30 seconds
for everything to be written out to disk.
> stan {~} root# btrfs filesystem show
> Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa
> Total devices 2 FS bytes used 7.09GB
> devid 1 size 9.31GB used 9.09GB path /dev/sdg6
> devid 2 size 9.31GB used 9.09GB path /dev/sdd6
>
> Label: none uuid: b142f575-df1c-4a57-8846-a43b979e2e09
> Total devices 9 FS bytes used 1.35TB
> devid 3 size 149.05GB used 0.00 path /dev/sdh
> devid 6 size 920.34GB used 616.03GB path /dev/sdg7
> devid 9 size 465.76GB used 161.00GB path /dev/sdf
> devid 7 size 1.36TB used 1.07TB path /dev/sde
> devid 5 size 920.34GB used 616.03GB path /dev/sdd7
> devid 4 size 149.05GB used 0.00 path /dev/sdc
> devid 2 size 465.76GB used 134.00GB path /dev/sdb
> devid 8 size 1.36TB used 1.07TB path /dev/sda
> *** Some devices missing
btrfs fi show doesn't go through the kernel to get its information
-- it simply reads the data on the disks directly. This means that if
the kernel hasn't flushed changes to disk, btrfs fi show will be out
of date, as you've got here.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- The English language has the mot juste for every occasion. ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-05 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-05 1:36 btrfs device delete missing problem Mark Murawski
2012-05-05 10:48 ` Hugo Mills
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).