8.0.1 beta 2 reset cachefile path, zdb doesn't work.

Status
Not open for further replies.

jafin

Explorer
Joined
May 30, 2011
Messages
51
Upgrading from 8.0.1 beta1 to 8.0.1 beta2.

And the cachefile property on my existing pool got removed? Cannot confirm if this was due to upgade or not, mayby wait for another report.

checked using
Code:
#zpool get cachefile tank1


Also creating a new pool, and the cachefile property was not set for it. This causes zdb to not report info back.

Fixed by running
Code:
#zpool set cachefile=/data/zfs/zpool.cache tank2



Here is my history.

Code:
freenas# zpool history tank1
History for 'tank1':
2011-06-09.23:06:08 zpool create -o cachefile=/data/zfs/zpool.cache -f -o altroot=/mnt tank1 raidz2 /dev/da8p2.nop /dev/da9p2.nop /dev/da10p2.nop /dev/da11p2.nop /dev/da12p2.nop /dev/da13p2.nop
2011-06-09.23:06:08 zfs inherit mountpoint tank1
2011-06-09.23:06:08 zpool export tank1
2011-06-09.23:06:10 zpool import -R /mnt tank1
2011-06-09.23:06:10 zfs set aclmode=passthrough tank1
2011-06-09.23:06:10 zfs set aclinherit=passthrough tank1
2011-06-09.23:10:19 zfs create tank1/users
freenas#


From the zpool man page
-R root Equivalent to -o cachefile=none,altroot=root

So mayby the zpool import -R /mnt tank1 is wiping the cachefile setting?

Pool creation was done via GUI.
 

Milhouse

Guru
Joined
Jun 1, 2011
Messages
564
Yes, I too am missing zfs.cache in BETA2 - the default seems to be /boot/zfs/zpool.cache however...

Code:
freenas# ls -la /boot/zfs
total 2
drwxr-xr-x  2 root  wheel   512 Jun  8 15:23 .
drwxr-xr-x  7 root  wheel  1024 Jun  9 15:34 ..
lrwxr-xr-x  1 root  wheel    21 Jun  8 15:23 zpool.cache -> /data/zfs/zpool.cache
freenas# ls -la /data/
total 846
drwxr-xr-x   4 www   www          512 Jun  9 15:36 .
drwxr-xr-x  20 root  wheel        512 Jun  8 15:23 ..
drwxrwxr-x   2 root  operator     512 Jun  2 18:11 .snap
-rw-r--r--   1 www   www       154624 Jun  2 18:10 factory-v1.db
-rw-r--r--   1 www   www       165888 Jun  9 15:36 freenas-v1.db
-rw-r--r--   1 root  www       165888 Jun  9 07:27 freenas-v1.db.bak
-rw-r--r--   1 root  www       354778 Jun  9 16:00 rrd_dir.tar.bz2
drwxr-xr-x   2 root  www          512 Jun  3 19:04 ssh


The sym link /boot/zfs/zpool.cache points /data/zfs/zpool.cache but the entire zfs sub-directory is missing from /data.

In my case I imported an 8.0-RELEASE zfs pool into a fresh BETA1 installation, which I then upgraded via the GUI to BETA2.
 
Status
Not open for further replies.
Top