Re: ZFS does not load and mount at boot time



I'm using zfs on -currrent in form of a nanobsd image. Until recently I
used my own script in rc.d/zfs to mount zfs volumes, which I had written
prior to the import of zfs into -current.
After switching to the script coming with -current, I found that neither
the zfs kernel module is loaded, nor the volumes are mounted, although
zfs_enable is set to "YES" in rc.conf.
When manually running "/etc/rc.d/zfs start", zfs additionally complains
that it may have been mounted before by a different host, and I have to
use -f to overcome this.
Are there any hints how to solve these issues?

Try 'zpool import -f your-pool-name' and 'zfs mount -a'. You may have
created your zpool while in sinlge-user-mode wihtout hostname defined.

--
regards
Claus

When lenity and cruelty play for a kingdom,
the gentlest gamester is the soonest winner.

Shakespeare
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: ZFS: data sometimes not getting correctly flushed to disk (possible mmap/write issue)?
    ... Test4.sh is a shell script ... Run the "gen4" test program, creating a file on a ZFS partition ... Unmount the ZFS filesystem and remount it. ... Also note that when the mmap bug hits, the data that doesn't get correctly ...
    (freebsd-current)
  • Re: possible zfs bug? lost all pools
    ... gw.bb1.matik.com.br hostid: 0xbefb4a0f). ... any zpool cmd returned nothing else as not existing zfs, ... people to remember to run an rc.d startup script before they can use any ... man page thar zfs can not be a dump device, not sure if I understand it as ...
    (freebsd-stable)
  • Re: Multi-machine mirroring choices
    ... write my own script to do snapshot rotations ... but using ZFS snapshots). ... There is a PRto get something like this in the ports tree. ... I found it more convenient to just write my own tiny script. ...
    (freebsd-stable)
  • Re: Multi-machine mirroring choices
    ... Wesley Shields wrote: ... write my own script to do snapshot rotations ... but using ZFS snapshots). ... I found it more convenient to just write my own tiny script. ...
    (freebsd-stable)
  • Re: Some comments on ZFS
    ... I'm also seeing a very odd behavior regarding memory consumption, ... with src and obj under zfs (different filesystems, same pool, compression ... After switching from SCHED_ULE to SCHED_4BSD my ``make -j2 buildworld'' ... Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde ...
    (freebsd-current)