I’m using MAAS (2.4.2) to install CentOS some server in a very remote location and I face a tricky problem. All machine have an HW raid of 12TB capacity. So I aim to a GPT partition table.
When I deploy the OS, the disk got formatted with a DOS label, so 10TB over 12TB are wasted. I found a related questions here and here, but all solutions described there did not work for me. Either I got a DOS label or I get a non booting system. I’m aware of curtin customization, but even early commands come too late.
I tried to modify the php relevant code inside MAAS (models/partitiontable.py) to always use GPT, but again I get is only a DOS label.
I found nowhere a log of the switch from GPT to DOS label.
After the commit I dumped the internal MAS database (as suggested in the answer above, but data structure has changed). And I get (other server record suppressed):
> id | created | updated | table_type |
> ----+-------------------------------+-------------------------------+------------+
> 27 | 2020-03-21 15:14:38.370525+00 | 2020-03-21 15:14:38.370525+00 | GPT |
If I launch the recovery image I get:
ubuntu@pssproto13:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 10.9 TiB, 11999998115840 bytes, 23437496320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0310cd8b
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 4294967262 4294965215 2T 83 Linux
The commit log reads (only an excerpt):
"NAME": "sda",
"MODEL": "ServeRAID M1215",
"PATH": "/dev/sda",
"FIRMWARE_VERSION": "4.62",
"SERIAL": "600605b00cdc3b30206fb2250d5cb54e",
"ID_PATH": "/dev/disk/by-id/wwn-0x600605b00cdc3b30206fb2250d5cb54e",
"SIZE": "11999998115840",
"BLOCK_SIZE": "4096"
And again I get a DOS partition table.
The servers (Lenovo servers with IMMI2 management) are set up to boot in UEFI mode:
BootModes.OptimizedBoot=Enabled
BootModes.QuietBoot=Enabled
BootModes.SystemBootMode="UEFI Mode"
Any ideas on how I can recover the unavailable disk space? Thank in advance for your suggestions.