Proxmox ZFS mirror install with one disk initially?

Discussion in 'Proxmox VE: Installation and configuration' started by cfnz, Apr 22, 2019.

  1. cfnz

    cfnz New Member

    Joined:
    Feb 12, 2019
    Messages:
    7
    Likes Received:
    0
    Hi,

    I am trying to build a Proxmox server install running ZFS using one disk initially, then add another disk later (why? - I will be breaking another mirror and using one of its disk to start the Proxmox install, then, once all good, will use the second disk to build the mirror (I don't have any spare disks of the correct size to start from scratch with 2 disks).

    To make sure all goes well, I am first testing with a smaller disk setup, using a relatively old simple Dell T110 II server, booting in BIOS mode.

    I installed Proxmox with one disk (it partitioned it with gpt and I used zfs raid 0), then after install, I shutdown added the second disk (as I would do when doing it for real). I then mirrored the partitions, copied data from the first 2 smaller partitions, and added the third partition to zfs, and the mirror syncing says it is complete (zfs mirror seemed very quick, seems to only mirror used data on disk unlike mdraid?)

    I then pulled the first disk to see if I could boot on the second mirror, but no such luck.

    I am not that familiar with gpt, but I installed parted and all partitions seem to have the same sizes and flags. I used dd to copy the two smaller partitions.

    I am not sure what is on these smaller partitions (with flags bios_grup and boot, esp). I thought I would be able to mount at least the second esp one as I thought that this was a fat 32 partition?

    Booting into an Ubuntu live disk, looking at the partitions, they are all labelled zfs members even though only sda3 and sdb3 show up in zpool status. Not sure why (and I could not figure out how to mount them).

    I suspect that on the sdb drive, something in one (or both) of those partitions needs to be changed so it will boot on the second drive?

    The summary question I guess is, how do I add a second disk to create a mirror that enables me to be allow it to boot from sda and sdb like I can with mdraid... having a mirror that can't boot when disk sda goes bad won't be that useful :-(, though at least I can get to the big zfs partition to get data off :).

    Thanks for any help.
     
  2. guletz

    guletz Active Member

    Joined:
    Apr 19, 2017
    Messages:
    840
    Likes Received:
    114
  3. cfnz

    cfnz New Member

    Joined:
    Feb 12, 2019
    Messages:
    7
    Likes Received:
    0
    Thank-you, just found it in another Google search too...

    Didn't realise I still had to do a grub-install /dev/sdb... and that fixed it.

    Does anyone know if I need to worry about coping the partitions (sda1 and 2) to the new disk? The linked page does not mention it.

    Regards
    Colin
     
  4. Jota V.

    Jota V. New Member

    Joined:
    Jan 29, 2018
    Messages:
    24
    Likes Received:
    1
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice