* [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
@ 2021-06-03 14:30 foopub
2021-06-03 19:52 ` ericonr
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: foopub @ 2021-06-03 14:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
New issue by foopub on void-packages repository
https://github.com/void-linux/void-packages/issues/31275
Description:
### System
* xuname: Void 4.19.192_1 x86_64-musl GenuineIntel uptodate rrnFF
* package: btrfs-progs-5.12.1_1
### Expected behavior
Boots normally to login shell.
### Actual behavior
`zoned: ioctl BLKGETZONESZ failed (Not a tty)`
### Steps to reproduce the behavior
Use btrfs and boot. My fstab, might be relevant
```
UUID= / btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 1
UUID= /boot/efi vfat rw,relatime 0 2
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
```
The btrfs-progs seems to have been updated from 5.9 to 5.12 yesterday. I have found no other mention of this issues even tho the btrfs-progs version was released on April 26 - this leads me to believe it's specific to the interaction between runit and btrfs-progs.
Relevant line:
https://github.com/kdave/btrfs-progs/blob/b16b0a766f06138de2ee32d4d84b7110e469ff49/kernel-shared/zoned.c#L492
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
@ 2021-06-03 19:52 ` ericonr
2021-06-03 19:52 ` ericonr
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-06-03 19:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854135168
Comment:
Does this failure at least dump you to a shell where you can fix things?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
2021-06-03 19:52 ` ericonr
@ 2021-06-03 19:52 ` ericonr
2021-06-04 17:33 ` FollieHiyuki
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-06-03 19:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854135569
Comment:
And this feels like btrfs-progs broke compatibility with older kernels, could you try using a newer kernel so we can confirm?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
2021-06-03 19:52 ` ericonr
2021-06-03 19:52 ` ericonr
@ 2021-06-04 17:33 ` FollieHiyuki
2021-06-04 17:37 ` FollieHiyuki
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: FollieHiyuki @ 2021-06-04 17:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
New comment by FollieHiyuki on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854893333
Comment:
I just installed linux4.19 to try out. I got kernel panic.
The incompatibility feature is zoned mode (introduced in v5.12):
https://btrfs.wiki.kernel.org/index.php/Zoned
As stated in the link it requires new kernel to access the file system (read/write).
And after digging the changelogs (my bad for not doing this thoroughly in the PR), the license for `libbtrfsutil` changed to LGPL v2.1+ (in 5.12) and `libmount` is added to the build dependencies (since 5.10). I probably will make a PR soon to adjust these changes.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (2 preceding siblings ...)
2021-06-04 17:33 ` FollieHiyuki
@ 2021-06-04 17:37 ` FollieHiyuki
2021-06-04 17:56 ` ericonr
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: FollieHiyuki @ 2021-06-04 17:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
New comment by FollieHiyuki on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854895820
Comment:
Oh never mind `libmount` was dropped in v5.11 :)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (3 preceding siblings ...)
2021-06-04 17:37 ` FollieHiyuki
@ 2021-06-04 17:56 ` ericonr
2021-06-04 18:16 ` FollieHiyuki
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-06-04 17:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854905288
Comment:
@FollieHiyuki right but booting with old kernels should still just work...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (4 preceding siblings ...)
2021-06-04 17:56 ` ericonr
@ 2021-06-04 18:16 ` FollieHiyuki
2021-06-04 18:20 ` foopub
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: FollieHiyuki @ 2021-06-04 18:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 468 bytes --]
New comment by FollieHiyuki on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854915945
Comment:
But how can I boot my kernel when it can't read my filesystem.
linux5.4 gets kernel panic too with trace `Unable to mount fs on unknown-block`. And linux5.4 used to work on my machine.
The INSTALL file mentions 5.10+ for assuring the feature to work though. So should we revert to btrfs-progs-5.11.1 for compability?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (5 preceding siblings ...)
2021-06-04 18:16 ` FollieHiyuki
@ 2021-06-04 18:20 ` foopub
2021-06-04 18:24 ` FollieHiyuki
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: foopub @ 2021-06-04 18:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
New comment by foopub on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854917755
Comment:
> Does this failure at least dump you to a shell where you can fix things?
Yes, everything works fine after I just Ctrl+d out of the shell without doing anything.
> And this feels like btrfs-progs broke compatibility with older kernels, could you try using a newer kernel so we can confirm?
Works find with 5.2, presumably higher versions too.
> I just installed linux4.19 to try out. I got kernel panic.
That's odd, I didn't get kernel panic.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (6 preceding siblings ...)
2021-06-04 18:20 ` foopub
@ 2021-06-04 18:24 ` FollieHiyuki
2021-06-04 18:24 ` foopub
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: FollieHiyuki @ 2021-06-04 18:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
New comment by FollieHiyuki on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854919875
Comment:
Hmm then probably it's not `btrfs-progs` that broke for me, but something else :) I simultaneously run both 5.10 and 5.11 and they run just fine though, so don't really know what the deal actually is.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (7 preceding siblings ...)
2021-06-04 18:24 ` FollieHiyuki
@ 2021-06-04 18:24 ` foopub
2021-06-04 18:38 ` FollieHiyuki
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: foopub @ 2021-06-04 18:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
New comment by foopub on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854919999
Comment:
> So should we revert to btrfs-progs-5.11.1 for compability?
I think compiling 5.12 without the zoned module would work fine too. I can also check if I get the same problem on Arch with systemd (assuming they compile it with zoned module).
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (8 preceding siblings ...)
2021-06-04 18:24 ` foopub
@ 2021-06-04 18:38 ` FollieHiyuki
2021-06-04 22:00 ` ericonr
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: FollieHiyuki @ 2021-06-04 18:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 366 bytes --]
New comment by FollieHiyuki on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-854928995
Comment:
Oops I feel dumb making bold move :)
I forgot I set `compress=zstd` in /etc/fstab, so of course linux4.19 will not work. And my dracut uses zstd too, which needs linux5.9 or later. Gotta go back to gzip and try again
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (9 preceding siblings ...)
2021-06-04 18:38 ` FollieHiyuki
@ 2021-06-04 22:00 ` ericonr
2021-06-04 22:18 ` ericonr
2021-06-04 22:31 ` [ISSUE] [CLOSED] " ericonr
12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-06-04 22:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-855025202
Comment:
Ok, this was reproducible locally.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (10 preceding siblings ...)
2021-06-04 22:00 ` ericonr
@ 2021-06-04 22:18 ` ericonr
2021-06-04 22:31 ` [ISSUE] [CLOSED] " ericonr
12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-06-04 22:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/31275#issuecomment-855041518
Comment:
Ok, I opened https://github.com/kdave/btrfs-progs/issues/376
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ISSUE] [CLOSED] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)"
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
` (11 preceding siblings ...)
2021-06-04 22:18 ` ericonr
@ 2021-06-04 22:31 ` ericonr
12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-06-04 22:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]
Closed issue by foopub on void-packages repository
https://github.com/void-linux/void-packages/issues/31275
Description:
### System
* xuname: Void 4.19.192_1 x86_64-musl GenuineIntel uptodate rrnFF
* package: btrfs-progs-5.12.1_1
### Expected behavior
Boots normally to login shell.
### Actual behavior
`zoned: ioctl BLKGETZONESZ failed (Not a tty)`
### Steps to reproduce the behavior
Use btrfs and boot. My fstab, might be relevant
```
UUID= / btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 1
UUID= /boot/efi vfat rw,relatime 0 2
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
```
The btrfs-progs seems to have been updated from 5.9 to 5.12 yesterday. I have found no other mention of this issues even tho the btrfs-progs version was released on April 26 - this leads me to believe it's specific to the interaction between runit and btrfs-progs.
Relevant line:
https://github.com/kdave/btrfs-progs/blob/b16b0a766f06138de2ee32d4d84b7110e469ff49/kernel-shared/zoned.c#L492
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2021-06-04 22:31 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 14:30 [ISSUE] Runit fails stage 1: "zoned: ioctl BLKGETZONESZ failed (Not a tty)" foopub
2021-06-03 19:52 ` ericonr
2021-06-03 19:52 ` ericonr
2021-06-04 17:33 ` FollieHiyuki
2021-06-04 17:37 ` FollieHiyuki
2021-06-04 17:56 ` ericonr
2021-06-04 18:16 ` FollieHiyuki
2021-06-04 18:20 ` foopub
2021-06-04 18:24 ` FollieHiyuki
2021-06-04 18:24 ` foopub
2021-06-04 18:38 ` FollieHiyuki
2021-06-04 22:00 ` ericonr
2021-06-04 22:18 ` ericonr
2021-06-04 22:31 ` [ISSUE] [CLOSED] " ericonr
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).