[Bug 1981769] Re: blkid fails to find btrfs zoned filesystem label or uuid
Mauricio Faria de Oliveira
1981769 at bugs.launchpad.net
Wed Jul 12 12:15:42 UTC 2023
The problem does not seem to be in util-linux, as it works correctly
with a loop device.
Can you confirm whether you have /dev/disk/by-label/ symlinks for the
new filesystem?
$ lsb_release -cs
jammy
$ truncate -s 15T disk.img
$ DEV=$(sudo losetup --find --show disk.img)
$ sudo mkfs.btrfs -O zoned -d single -m single -f $DEV -L cf1657839355
btrfs-progs v5.16.2
See http://btrfs.wiki.kernel.org for more information.
NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)
Label: cf1657839355
UUID: 381ff1f0-714a-411e-95c5-0fbd67979da5
Node size: 16384
Sector size: 4096
Filesystem size: 15.00TiB
Block group profiles:
Data: single 256.00MiB
Metadata: single 256.00MiB
System: single 256.00MiB
SSD detected: no
Zoned device: yes
Zone size: 256.00MiB
Incompat features: extref, skinny-metadata, no-holes, zoned
Runtime features: free-space-tree
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 15.00TiB /dev/loop5
$ sudo blkid | grep $DEV
/dev/loop5: LABEL="cf1657839355" UUID="381ff1f0-714a-411e-95c5-0fbd67979da5" UUID_SUB="0c2c7073-6ee7-4d42-aefe-834cb0a7f1b2" BLOCK_SIZE="4096" TYPE="btrfs"
$ sudo mount LABEL=cf1657839355 /mnt
$ mount | grep /mnt
/dev/loop5 on /mnt type btrfs (rw,relatime,discard=async,space_cache=v2,subvolid=5,subvol=/)
$ ls -l /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 11 Jul 12 12:03 UEFI -> ../../sda15
lrwxrwxrwx 1 root root 11 Jul 12 12:11 cf1657839355 -> ../../loop5
lrwxrwxrwx 1 root root 10 Jul 12 12:03 cloudimg-rootfs -> ../../sda1
** Changed in: util-linux (Ubuntu)
Status: New => Incomplete
** Changed in: util-linux (Ubuntu)
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1981769
Title:
blkid fails to find btrfs zoned filesystem label or uuid
Status in util-linux package in Ubuntu:
Invalid
Bug description:
System Info:
lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
1. Using an HM SMR drive (I used: ST14000NM0007-2G) create a zoned btrfs filesystem
sudo mkfs.btrfs -O zoned -d single -m single -f /dev/sdb -L cf1657839355
btrfs-progs v5.16.2
See http://btrfs.wiki.kernel.org for more information.
Resetting device zones /dev/sdb (52156 zones) ...
NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)
Label: cf1657839355
UUID: 5b7d5659-0ed3-45d3-a36b-fb58eeb93f72
Node size: 16384
Sector size: 4096
Filesystem size: 12.73TiB
Block group profiles:
Data: single 256.00MiB
Metadata: single 256.00MiB
System: single 256.00MiB
SSD detected: no
Zoned device: yes
Zone size: 256.00MiB
Incompat features: extref, skinny-metadata, no-holes, zoned
Runtime features: free-space-tree
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 12.73TiB /dev/sdb
2. Try to use LABEL method to mount
sudo mount LABEL=cf1657839355 cf1657839355
mount: cf1657839355: can't find LABEL=cf1657839355.
Expected that LABEL would be found. I suspect that libblkid is where
the issue is since this commands returns all of my other block devices
except for /dev/sdb.
sudo blkid|grep sdb
It will mount using hard coded device path
sudo mount /dev/sdb cf1657839355
df -h /dev/sdb
Filesystem Size Used Avail Use% Mounted on
/dev/sdb 13T 3.5M 13T 1% /cf1657839355
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2021-05-20 (421 days ago)
InstallationMedia: Ubuntu-Server 20.10 "Groovy Gorilla" - Release amd64 (20201022)
Package: util-linux 2.37.2-4ubuntu3
PackageArchitecture: amd64
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.15.0-41.44-generic 5.15.39
Tags: jammy uec-images
Uname: Linux 5.15.0-41-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-07-14 (1 days ago)
UserGroups: N/A
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1981769/+subscriptions
More information about the foundations-bugs
mailing list