Hello everyone,
I have been trying to set up a new ZFS environment for three weeks now and I keep getting the following error message:
In order to do my root ZFS installation on FreeBSD 9.2, I am using the guide from aisecure.net and adapted it so it works for three disks on RAID-Z1 instead of mirror
http://www.aisecure.net/2012/01/16/rootzfs/. So far this is what I did:
Can anyone tell me why when I type the last line, I get that message? My box had FreeNAS on it before. Could it be because of the previous pool that I had? How can I wipe all the three disks more effectively?
Thank you all.
Fred
I have been trying to set up a new ZFS environment for three weeks now and I keep getting the following error message:
Code:
cannot mount '/mnt/zroot': failed to create mountpoint
In order to do my root ZFS installation on FreeBSD 9.2, I am using the guide from aisecure.net and adapted it so it works for three disks on RAID-Z1 instead of mirror
http://www.aisecure.net/2012/01/16/rootzfs/. So far this is what I did:
Code:
gpart delete -i 2 ada0
gpart delete -i 1 ada0
gpart destroy -F ada0
gpart delete -i 2 ada1
gpart delete -i 1 ada1
gpart destroy -F ada1
gpart delete -i 2 ada2
gpart delete -i 1 ada2
gpart destroy -F ada2
gpart create -s gpt ada0
gpart add -b 34 -s 94 -t freebsd-boot ada0
gpart add -t freebsd-zfs -l disk0 ada0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
gpart create -s gpt ada1
gpart add -b 34 -s 94 -t freebsd-boot ada1
gpart add -t freebsd-zfs -l disk1 ada1
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
gpart create -s gpt ada2
gpart add -b 34 -s 94 -t freebsd-boot ada2
gpart add -t freebsd-zfs -l disk2 ada2
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2
gnop create -S 4096 /dev/gpt/disk0
gnop create -S 4096 /dev/gpt/disk1
gnop create -S 4096 /dev/gpt/disk2
zpool create -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot raidz1 /dev/gpt/disk0.nop /dev/gpt/disk1.nop /dev/gpt/disk2.nop
zpool export zroot
gnop destroy /dev/gpt/disk0.nop /dev/gpt/disk1.nop /dev/gpt/disk2.nop
==> zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot <== This is when i get the error message
Can anyone tell me why when I type the last line, I get that message? My box had FreeNAS on it before. Could it be because of the previous pool that I had? How can I wipe all the three disks more effectively?
Thank you all.
Fred