Re: zpool doesn't upgrade - Re: ZFS directory with a large number of files

2011-08-09 Thread Ronald Klop
On Tue, 09 Aug 2011 10:38:01 +0200, seanr...@gmail.com  
 wrote:


On Tue, Aug 2, 2011 at 8:59 PM, Ronald Klop  
 wrote:
On Tue, 02 Aug 2011 12:55:43 +0200, seanr...@gmail.com  


wrote:
I think this zpool upgrade thing is weird. Can you try 'zpool upgrade  
-a'?


Mine says:
zpool get version zroot
NAME   PROPERTY  VALUESOURCE
zroot  version   28   default

Mind the SOURCE=default vs. SOURCE=local.
Is it possible you did 'zpool set version=15 tank' in the past? You can
check that with 'zpool history'.

NB: if you upgrade the boot pool, don't forget to upgrade to boot  
loader.

(See UPDATING)


% sudo zpool upgrade -a
Password:
This system is currently running ZFS pool version 15.

All pools are formatted using this version.

I checked zpool history and I never set the version explicitly. My
'world' is from the 8th of March; it's possible my tree is
sufficiently old (my kernel was built on the 12th of June; I'm fairly
sure its from the same tree as the world, but it's also possible my
kernel and userland have been out of sync for 2 months).

I'll upgrade this machine sometime soon and see if that fixes the issue.

Sean


You can set the property to 28 and upgrade after that.
zpool set version=28 zroot
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zpool doesn't upgrade - Re: ZFS directory with a large number of files

2011-08-09 Thread seanr...@gmail.com
On Tue, Aug 2, 2011 at 8:59 PM, Ronald Klop  wrote:
> On Tue, 02 Aug 2011 12:55:43 +0200, seanr...@gmail.com 
> wrote:
> I think this zpool upgrade thing is weird. Can you try 'zpool upgrade -a'?
>
> Mine says:
> zpool get version zroot
> NAME   PROPERTY  VALUE    SOURCE
> zroot  version   28       default
>
> Mind the SOURCE=default vs. SOURCE=local.
> Is it possible you did 'zpool set version=15 tank' in the past? You can
> check that with 'zpool history'.
>
> NB: if you upgrade the boot pool, don't forget to upgrade to boot loader.
> (See UPDATING)

% sudo zpool upgrade -a
Password:
This system is currently running ZFS pool version 15.

All pools are formatted using this version.

I checked zpool history and I never set the version explicitly. My
'world' is from the 8th of March; it's possible my tree is
sufficiently old (my kernel was built on the 12th of June; I'm fairly
sure its from the same tree as the world, but it's also possible my
kernel and userland have been out of sync for 2 months).

I'll upgrade this machine sometime soon and see if that fixes the issue.

Sean
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


zpool doesn't upgrade - Re: ZFS directory with a large number of files

2011-08-02 Thread Ronald Klop
On Tue, 02 Aug 2011 12:55:43 +0200, seanr...@gmail.com  
 wrote:



On Tue, Aug 2, 2011 at 11:10 AM, Daniel Kalchev  wrote:

If it is a limitation in ZFS it would be nice to know that, perhaps it
truly, really is a bug that can be avoided (or it's inherent in the  
way ZFS

handles such things)


It is possible  that there is not enough memory in ARC to cache that  
large

directory.

Other than that, perhaps in ZFS it would be easier to prune the unused
directory entries, than it is in UFS. It looks like this is not  
implemented.


Another reason might be some FreeBSD specific implementation issue for
fstatfs.

In any case, the data available is not sufficient. More information  
would
help, like how much RAM this system has, how much ARC uses, some ARC  
stats.


Which sysctl's would you like?

I grabbed these to start:
kstat.zfs.misc.arcstats.size: 118859656
kstat.zfs.misc.arcstats.hdr_size: 3764416
kstat.zfs.misc.arcstats.data_size: 53514240
kstat.zfs.misc.arcstats.other_size: 61581000

kstat.zfs.misc.arcstats.hits: 46762467
kstat.zfs.misc.arcstats.misses: 1607

The machine has 2GB of memory.

What made me wonder is .. how exactly the kernel and zpool disagree on  
zpool

version? What is the pool version in fact?


% dmesg | grep ZFS
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is  
present;
to enable, add "vfs.zfs.prefetch_disable=0" to  
/boot/loader.conf.

ZFS filesystem version 5
ZFS storage pool version 28

% zpool get version tank
NAME  PROPERTY  VALUESOURCE
tank  version   15   local

% zpool upgrade tank
This system is currently running ZFS pool version 15.

Pool 'tank' is already formatted using the current version.


Sean


I think this zpool upgrade thing is weird. Can you try 'zpool upgrade -a'?

Mine says:
zpool get version zroot
NAME   PROPERTY  VALUESOURCE
zroot  version   28   default

Mind the SOURCE=default vs. SOURCE=local.
Is it possible you did 'zpool set version=15 tank' in the past? You can  
check that with 'zpool history'.


NB: if you upgrade the boot pool, don't forget to upgrade to boot loader.  
(See UPDATING)


Ronald.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"