I have a CentOS server on VMware that has, among others, a disk of 1.5TB, with a single xfs partition using the whole disk. This disk/partition is running out of space, so I need to increase its size to 2.5TB.
So I increased the size on VMware and tried to delete and add the partition, which failed. Of course, the original partition is MBR and the new one must be GPT, but when trying to remove/add the partition, the conversion fails. I've found the original partition is at sector 128 and the new one tries to start at sector 2048, which I tried to modify, but I couldn't (I guess because GPT needs more space than MBR?).
Then I come with the idea of moving the original partition so it starts at sector 2048, convert the partition to GPT, then increase the size of the partition.
Does it make sense? Is that possible? Specially the first part of moving the partition. Thanks!
For formatting reasons, here's the output of the suggested command:
parted /dev/disk unit s print free
Disk /dev/sdb: 5368709120s Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Numero Inicio Fin Tamaño Typo Sistema de ficheros Banderas 63s 127s 65s Free Space 1 128s 3259013119s 3259012992s primary xfs 3259013120s 5368709119s 2109696000s Free Space