[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Will this in-place conversion from LEGACY/MBR RAID1 boot to GPT/EFI boot work



Hi,

  I have an old machine that I installed with MBR/legacy BIOS/RAID1 on two intel nvme 2TB SSDs. Luckily, RAID1 is on a partition and this the whole SSD still has room for GPT conversion.  Here is the MBR partition table (both SDDs are identical)

   Disk /dev/nvme0n1: 1.86 TiB, 2048408248320 bytes, 4000797360 sectors

   Device         Boot    Start        End    Sectors  Size Id Type
   /dev/nvme0n1p1          2048   67110911   67108864   32G 83 Linux
   /dev/nvme0n1p2      67110912 4000797359 3933686448  1.8T 83 Linux

RAID1 is on the second partition and first partition is free/empty. RAID1 is further divided in to partitions as part of debian install.

I need to upgrade my hardware and legacy boot is not supported anymore in most systems. So, need to convert to EFI boot. Since I have RAID1, I want to try it in place. Here are the steps I planned.

1. Find the BIOS boot disk and do not touch it (let us assume this is
   the the first SSD)
2. Fail and remove the second SSD in RAID1 and convert to GPT
    1. Delete all existing partitions
    2. Add EFI and BIOS boot partitions and the RAID1 partition of
       identical size. Keep the unused blocks in a partition as before.
3. Add back the new GPT partition to RAID1 and wait for sync
4. Once RAID1 is ready, convert boot to EFI boot on the second drive
   and reboot to check.
5. Once EFI boot is working, remove/fail  *first* BIOS boot SSD from
   RAID1 and convert to GPT and add back.

Is this a workable plan or am I missing anything?

Regards
Ramesh


Reply to: