Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 May 2017 20:46:46 +0000
From:      Ben Woods <woodsb02@gmail.com>
To:        Peter Pauly <ppauly@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Tips for shell based partitioning during install
Message-ID:  <CAOc73CDw5fXjfQubmW29V1xOV=_o_D90c_X=bNWst3GeLxxTOQ@mail.gmail.com>
In-Reply-To: <CAKXfWbTqBUUzaGxz3U7HEV9FoSzqg3XD%2BUrrEkqbVU5E1W-oQA@mail.gmail.com>
References:  <CAKXfWbTqBUUzaGxz3U7HEV9FoSzqg3XD%2BUrrEkqbVU5E1W-oQA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 May 2017 at 2:31 am, Peter Pauly <ppauly@gmail.com> wrote:

> I'm using the option in the installer where you go out to a shell prompt
> during the partitioning step in the installer on FreeBSD 11-Release and
> booted off of the CD. All is going well until I get to this step:
>
> zpool create zroot raidz2 /dev/gpt/disk0 /dev/gpt/disk1 /dev/gpt/disk3 ...
> etc.
> cannot mount '/zroot': failed to create mountpoint
>
> The instructions when going out to the shell say I have to mount the
> filesystem under /mnt but /mnt is read-only.
>
> I tried to use the Guided Auto (ZFS) but it doesn't work with more than 10
> drives.
>
> What am I doing wrong?


Hi Peter,

When I do manual zfs partitioning during installs, i follow the commands
used by the actual bsdinstall scripts (the ones that would have been
executed if I used the auto mode).

A copy of them can be viewed online here:

https://svnweb.freebsd.org/base/head/usr.sbin/bsdinstall/scripts/zfsboot?view=markup#l1313


Essentially the zpool create command needs to have:

zpool create -o altroot=/mnt -O compress=lz4 -O atime=off -m none -f zroot
raidz2 /dev/gpt/disk0 ...

Regards,
Ben

> --

--
From: Benjamin Woods
woodsb02@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CDw5fXjfQubmW29V1xOV=_o_D90c_X=bNWst3GeLxxTOQ>