I am using Debian Jessie in VMWare workstation with one virtual hard drive.
On /dev/sda1 I have a /boot on /dev/sda2 I have / and on /dev/sda3 I have swap and /dev/sda5 and /dev/sda6 I had in ZFS mirrored pool (together about 4.7 GB) and have mounted /home on zfs_pool/home all is running OK, but I have following scenario: Capacity on my mirrored pool is running out and I want to increase capacity of mirrored pool, but first: my virtual disks capacity.
As shown in the picture above I expand virtual hard drive up to 10GB and with gparted created /dev/sda7 partition, from zfs_pool I detached /dev/sda5, attach /dev/sda7 and resilvering data from /dev/sda6 to /dev/sda7 and then I detached /dev/sda6 too, because now I want to increase capacity of my mirrored tank I need to create (from /dev/sda5 and /dev/sda6) one partition and attach it to /dev/sda7 as mirror (it is recommended way to increase the capacity of mirrored pool?)
Now my pool is not in mirror state, it consists only from /dev/sda7, but if I want to delete /dev/sda5 and /dev/sda6 my partition /dev/sda7 will now have name /dev/sda5 and when I reboot zfs doesnt recognize my pool, here is output of zdb and from fdisk -l
As you can see path is still /dev/sda7, but I have /dev/sda5, where are (I think) correct data, any solution to replace this path? Or simply create only new mirrored pool with /dev/sda5 and /dev/sda6 from unallocated space?
Thank for your answer and have a nice day.