Thanks guys, I guess I'm still a little unclear here and maybe I need to get some additional information from my providing some more details:
This initial setup was a few years old and I forgot that I had it setup as a mirrored bootable root device.
I have two 500gb drives in my bootable zpool "rpool". I need to upgrade this to two 1tb drives that will replace these. Initially I was thinking about using `zpool attach` but then realized maybe I should use `zpool replace` since I see that this is mentioned in
@Dunuin's shared link. I also started having questions about the rpool mirror-0 is using "-part3"...
So this led to more questions / worry that maybe I need to do something to prepare the drive for bootability.
The existing pool that I want to upgrade looks like this from `zpool status`:
Code:
$ zpool status -v rpool
pool: rpool
state: ONLINE
scan: scrub repaired 0B in 00:31:11 with 0 errors on Sun Nov 13 00:55:12 2022
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-CT500MX500SSD1_123456789a-part3 ONLINE 0 0 0
ata-CT500MX500SSD1_123456789b-part3 ONLINE 0 0 0
So if I pursue the section as linked above:
https://pve.proxmox.com/wiki/ZFS_on_Linux#sysadmin_zfs_change_failed_dev on the "Changing a failed bootable device" it recommends using
sgdisk /dev/disk/by-id/ata-CT500MX500SSD1_123456789a --replicate=/dev/disk/by-id/ata-NEW_DISK_ID
to clone the GPT info...
WHICH WOULD INCLUDE drive size, etc.
Following that you then do
-G
to randomize the UUID properly and then it goes on into the
zpool replace
I suppose another option could be to use the next one with
proxmox-boot-tool format
, but I realized I don't really have a properly formatted drive coming in (one was used on Windows briefly).
As I thought about methods to format it properly and so as to create the proper partition mapping to that might facilitate this second
proxmox-boot-tool format
option, I realized too that the first suggestion if using
sgdisk
to clone it I may end up in a scenario where the new larger drive will not actually ever be able to use the full drive space since, when I did that, the new 1tb drive was only showing up as a 500gb drive since the GPT data was cloned.
What is the proper way to handle this? Should I format the drive first on another system such as Ubuntu with a certain size scheme and number of volumes in Gparted or some other way? I'm just not clear what Proxmox does to create volumes initially and to structure it properly so that then I can properly proceed with cloning the 3rd volume/partition in the
zpool replace
step with the appropriate
-part3
postfix...