[geeks] ZFS boot issues, was Re: operating systems to replace Solaris

Mike Meredith very at zonky.org
Wed Apr 13 13:25:00 CDT 2011


On Wed, 13 Apr 2011 07:41:46 -0400, Shannon wrote:
> What I did was create a pool called pool0, and following ZFS best
> practices I do not mount this, I use it as a container for the rest.
> The FreeBSD ZFS root wiki uses the primary pool directly, but best
> practices says to avoid that for flexibility and maintenance.

Hmm ... there's best practice and then there's what actually works. I
went with the root on pool root way.

> The system boots and says:
> 
> 	Trying to mount root on zfs:pool0/zroot
> 	/etc.rc.conf: cannot create /etc/rc.conf: Read-only file
> system Enter full pathname of shell or RETURN for /bin/sh:

I was going to suggest that perhaps vfs.root.mountfrom should contain
just the pool name given that the bootfs property is set. But it seems
that's not what this guy did :-

http://www.b0rken.org/freebsd/zfs.html

I can't see anything obvious in there that you wouldn't have done (and
nothing really tricky either).

> When I enter single user shell pool0/zroot is mounted as /, but is
> temporarily readonly so boot halts. If I do this:
> 
> % zfs set readonly=off pool0/zroot

I don't suppose the pool is read only ?

Can't think what else to suggest - I'm not a FreeBSD expert.




-- 
Mike Meredith (http://zonky.org/)
 By the way, you DON'T want to see what a meat layer buffer overrun
 looks like.... (mjr on fw-wiz)


More information about the geeks mailing list