- Thread Starter
- #26
My first FreeBSD with ZFS was version 9.0 about 8-9 years ago. In those times I used shell script to install FreeBSD from CD. That script contained something like this:It's strange that on your old system, the mirror disks are referred to asgpt/disk0
andgpt/disk1
, but on the new system they're calledada1p2
andada0p2
. I'd investigate that, but I don't have an idea what went wrong.
# for disk0
gpart create -s GPT ada0
gpart add -b 34 -s 64k -t freebsd-boot ada0
gpart add -t freebsd-zfs -l disk0 ada0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1ada0
# for disk1
gpart create -s GPT ada1
gpart add -b 34 -s 64k -t freebsd-boot ada1
gpart add -t freebsd-zfs -l disk1 ada1
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
As you can see, the script contains commands for creating labels for disks. After FreeBSD 9.0, I updated the system to version 10.1 several times. It seems that this is why in FreeBSD 10.1 mirror disks are called gpt/disk0 and gpt/disk1 instead of ada0p2 and ada1p2