I have a proxmox installation with two bootable disks in a ZFS mirror (set up from the Proxmox installer): sda, sdb. I have removed a faulted disk ("zfs detach rpool sdb2") and now I want to replace with a new one.
I understand that I have to use the "zfs attach" command. However, with which device? My pool currently appears like this to "zpool status rpool":
My doubt stems from the fact that the zfs filesystem is within a partition. According to fdisk, the working disk is partitioned like this (the faulted disk was also identical):
sda1 is the boot partition, sda2 is the zfs partition, and I do not know what sda9 is.
So my questions are:
1. I suppose I must first recreate the same partitioning scheme on the new disk /dev/sdb before attaching sdb2 to the zfs pool. Is that correct?
2. Should I do that manually using fdisk or there is another way?
3. How do I recreate the contents of the boot partition on the new disk? using grub perhaps?
4. What is partition sda9 and what should I do with that on the new disk?
Thanks!
I understand that I have to use the "zfs attach" command. However, with which device? My pool currently appears like this to "zpool status rpool":
Code:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
sda2 ONLINE 0 0 0
My doubt stems from the fact that the zfs filesystem is within a partition. According to fdisk, the working disk is partitioned like this (the faulted disk was also identical):
Code:
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 3907012749 3907010702 1.8T Solaris /usr & Apple ZFS
/dev/sda9 3907012750 3907029134 16385 8M Solaris reserved 1
sda1 is the boot partition, sda2 is the zfs partition, and I do not know what sda9 is.
So my questions are:
1. I suppose I must first recreate the same partitioning scheme on the new disk /dev/sdb before attaching sdb2 to the zfs pool. Is that correct?
2. Should I do that manually using fdisk or there is another way?
3. How do I recreate the contents of the boot partition on the new disk? using grub perhaps?
4. What is partition sda9 and what should I do with that on the new disk?
Thanks!