ZFS newbie: pools/mounts not surviving reboots?

Fabian Keil freebsd-listen at fabiankeil.de
Fri Aug 29 16:51:37 UTC 2008


"Doug Poland" <doug at 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.
> 
> 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?

Did you add 'zfs_enable="YES"' to /etc/rc.conf?

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20080829/93221c79/signature.pgp


More information about the freebsd-fs mailing list