grub-probe fail when fs is larger than 2tb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
don't really know if this is a resize2fs problem or a grub problem.
But we discovered it when trying to cloud-init bootstrap a node with larger than 2 TB disk.
Create a virtual or a physical node with more than 2TB disk.
install ubuntu cloud image on disk.
boot and let cloud init run it's course, after that grub2 os-probe will fail with this error message:
grub-probe: error: unknown filesystem.
Have tested this in both trusty and xenial
Update, adding parted info
# parted -l
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 2255GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 33.6MB 32.5MB grub bios_grub
2 33.6MB 8590MB 8556MB linux-swap(v1) swap
3 8590MB 2255GB 2246GB ext4 cloudimg-rootfs boot, esp
description: | updated |
summary: |
- grub-probe when fs is larger than 2tb + grub-probe fail when fs is larger than 2tb |
here is the manual reproduction
root@ubuntu:~# /etc/kernel/ postinst. d/zz-update- grub 4.4.0-64-generic /boot/vmlinuz- 4.4.0-64- generic 4.4.0-64- generic img-4.4. 0-64-generic 4.4.0-62- generic img-4.4. 0-62-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
done
root@ubuntu:~# df -m /
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/vda3 1777 1510 154 91% /
root@ubuntu:~# resize2fs /dev/vda3
resize2fs 1.42.13 (17-May-2015)
Filesystem at /dev/vda3 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 131
The filesystem on /dev/vda3 is now 548404992 (4k) blocks long.
root@ubuntu:~# df -m /
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/vda3 2013606 1507 1926382 1% /
root@ubuntu:~# /etc/kernel/ postinst. d/zz-update- grub 4.4.0-64-generic /boot/vmlinuz- 4.4.0-64- generic
Generating grub configuration file ...
grub-probe: error: unknown filesystem.