Recently I ordered a Hetzner server for one of our clients. The server had two 3TB disks. Hetzner provides a command line installation of the desired OS once we login to their server. As such, I logged in to the server and installed Centos6 by executing “installimage” option as suggested by Hetzner.
After installing OS and rebooting the server, I noticed that the 3T disk is not showing full space.
If the disk size is greater than 2T you cannot use normal fdisk to create partition. Instead you should use parted. However, with Hetzner, the installation was all automated so there was no way to make changes.
[root@slave1 ~]# parted –list
Model: ATA ST33000650NS (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
I noticed that the partition table was msdos, and would need to change it to GPT if I need to use the disk space fully.
With Hetzner, to get this working, I added the following line to the custom installation setup just before where the partitions were mentioned. Make sure to add the line in bold before the partitions.
After that when the OS was installed, it showed full usage of the disk.