linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: g6094199@freenet.de
To: linux-btrfs@vger.kernel.org
Subject: Re: How to get Super_num_devices in sync with num_devices again?!
Date: Sun, 8 Oct 2017 02:06:31 +0200	[thread overview]
Message-ID: <8cae5d9b-db01-5154-1c92-86ede911db21@freenet.de> (raw)
In-Reply-To: <1bf24e337599ff54dc3d851ba3fbf913@email.freenet.de>

He Guys!

Again now in a readable from....

I have an Ubuntu 16.04 machine (K4.4 and K4.11, btrfs-progs v4.5.2) running / on btrfs raid1 and for some
month (after i had to replace a / disk) super_numdevices and num_devices are out of sync peventing me to boot
Kernels newer than around 4.7 (afaik), where the kernels began the be more restictive on checking valid btrfs
disks.


I tried to remove the raid and converted to single with several balances after that so that there are no raid
chunks left.
Label: 'System'  uuid: 35fdbfd4-5809-4a30-94c1-5e3ca206ca4d
     Total devices 1 FS bytes used 14.86GiB
     devid    6 size 50.00GiB used 17.31GiB path /dev/nvme0n1p1


Data, single: total=15.00GiB, used=13.84GiB
System, single: total=64.00MiB, used=16.00KiB
Metadata, single: total=2.25GiB, used=1.02GiB
GlobalReserve, single: total=336.00MiB, used=0.00B


/dev/nvme0n1p1, ID: 6
    Device size:            50.00GiB
    Data,single:            15.00GiB
    Metadata,single:         2.25GiB
    System,single:          64.00MiB
    Unallocated:            32.69GiB
Overall:
     Device size:          50.00GiB
     Device allocated:          17.31GiB
     Device unallocated:          32.69GiB
     Device missing:             0.00B
     Used:              14.86GiB
     Free (estimated):          33.85GiB    (min: 33.85GiB)
     Data ratio:                  1.00
     Metadata ratio:              1.00
     Global reserve:         336.00MiB    (used: 0.00B)

Data,single: Size:15.00GiB, Used:13.84GiB
    /dev/nvme0n1p1      15.00GiB

Metadata,single: Size:2.25GiB, Used:1.02GiB
    /dev/nvme0n1p1       2.25GiB

System,single: Size:64.00MiB, Used:16.00KiB
    /dev/nvme0n1p1      64.00MiB

Unallocated:
    /dev/nvme0n1p1      32.69GiB


But again newer kernels refuse to boot with tlling me: "BTRFS error.....: super_num_devices 2 missmatch
with num_devices 1 found here".
So the the two counters are alwasy off by one, dont matter what i try.


Question: how do i get thouse two counters in sync again so that my system acts again as expected?!


regards
Sash


Am 05.10.2017 um 13:38 schrieb g6094199@freenet.de:
> He Guys!I have an ubuntu 16.04 machine (K4.4 and K4.11, btrfs-progs v4.5.2) running / on btrfs raid1 and for somemonth (after i had to replace a / disk) super_numdevices and num_devices are out of sync peventing me to bootKernels newer than around 4.7 (ifaik), where the kernels began the be more restictive on checking valid btrfsdisks.I tried to remove the raid and converted to single with several balances after that so that there are no raidchunks left.Label: 'System'  uuid: 35fdbfd4-5809-4a30-94c1-5e3ca206ca4d    Total devices 1 FS bytes used 14.86GiB    devid    6 size 50.00GiB used 17.31GiB path /dev/nvme0n1p1Data, single: total=15.00GiB, used=13.84GiBSystem, single: total=64.00MiB, used=16.00KiBMetadata, single: total=2.25GiB, used=1.02GiBGlobalReserve, single: total=336.00MiB, used=0.00B/dev/nvme0n1p1, ID: 6   Device size:            50.00GiB   Data,single:            15.00GiB   Metadata,single:         2.25GiB   System,single:          6400MiB   Unallocated:            32.69GiBOverall:    Device size:          50.00GiB    Device allocated:          17.31GiB    Device unallocated:          32.69GiB    Device missing:             0.00B    Used:              1486GiB    Free (estimated):          33.85GiB    (min: 33.85GiB)    Data ratio:                  1.00    Metadata ratio:              1.00    Global reserve:         336.00MiB    (used: 0.00B)Data,single: Size:15.00GiB, Used:13.84GiB   /dev/nvme0n1p1      15.00GiBMetadata,single: Size:2.25GiB, Used:1.02GiB   /dev/nvme0n1p1       2.25GiBSystem,single: Size:64.00MiB, Used:1600KiB   /dev/nvme0n1p1      64.00MiBUnallocated:   /dev/nvme0n1p1      32.69GiBBut again newer kernels refuse to boot with tlling me: "BTRFS error....: super_num_devices 2 missmatchwith num_devices 1 found here".So the the two counters are alwasy off by one, dont matter what i try.Question: how do i get thouse two counters in sync again so that my system acts again as expected?!regardsSash




      reply	other threads:[~2017-10-08  0:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-05 11:38 How to get Super_num_devices in sync with num_devices again?! g6094199
2017-10-08  0:06 ` g6094199 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8cae5d9b-db01-5154-1c92-86ede911db21@freenet.de \
    --to=g6094199@freenet.de \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).