I have an old machine that runs on ZFS. I have just replaced one of the disks in a mirror. I used the whole disk, but the existing disk looks like it's partitioned.
I replaced thie disk with a command like,
When I replaced the disk, I got a message like this:
This is what my `zpool status` looks like:
Now I'm confused about what command to use to fix the bootcode.
Secondly, is there a way I can now replace the partitioned drive while remaining online? I.e. can I just dd zeros onto it and then replace with the same whole disk? Or does it even matter?
I replaced thie disk with a command like,
Code:
sudo zfs replace zroot [id of old device] ada1
When I replaced the disk, I got a message like this:
This is what my `zpool status` looks like:
Code:
pool: zroot
state: ONLINE
scan: resilvered 14.3G in 0 days 00:05:42 with 0 errors on Sun Jan 26 15:30:33 2020
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada0p3 ONLINE 0 0 0
errors: No known data errors
Now I'm confused about what command to use to fix the bootcode.
Secondly, is there a way I can now replace the partitioned drive while remaining online? I.e. can I just dd zeros onto it and then replace with the same whole disk? Or does it even matter?