OCI: Extending the First Partition of the Disk Fails with Error "it cannot be grown"
in Linux
Symptoms:
Disk has been extended at OCI Console Level by referring to the document.
The new disk size is available at OS level after rescan.
[root@ ~]# dd iflag=direct if=/dev/sdb of=/dev/null count=1 [root@ ~]# echo "1" > /sys/class/block/sdb/device/rescan [root@ ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 80G 0 disk ├─sdb2 8:18 0 40G 0 part /mystuff2
└─sdb1 8:17 0 25G 0 part /mystuff1
While growing the first partition, this error message is noticed.
[root@ ~]# growpart /dev/sdb 1 NOCHANGE: disk=/dev/sdb partition=1: size=52428800, it cannot be grown
Cause:
Growing the first partition is NOT possible because there are no sectors available between first and second partition.
Tagged:
0