Mirroring boot pool fails from GUI

mow4cash

Contributor
Joined
Jan 20, 2017
Messages
132
Seen in latest FreeNAS nightlies.

I did a fresh install on and the boot pool sits on /dev/da0p2. Should Freenas even be installing in a partition? FreeNAS wipes all partitions during creation correct? I would expect it to be /dev/da0

Trying to attach a mirror gives me
Code:
[EFAULT] 'gpart create -s gpt -f active /dev/da1 (14.48 GiB)' failed: gpart: arg0 'da1 (14.48 GiB)': Invalid argument


This is what I ran

Code:
root@freenas[~]# zpool attach freenas-boot /dev/da0p2 /dev/da1
Make sure to wait until resilver is done before rebooting.

If you boot from pool 'freenas-boot', you may need to update
boot code on newly attached disk '/dev/da1'.

Assuming you use GPT partitioning and 'da0' is your new boot disk
you may use the following command:

        gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0

root@freenas[~]#
root@freenas[~]# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
partcode written to da0p1
bootcode written to da0
root@freenas[~]#


I assume the freenas gui is trying to attach to /dev/da0 instead of /dev/da0p2 so it fails
Where does the problem lie?
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
You might want to submit a bug report so the developers can do something about this.
 
Top