ZFS newbie: pools/mounts not surviving reboots?
Doug Poland
doug at polands.org
Fri Aug 29 16:39:59 UTC 2008
Hello,
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.
Right now I'm running in a VM on 7.x i386. I've created a pool with
the intention of housing /var :
# zpool create zfs01 da7
# zfs create zfs01/var
# dump -0aLC8 -f- /var | ( cd /zfs01/var && restore -rf- )
# zfs set mountpoint=/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=/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)
Ok, so far so good. My ZFS pool is mounted under /var. However,
after I reboot, the pool is no longer mounted
# 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
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zfs01 648K 983M 18K /zfs01
zfs01/var 528K 983M 528K /var
So what am I doing wrong?
--
Regards,
Doug
More information about the freebsd-fs
mailing list