View Issue Details

IDProjectCategoryView StatusLast Update
0017091CentOS-8cloud-utils-growpartpublic2020-06-13 23:50
Reporterraiden 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.1.1911 
Target VersionFixed in Version 
Summary0017091: growpart cannot resize partitions higher than 2TB
DescriptionIt seems the version of growpart that's included in Centos 8.1 [cloud-utils-growpart-0.29-3.el8.noarch] cannot resize a partition greater than 2TB. [Have a 5TB HD]

Example:
growpart -v /dev/nvme0n1 3

update-partition set to true
resizing 3 on /dev/nvme0n1 using resize_sfdisk_gpt
10485760000 sectors of 512. total size=5368709120000 bytes
WARN: disk is larger than 2TB. additional space will go unused.
## sfdisk --unit=S --dump /dev/nvme0n1
label: gpt
label-id: 2E9E946A-E34E-4452-8DF8-3E02557BE5A3
device: /dev/nvme0n1
unit: sectors
first-lba: 34
last-lba: 10485759966

/dev/nvme0n1p1 : start= 2048, size= 2048, type=21686148-6449-6E6F-744E-656564454649, uuid=44209A52-B1A6-4466-98C4-CC7FB56E4D3C
/dev/nvme0n1p2 : start= 4096, size= 1433600, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=8FC6C0AD-682C-4212-B2B9-E4E63E7AFA96
/dev/nvme0n1p3 : start= 1437696, size= 4293529600, type=E6D6D379-F507-44C2-A23C-238F2A3DF928, uuid=E6ABBAC4-0757-4E98-8D1B-E65E4448FE05
max_end=4294967296 tot=10485760000 pt_end=4294967296 pt_start=1437696 pt_size=4293529600
NOCHANGE: partition 3 is size 4293529600. it cannot be grown

However, when I apply the patch from cloud-utils to fix the 2TB issue [ https://git.launchpad.net/cloud-utils/commit/?id=e01bedec947f105924203c7874c36f0694b214b3 ], it seems to fix the issue.

growpart -v /dev/nvme0n1 3

update-partition set to true
resizing 3 on /dev/nvme0n1 using resize_sfdisk_gpt
10485760000 sectors of 512. total size=5368709120000 bytes
## sfdisk --unit=S --dump /dev/nvme0n1
label: gpt
label-id: 2E9E946A-E34E-4452-8DF8-3E02557BE5A3
device: /dev/nvme0n1
unit: sectors
first-lba: 34
last-lba: 10485759966

/dev/nvme0n1p1 : start= 2048, size= 2048, type=21686148-6449-6E6F-744E-656564454649, uuid=44209A52-B1A6-4466-98C4-CC7FB56E4D3C
/dev/nvme0n1p2 : start= 4096, size= 1433600, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=8FC6C0AD-682C-4212-B2B9-E4E63E7AFA96
/dev/nvme0n1p3 : start= 1437696, size= 4293529600, type=E6D6D379-F507-44C2-A23C-238F2A3DF928, uuid=E6ABBAC4-0757-4E98-8D1B-E65E4448FE05
padding 33 sectors for gpt secondary header
max_end=10485759967 tot=10485760000 pt_end=4294967296 pt_start=1437696 pt_size=4293529600
CHANGED: partition=3 start=1437696 old: size=4293529600 end=4294967296 new: size=10484322271,end=10485759967


Can we get this parted merged?
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-02-27 17:23 raiden New Issue