odd zfs behaviour on reboot

2007-12-21 Thread Pete French
was just experimenting with zfs on a spare slice on the disc - this may all
be entirely my fault for doing it worng, if so please tell me, but I
appear to be gettign a zfs pool ounted on reboot but with none of the
data appearing in it!

what I did:

1) take a space slice, only got one partition on it being 'c' the whole disc
2) glabeled it as 'zfstest' so it appears in /dev/label/zfstest
3) create a pool with 'zpool create tank /dev/label/zfstest
4) create another file system on it as 'zfs create tank/newfs'
5) sprinkle some files into both directories

so thois gives me a /tank and a /tank/newfs, with some files in
them (there was no /tank director previously). I can zpool export and
zpool import the tank and it all works fine.

so then I reboot

...and after reboot I get /tank, but it is empty! a 'zpool status' tells
me that the pool is there and imported, but it doesnt show up when I
type 'mount'. If I do an export and import then all the files appear again
and the filesystem shows up in 'mount' though.

any ideas ? it is obviosuly finding the pool, but not mounting any of the
files systems from the looks of things.

-pete.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: odd zfs behaviour on reboot

2007-12-21 Thread Peter Thoenen
heh I had the same prob a couple days back.  Check the archives last
week, 10DEC07 Re: Various Issues with 7.0-BETA4

Step by step directions on how to fix
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: odd zfs behaviour on reboot

2007-12-21 Thread Pete French
 heh I had the same prob a couple days back.  Check the archives last
 week, 10DEC07 Re: Various Issues with 7.0-BETA4

actually, it wsa that thread which motivated me to experiment ... and
I was thinking all along must remember to add zfs to loader.conf to
avoid that. Of course I then forgot to add zfs_enable to rc.conf!

doh... sorry for the noise, and thanks for the  pointer - works
fine now.

-pete.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: odd zfs behaviour on reboot

2007-12-21 Thread Pete French
O.K., even odder - it seems that something is creating a real '/tank'
directory in '/' for some reaosn, but not mounting the filesystems onto
it. when I reboot I get this:

# zpool status
  pool: tank
 state: ONLINE
 scrub: none requested
config:

NAME STATE READ WRITE CKSUM
tank ONLINE   0 0 0
  label/zfstest  ONLINE   0 0 0

errors: No known data errors
# zfs list
NAME USED  AVAIL  REFER  MOUNTPOINT
tank 134K  29.3G  21.5K  /tank
tank/newfs  18.5K  29.3G  18.5K  /tank/newfs

but nothing is actually mouunted. a quick 'zpool export tank' followed by
a 'zpool import tank' fixes this, but surely it should either mount
them at boot or not ,ount them at boot ? saying they are mounted when
they actuall arent seems wrong...

-pete.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]