All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jingyun He <jingyun.ho@gmail.com>
To: dsterba@suse.cz, Jingyun He <jingyun.ho@gmail.com>,
	linux-btrfs@vger.kernel.org
Subject: Re: unable to run mkfs.btrfs for host managed sata hdd
Date: Fri, 29 Oct 2021 21:52:34 +0800	[thread overview]
Message-ID: <CAHQ7scV9i_s3gEXXki_U+RmqWLHu-DMWF_kzXFWKgOtqBQhvhA@mail.gmail.com> (raw)
In-Reply-To: <20211029132232.GA20319@twin.jikos.cz>

Hi,
Thanks for your reply,
I run these commands under root account.

After debugging this furthermore,

The issue looks like LSI 2308 doesn't report it as a host managed device.

If I connect it to the onboard SATA port, everything is working fine.

I'm not sure if there is any method to run mkfs.btrfs forcely, as even
LSI 2308 didn't report it as a host managed device, but it can pass
most of the libzbc tests.

On Fri, Oct 29, 2021 at 9:23 PM David Sterba <dsterba@suse.cz> wrote:
>
> On Fri, Oct 29, 2021 at 08:48:45PM +0800, Jingyun He wrote:
> > Hello, all
> > I have a LSI 2308 HBA in IT mode, and attached a sata host managed disk.
> > And run mkfs.btrfs /dev/sdb -O zoned -d single -m single -f
> > get following errors:
> > btrfs-progs v5.13.1
> > ERROR: superblock magic doesn't match
> > Resetting device zones /dev/sdb (67056 zones) ...
> > ERROR: error during mkfs: Operation not permitted
>
> Can you also reset the zones by 'blkzone reset' under the same user
> account that also runs the 'mkfs.btrfs' command?

  reply	other threads:[~2021-10-29 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 12:48 unable to run mkfs.btrfs for host managed sata hdd Jingyun He
2021-10-29 13:22 ` David Sterba
2021-10-29 13:52   ` Jingyun He [this message]
2021-10-29 14:21     ` David Sterba

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=CAHQ7scV9i_s3gEXXki_U+RmqWLHu-DMWF_kzXFWKgOtqBQhvhA@mail.gmail.com \
    --to=jingyun.ho@gmail.com \
    --cc=dsterba@suse.cz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.