[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2024-02-02 Thread Krister Johansen
lock to Direct I/O solves the issue. [Testcase] Start an c5.large instance on AWS, and attach a 60gb gp3 volume for use as a scratch disk. Run the following script, courtesy of Krister Johansen and his team:    #!/usr/bin/bash    set -euxo pipefail    while true    do    par

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2024-02-26 Thread Krister Johansen
lock to Direct I/O solves the issue. [Testcase] Start an c5.large instance on AWS, and attach a 60gb gp3 volume for use as a scratch disk. Run the following script, courtesy of Krister Johansen and his team:    #!/usr/bin/bash    set -euxo pipefail    while true    do    par

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2024-04-25 Thread Krister Johansen
oes not match superblock while trying to open /dev/nvme1n1p1 Couldn't find valid filesystem superblock. Changing the read of the superblock to Direct I/O solves the issue. [Testcase] Start an c5.large instance on AWS, and attach a 60gb gp3 volume for use as a scratch disk. Run the

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2024-08-29 Thread Krister Johansen
hile trying to open /dev/nvme1n1p1 Couldn't find valid filesystem superblock. Changing the read of the superblock to Direct I/O solves the issue. [Testcase] Start an c5.large instance on AWS, and attach a 60gb gp3 volume for use as a scratch disk. Run the following script, c

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2023-11-16 Thread Krister Johansen
the following script, courtesy of Krister Johansen and his team:    #!/usr/bin/bash    set -euxo pipefail    while true    do    parted /dev/nvme1n1 mklabel gpt mkpart primary 2048s 2099200s    sleep .5    mkfs.ext4 /dev/nvme1n1p1    mount -t ext4

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2023-12-18 Thread Krister Johansen
trying to open /dev/nvme1n1p1 Couldn't find valid filesystem superblock. Changing the read of the superblock to Direct I/O solves the issue. [Testcase] Start an c5.large instance on AWS, and attach a 60gb gp3 volume for use as a scratch disk. Run the following script, courtesy

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2024-01-11 Thread Krister Johansen
/dev/nvme1n1p1 Couldn't find valid filesystem superblock. Changing the read of the superblock to Direct I/O solves the issue. [Testcase] Start an c5.large instance on AWS, and attach a 60gb gp3 volume for use as a scratch disk. Run the following script, courtesy of Krister Joha

[Touch-packages] [Bug 2036467] [NEW] superblock checksum mismatch in resize2fs

2023-09-18 Thread Krister Johansen
Public bug reported: Hi, We run ext4 on EBS volumes on EC2. During provisioning, cloud-init will occasionally report that resize2fs has failed due to a superblock checksum mismatch. We debugged this internally, and were able to come up with the following reproducer: #!/usr/bin/bash set

[Touch-packages] [Bug 2036467] Re: superblock checksum mismatch in resize2fs

2023-10-06 Thread Krister Johansen
Thanks for all the responses. I'm not sure how quickly I'll be able to get to this either, so I'm hesitant to commit to fixing myself. That said, if I can get time to send patches before your team gets to fixing it, I'll do my best. To answer the question about how frequently we see this: it was

[Touch-packages] [Bug 2036467] Re: Resizing cloud-images occasionally fails due to superblock checksum mismatch in resize2fs

2024-10-21 Thread Krister Johansen
following script, courtesy of Krister Johansen and his team:    #!/usr/bin/bash    set -euxo pipefail    while true    do    parted /dev/nvme1n1 mklabel gpt mkpart primary 2048s 2099200s    sleep .5    mkfs.ext4 /dev/nvme1n1p1    mount -t ext4 /dev/nvme1n1

[Touch-packages] [Bug 2090972] [NEW] /boot intermittently fails to mount on boot

2024-12-03 Thread Krister Johansen
Public bug reported: Starting on Noble, we see /boot fail to mount in approximately one out of every two thousand boots. The error looks like this: Found device dev-disk-by\x2dlabel-BOOT.device - QEMU NVMe Ctrl BOOT. Starting systemd-fsck@dev-disk-by… Check on /dev/disk/by-label/BOOT...

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-05 Thread Krister Johansen
orrupted and not containing a valid filesystem, which would cause boot to fail, and would have a large impact to users. [Other Info] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've alread

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2025-01-06 Thread Krister Johansen
ar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've already sent a patch upstream and gotten it accepted there: commit 483c9f38e377ff0b009f546a2c4ee91a1d61588c From: Krister Johansen Date: Mon, 18 Nov 2024 12:35:22 -0800 Subject: libblkid: fix spurious ext superblock checksum mismatche

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-10 Thread Krister Johansen
e boot to fail, and would have a large impact to users. [Other Info] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've already sent a patch upstream and gotten it accepted there: commit 483c9

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-16 Thread Krister Johansen
pted and not containing a valid filesystem, which would cause boot to fail, and would have a large impact to users. [Other Info] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've already sent a p

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-16 Thread Krister Johansen
clared corrupted and not containing a valid filesystem, which would cause boot to fail, and would have a large impact to users. [Other Info] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've al

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-17 Thread Krister Johansen
o] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've already sent a patch upstream and gotten it accepted there: commit 483c9f38e377ff0b009f546a2c4ee91a1d61588c From: Krister

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-20 Thread Krister Johansen
s. [Other Info] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've already sent a patch upstream and gotten it accepted there: commit 483c9f38e377ff0b009f546a2c4ee91a1d61588c From: Krister Jo

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2024-12-20 Thread Krister Johansen
use the disk to be declared corrupted and not containing a valid filesystem, which would cause boot to fail, and would have a large impact to users. [Other Info] Fortunately, the fix here is straight-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superbloc

[Touch-packages] [Bug 2090972] Re: /boot intermittently fails to mount on boot

2025-01-15 Thread Krister Johansen
ght-forward and is similar to what we did for resize2fs: use O_DIRECT when reading the superblock. We've already sent a patch upstream and gotten it accepted there: commit 483c9f38e377ff0b009f546a2c4ee91a1d61588c From: Krister Johansen Date: Mo