-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sorry for answering an old thread, but I was away for a long time.
Am 22.09.13 12:35, schrieb Graham Perrin:
> AFAIK: with implementations of ZFS such as the current MacZFS
> stable, you can't convert – the ashift property value can be set
> only at the time of creation of a pool.
Actually you can mix and match different ashift values in the same
pool. Although the preferred "ashift" value is stored in the pool
property list, it is technically a vdev property and as such can be
set independently for each top-level vdev.
When adding a new top-level vdev you can say "zpool add -o ashift=xx".
If no ashift is specified on the command line, then it takes the value
stored in the pool property list or "9" if the property is not set.
That is the only purpose of the "ashift" property. It is completely
ignored by the zfs code, apart form serving as default for "zpool
add".
This works since MacZFS 74.3 from April 2, 2013. [1]
> If you give your larger drive to a new pool, then you might:
>
> a) use zfs send and receive to effectively clone all content of the
> original pool, to the pool that uses the larger drive
>
> b) backup
>
> c) destroy the original pool (where the ashift property value is
> not what's required)
>
> d) recreate the pool with the required ashift property value
>
> e) zfs send and receive, from the larger drive to the recreated
> pool.
>
> Amongst the answers to frequently asked questions:
>
> What should I do with 4k (Advanced Format) hard drives
> <
http://code.google.com/p/maczfs/wiki/FAQ#What_should_I_do_with_4k_(Advanced_Format)_hard_drives?>
>
> ----
>
> In the ZFS on Linux area:
>
> Add "-o ashift" to zpool add
> <
https://github.com/zfsonlinux/zfs/issues/566> (closed 2012-11-06)
>
>
> – so we may expect to find that improvement in a future stable
> version of MacZFS.
It is in since MacZFS 74.3, which was released April 2nd 2013.
Best regards
Björn
[1]
https://github.com/BjoKaSH/mac-zfs/commit/592fe6dca47a016389978b18cf4f43af2924e894
- --
| Bjoern Kahl +++ Siegburg +++ Germany |
| "googlelogin@-my-domain-" +++
www.bjoern-kahl.de |
| Languages: German, English, Ancient Latin (a bit :-)) |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Darwin)
Comment: Using GnuPG with Thunderbird -
http://www.enigmail.net/
iQCVAgUBUm2DmVsDv2ib9OLFAQKffgQApE8kYIrf0ghIOnN0acGvLpzIJt2+vDGe
jxT4/LdMAyEhKLhunpwluYSm6LWnI8YukpQ6ikK7+MRI90M+l31MMEz2VExX7dyk
HeyB73EOnn54ygWDq88mBiEqtIV297HvH/YSb7McMHir17nIZ6wwEINMPYI6gPiA
RsMLbF4J5JA=
=fG9f
-----END PGP SIGNATURE-----