I have an AlmaLinux 9 VM which was a single drive of 2TB and the root drive is LVM. I want to be able to expand the drive to 3TB but I am stuck at 2TB since this is an MBR / Legacy BIOS set up.
My current disk is partitioned as such.
I have converted the disk to GPT using a system rescue CD & sgdisk which removed the extended partition 4 and just made partition 5 a regular partition. I shrank the swap partition so I would have enough room to make an ESP partition. I remade grub and add an EFI disk in proxmox and change the BIOS to UEFI but the system will not boot.
Can anyone provide advice or instructions on how to do this? I've been going round in circles trying to get this to work but just stuck. Google and Chatgpt have not been able to get me over the finish line.
Any advice or examples would be much appreciated!
My current disk is partitioned as such.
Code:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 3T 0 disk
├─sda1
│ 8:1 0 1G 0 part /boot
├─sda2
│ 8:2 0 3.9G 0 part [SWAP]
├─sda3
│ 8:3 0 2G 0 part /tmp
│ /tmp
├─sda4
│ 8:4 0 1K 0 part
└─sda5
8:5 0 2T 0 part
└─almalinux-root
parted /dev/sda p
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 3299GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1075MB 1074MB primary ext4 boot
2 1075MB 5315MB 4240MB primary linux-swap(v1) swap
3 5315MB 7463MB 2147MB primary ext4
4 7463MB 2199GB 2192GB extended lba
5 7464MB 2199GB 2192GB logical lvm
/etc/fstab
/dev/mapper/almalinux-root / ext4 usrjquota=quota.user,jqfmt=vfsv1 1 1
UUID=503cebd2-4dc0-49ce-846d-4f35ef946088 /boot ext4 defaults 1 2
UUID=baabbcc5-50bd-49d1-a8f3-eb363ac348ef /tmp ext4 defaults,noexec,nosuid,nodev,noatime 1 2
UUID=b0d64dcd-f8a9-4e48-ad0a-7c3ac3750a25 none swap defaults 0 0
I have converted the disk to GPT using a system rescue CD & sgdisk which removed the extended partition 4 and just made partition 5 a regular partition. I shrank the swap partition so I would have enough room to make an ESP partition. I remade grub and add an EFI disk in proxmox and change the BIOS to UEFI but the system will not boot.
Can anyone provide advice or instructions on how to do this? I've been going round in circles trying to get this to work but just stuck. Google and Chatgpt have not been able to get me over the finish line.
Any advice or examples would be much appreciated!