All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Le Moal <Damien.LeMoal@wdc.com>
To: Aleksey Utkin <aleksey.utkin@gmail.com>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Cc: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>,
	Naohiro Aota <Naohiro.Aota@wdc.com>
Subject: Re: Cannot mount hm-smr drive with btrfs
Date: Mon, 9 Aug 2021 09:35:03 +0000	[thread overview]
Message-ID: <DM6PR04MB7081A5B19ABF2F8A5C2E4D8CE7F69@DM6PR04MB7081.namprd04.prod.outlook.com> (raw)
In-Reply-To: 66714993-3927-8fc7-585b-398b8e4dc655@gmail.com

On 2021/07/30 22:31, Aleksey Utkin wrote:
> Hello.
> 
> 
> I had a problem with the mounting of the BTRFS file system.
> 
> Test case description:
> 
> 1. Operation: Creating btrfs: sudo mkfs.btrfs -O zoned -d single -m 
> single -f /dev/sdb
> Result: The file system was created successfully
> 
> 2. Operation: Mount new btrfs: sudo mount /dev/sdb /mnt/sdb
> Result: Mounted successfully
> 
> 3. Operation: Filling a file system data system (copy using MC)
> Result: Filling a file system data has passed successfully, the data has 
> passed integrity control
> 
> 4. Operation: Umount file system: sudo umount /mnt/sdb/
> Result: Umounted successfully
> 
> 5. Operation: Mount btrfs: sudo mount /dev/sdb /mnt/sdb
> Result: Mounted successfully
> 
> 6. Operation: rebooted the host with mounted file system BTRFS
> Result: Reboot successfully
> 
> 7. Operation: Checking the btrfs file system: sudo btrfs check /dev/sdb
> Result: successfully, console output:
> Opening filesystem to check...
> Checking filesystem on /dev/sdb
> UUID: 4312bf2a-376d-4a44-a69a-6bb112b124f6
> [1/7] checking root items
> [2/7] checking extents
> [3/7] checking free space cache
> [4/7] checking fs roots
> [5/7] checking only csums items (without verifying data)
> [6/7] checking root refs
> [7/7] checking quota groups skipped (not enabled on this FS)
> found 17978056441856 bytes used, no error found
> total csum bytes: 17534343280
> total tree bytes: 22888923136
> total fs tree bytes: 2191491072
> total extent tree bytes: 2166554624
> btree space waste bytes: 990047274
> file data blocks allocated: 17955167518720
>   referenced 17955167518720
> 
> 8. Operation: Attempt to mount 1: sudo mount /dev/sdb /mnt/sdb
> Result: Mounted unsuccessful,
> Console output: mount: /mnt/sdb: wrong fs type, bad option, bad 
> superblock on /dev/sdb, missing codepage or helper program, or other error.
> 
> 9. Operation: Attempt to mount 2: sudo mount -t btrfs /dev/sdb /mnt/sdb
> Result: unsuccessful, no messages, the HDD activity LED is glow, the 
> console frozen, ^C does not interrupt the mount operation, the sudo 
> reboot is not performed, the restart of Alt+PRTSCR+B is performed.
> 
> Version of the kernel:
> $ uname -a
> Linux x79zd3 5.14.0-051400rc2-generic #202107182230 SMP Sun Jul 18 
> 22:34:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> 
> $ btrfs --version
> btrfs-progs v5.13
> from https://github.com/kdave/btrfs-progs

Did you also install the latest libblkid from util-linux tree ? There are
modifications to it for zoned btrfs to find the super block. These modifications
are not yet in any tagged version of libblkid but they are in the master branch
of the util-linux tree upstream.

> 
> $ btrfs fi show
> nothing output
> 
> $ btrfs fi df /mnt/sdb
> ERROR: not a btrfs filesystem: /mnt/sdb
> 
> Device:
> $ sudo smartctl -i /dev/sdb
> smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.14.0-051400rc2-generic] 
> (local build)
> Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
> 
> === START OF INFORMATION SECTION ===
> Device Model:     ST18000NM009J-2UW101
> Serial Number:    ZL2BH53L
> LU WWN Device Id: 5 000c50 0c812bf64
> Firmware Version: SE01
> User Capacity:    18 000 207 937 536 bytes [18,0 TB]
> Sector Sizes:     512 bytes logical, 4096 bytes physical
> Rotation Rate:    7200 rpm
> Form Factor:      3.5 inches
> Device is:        Not in smartctl database [for details use: -P showall]
> ATA Version is:   ACS-4 (minor revision not indicated)
> SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 3.0 Gb/s)
> Local Time is:    Fri Jul 30 14:47:33 2021 MSK
> SMART support is: Available - device has SMART capability.
> SMART support is: Enabled
> 
> # nc cwillu.com 10101 < /dev/kmsg
> after operations 6,7,8,9 - http://cwillu.com:8080/128.0.141.47/2
> 
> $ sudo dmesg | nc termbin.com 9999
> https://termbin.com/6g54
> 
> 
> Best regards,
> Aleksey Utkin
> 
> 
> 
> 


-- 
Damien Le Moal
Western Digital Research

  reply	other threads:[~2021-08-09  9:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 13:30 Cannot mount hm-smr drive with btrfs Aleksey Utkin
2021-08-09  9:35 ` Damien Le Moal [this message]
2021-08-09  9:54 ` Johannes Thumshirn
  -- strict thread matches above, loose matches on Subject: below --
2021-07-30 13:19 Aleksey Utkin

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=DM6PR04MB7081A5B19ABF2F8A5C2E4D8CE7F69@DM6PR04MB7081.namprd04.prod.outlook.com \
    --to=damien.lemoal@wdc.com \
    --cc=Johannes.Thumshirn@wdc.com \
    --cc=Naohiro.Aota@wdc.com \
    --cc=aleksey.utkin@gmail.com \
    --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.