• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

FreeBSD 9.2 zpool.cache

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,884
Best answers: 7
Messages: 26,493

#2
It shouldn't. But I think the last time I tried it it didn't work and I still had to copy the zpool.cache file. I haven't tried it with the last 9.2 release candidate/beta yet though.
 

kpa

Beastie's Twin

Thanks: 1,677
Messages: 6,084

#3
It should work if you have only one ZFS pool in the system. The restriction was removed from 9-STABLE after the release of 9.1-RELEASE if I remember correctly.
 

rdunkle

Member

Thanks: 18
Messages: 46

#4
I have set up ZFS on root with 9.2-BETA2.
Code:
# zpool status
  pool: zroot
 state: ONLINE
  scan: none requested
config:

	NAME           STATE     READ WRITE CKSUM
	zroot          ONLINE       0     0     0
	  gpt/system0  ONLINE       0     0     0

errors: No known data errors
I notice zdb does not seem to work:

Code:
# zdb
cannot open '/boot/zfs/zpool.cache': No such file or directory
# zdb zroot
zdb: can't open 'zroot': No such file or directory
 

J65nko

Well-Known Member

Thanks: 127
Messages: 453

#5
Yes, I also noticed that with zdb on 9.2-BETA. To check the ashift value of my 4K aligned pool of GPT labelled disks I had to use: # zdb -C -e -p /dev/gpt poolname | grep ashift
 

Erratus

Well-Known Member

Thanks: 19
Messages: 320

#6
If a ZFS pool was created without a cachefile, zdb is of no use and shows errors as described on postings above.
If there is a need for a cachefile, it can be created like this:
Code:
# zpool set cachefile=/boot/zfs/zpool.cache your_pool
 
Top