I have a 13.2-RELEASE-p4 machine with four hard drives. They are all partitioned just like this one:
The swap partitions and the ZFS partitions are encrypted (with GELI). The GELI views of the ZFS partitions are joined as a RAID-Z2 pool.
I would like to replace these drives with larger ones so as to expand my pool. I know (or at least know that I can once again figure out) how to do this from the ZFS point of view, one at a time and waiting ages for resilvering. But I'm concerned about my lack of knowledge regarding setting up the other parts of the drives; much or all of it was automagically done for by the FreeBSD installer. Specific things I am concerned about:
Code:
# gpart show ada0
=> 40 35156656048 ada0 GPT (16T)
40 532480 1 efi (260M)
532520 2008 - free - (1.0M)
534528 33554432 2 freebsd-swap (16G)
34088960 35122565120 3 freebsd-zfs (16T)
35156654080 2008 - free - (1.0M)
The swap partitions and the ZFS partitions are encrypted (with GELI). The GELI views of the ZFS partitions are joined as a RAID-Z2 pool.
I would like to replace these drives with larger ones so as to expand my pool. I know (or at least know that I can once again figure out) how to do this from the ZFS point of view, one at a time and waiting ages for resilvering. But I'm concerned about my lack of knowledge regarding setting up the other parts of the drives; much or all of it was automagically done for by the FreeBSD installer. Specific things I am concerned about:
- My machine can currently boot from any of the four drives. I would like to keep it that way. Is there anything that I need to do in order to accomplish this beyond just a
gpart create
of the EFI partition, with type "efi" and the appropriate byte offset and size? For example, maybe I have to somehow copy boot code there? - As I mentioned earlier, swap is encrypted on my current drives. I'd like it to be encrypted on my new drives, too. I have no idea how to do this. To be clear, I do know (or, again, at least can figure out once again) how to do it for the ZFS partitions, but I don't know how to do it for swap.
- All four drives currently have the same GELI password. When I boot up, I only have to enter the password once, and it unlocks all four drives. I'd like it to keep behaving like this. Is there anything I need to do to accomplish this, beyond simply using the same password for the new drive?