View Issue Details

IDProjectCategoryView StatusLast Update
0016418CentOS-7util-linuxpublic2019-09-19 05:41
Reporterkevinzs2048@gmail.com 
PriorityimmediateSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformaarch64OScentos 7.7OS Version1910
Product Version7.7-1908 
Target VersionFixed in Version 
Summary0016418: growapart could not resize the disk. Need to bump the util-linux version to 2.26 or newer(update sfdisk)
DescriptionNow the util-linux which offer the sfdisk is:
http://mirror.0x.sg/centos-altarch/7.7.1908/os/aarch64/Packages/util-linux-2.23.2-61.el7.aarch64.rpm

But from growpart:

get_resizer() {
    local format="$1" user=${2:-"auto"}

    case "$user" in
        sgdisk) _RET="resize_sgdisk_$format"; return;;
        sfdisk) _RET="resize_sfdisk_$format"; return;;
        auto) :;;
        *) error "unexpected input: '$user'";;
    esac

    if [ "$format" = "dos" ]; then
        _RET="resize_sfdisk_dos"
        return 0
    fi

    if [ "${SFDISK_VERSION}" -ge ${SFDISK_V_WORKING_GPT} ]; then
        # sfdisk 2.26.2 works for resize but loses type (LP: #1474090)
        _RET="resize_sfdisk_gpt"
    elif has_cmd sgdisk; then
        _RET="resize_sgdisk_$format"
    else
        error "no tools available to resize disk with '$format'"
        return 1
    fi
    return 0
}

The sfdisk should have version newer than 2.26.

Induce that:
[centos@centos7 ~]$ sudo growpart /dev/vda 3
no tools available to resize disk with 'gpt'
FAILED: failed to get a resizer for id ''

So the image could not resize. Cloud-init also could not use growpart to enlarge the disk.
Additional InformationRelated bug in Fedora already bumped : https://bugzilla.redhat.com/show_bug.cgi?id=1515835
TagsNo tags attached.
abrt_hash
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-09-19 05:41 kevinzs2048@gmail.com New Issue