Skip to content

Template photon-5-kube-v1.34.0 cannot be resized, because xfs_growfs is missing #1905

@sathieu

Description

@sathieu

(initially reported in kubernetes-sigs/cluster-api-provider-vsphere#3734)

What steps did you take and what happened:

  • deploy using photon-5-kube-v1.34.0.ova (from here) using cluster-apri-provider-vsphere
  • image works but root partition / is still at 20G and not resized to expected partition

NB: we already use cloneMode: fullClone

What did you expect to happen:

root partition is resized

Anything else you would like to add:

How to reproduce:

  • Upload photon-5-kube-v1.34.0.ova, and convert as template

  • Create a VM manually from the template

  • boot as root (press "e" during boot, append init=/bin/sh to linux command line, and press F10)

  • run resize2fs /dev/sda3, you'll get:

    resize2fs: Bad magic number is super-block while trying to open /dev/sda3
    Couln't find a valid filesystm superblock.
    
  • the reason? partition is xfs!

  • the problem? xfs_growfs binary is not installed, so the filesystem cannot be expanded

Environment:

  • Cluster-api-provider-vsphere version: N/A (image v1.34.0)
  • Kubernetes version: (use kubectl version): v1.34.0
  • OS (e.g. from /etc/os-release): photon 5

/kind bug

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions