Date: Fri, 29 Aug 2008 18:51:27 +0200 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: "Doug Poland" <doug@polands.org> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS newbie: pools/mounts not surviving reboots? Message-ID: <20080829185127.7ebe0b0e@fabiankeil.de> In-Reply-To: <932083ec073ad86a324f24b8725a8477.squirrel@email.polands.org> References: <932083ec073ad86a324f24b8725a8477.squirrel@email.polands.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/hg+3=mbJmNs1N.qPZg+dUP/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Doug Poland" <doug@polands.org> wrote: > I'm a newbie when it comes to ZFS and am doing some experimentation to > get up-to-speed. I've been using the man pages, wiki and freebsd-fs > for reference. >=20 > Right now I'm running in a VM on 7.x i386. I've created a pool with > the intention of housing /var : >=20 > # zpool create zfs01 da7 > # zfs create zfs01/var > # dump -0aLC8 -f- /var | ( cd /zfs01/var && restore -rf- ) > # zfs set mountpoint=3D/var zfs01/var > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/mirror/gm0s1a 989M 128M 782M 14% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/da3s1d 989M 468K 910M 0% /var > /dev/da4s1d 989M 12K 910M 0% /tmp > /dev/da5s1d 989M 390M 520M 43% /usr > /dev/da6s1d 989M 180K 910M 0% /home > zfs01 983M 128K 983M 0% /zfs01 > zfs01/var 984M 640K 983M 0% /zfs01/var > fbsd7xvm# zfs set mountpoint=3D/var zfs01/var > fbsd7xvm# mount > /dev/mirror/gm0s1a on / (ufs, local) > devfs on /dev (devfs, local) > /dev/da3s1d on /var (ufs, local, soft-updates) > /dev/da4s1d on /tmp (ufs, local, soft-updates) > /dev/da5s1d on /usr (ufs, local, soft-updates) > /dev/da6s1d on /home (ufs, local, soft-updates) > zfs01 on /zfs01 (zfs, local) > zfs01/var on /var (zfs, local) >=20 >=20 > Ok, so far so good. My ZFS pool is mounted under /var. However, > after I reboot, the pool is no longer mounted >=20 > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/mirror/gm0s1a 989M 129M 781M 14% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/da4s1d 989M 12K 910M 0% /tmp > /dev/da5s1d 989M 390M 520M 43% /usr > /dev/da6s1d 989M 184K 910M 0% /home >=20 > # zfs list > NAME USED AVAIL REFER MOUNTPOINT > zfs01 648K 983M 18K /zfs01 > zfs01/var 528K 983M 528K /var >=20 >=20 > So what am I doing wrong? Did you add 'zfs_enable=3D"YES"' to /etc/rc.conf? Fabian --Sig_/hg+3=mbJmNs1N.qPZg+dUP/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAki4KQ8ACgkQBYqIVf93VJ2FhQCfQJK1sIQwmSy8fbCLNos7lGsP eS8AnREWUQ/jVsWXXj5E3e1OLsZUH3VU =BECo -----END PGP SIGNATURE----- --Sig_/hg+3=mbJmNs1N.qPZg+dUP/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080829185127.7ebe0b0e>