Re: ZFS mounting order
On 21/05/2012 00:11, Chris Brennan (lists) wrote: Greetings! I have a FreeBSD 9 system with 3 different ZFS pools on it. I am booting from a ro CF Card w/o any major issues, the problem I am encountering is that zroot needs to be mounted at boot first, because it contains /usr, zhome and tank contain other various sub-partitions of /usr. Also, zroot causes me a lot of problems when I try to do zpool import, when zpool gets to probing zroot, I get g_vfs errors printed to the console and the hacnine hangs till I reset it (which is obviously not acceptable behavior.) I was able to get around this when booting to my cf card by making / ro, which was my intention all along for that media.) I suspect this happens because there is a on that volume that is trying to replace something on / on either the USB boot img or on my CF card and this might be causing either to freak out. So I dunno what to do to get this working the way it should and some guidence would be greatly appreciated! Sounds like something I came across and haven't gathered more details to submit a pr yet. I think there is a problem when two zpools have the same mountpoint - either / or legacy or one of each that prevents startup. Also zfs filesystems with matching mountpoints appear to mount together and cause issues, not sure if this extends to existing ufs mount points. Check the mountpoint settings on each filesystem 'zfs get mountpoint' will list them all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
ZFS mounting order
Greetings! I have a FreeBSD 9 system with 3 different ZFS pools on it. I am booting from a ro CF Card w/o any major issues, the problem I am encountering is that zroot needs to be mounted at boot first, because it contains /usr, zhome and tank contain other various sub-partitions of /usr. Also, zroot causes me a lot of problems when I try to do zpool import, when zpool gets to probing zroot, I get g_vfs errors printed to the console and the hacnine hangs till I reset it (which is obviously not acceptable behavior.) I was able to get around this when booting to my cf card by making / ro, which was my intention all along for that media.) I suspect this happens because there is a on that volume that is trying to replace something on / on either the USB boot img or on my CF card and this might be causing either to freak out. So I dunno what to do to get this working the way it should and some guidence would be greatly appreciated! -- Chris Brennan | http://xaerolimit.net | http://xaerolimit.net/forum A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/ GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8 9E4A EECD 9A84 D5B2 0C0C) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ZFS mounting order
Hi, Assuming that you are using some version of diskless (man diskless), I build NAS boxes using NanoBSD (man nanobsd) and in that setup, I need to move the cache from /boot/zfs to /etc/zfscache so the cache can be mapped to the files copied to the cfg partision. So I added the following file to rc.d/zpool --- #!/bin/sh # # $FreeBSD: $ # # PROVIDE: zpool # REQUIRE: hostid # BEFORE: zvol # KEYWORD: nojail . /etc/rc.subr name=zpool rcvar=zfs_enable start_cmd=zpool_start required_modules=zfs zpool_start() { if [ ! -z $zpool_cache -a -r $zpool_cache ]; then zpool import -c $zpool_cache -a fi } load_rc_config $name run_rc_command $1 --- This works very well for a disk server from USB, CF or mSATA SSD. I am not sure the BEFORE tag was required to make sure that this is the first ZFS related script run, before zvol, as zpool is sorted before zvol but I was not sure exactly how rcorder sorts. /glz --On Sunday, 20 May, 2012 10:41 AM -0400 Chris Brennan li...@xaerolimit.net wrote: Greetings! I have a FreeBSD 9 system with 3 different ZFS pools on it. I am booting from a ro CF Card w/o any major issues, the problem I am encountering is that zroot needs to be mounted at boot first, because it contains /usr, zhome and tank contain other various sub-partitions of /usr. Also, zroot causes me a lot of problems when I try to do zpool import, when zpool gets to probing zroot, I get g_vfs errors printed to the console and the hacnine hangs till I reset it (which is obviously not acceptable behavior.) I was able to get around this when booting to my cf card by making / ro, which was my intention all along for that media.) I suspect this happens because there is a on that volume that is trying to replace something on / on either the USB boot img or on my CF card and this might be causing either to freak out. So I dunno what to do to get this working the way it should and some guidence would be greatly appreciated! -- Chris Brennan | http://xaerolimit.net | http://xaerolimit.net/forum A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/ GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8 9E4A EECD 9A84 D5B2 0C0C) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org