Change block size on ZFS pool

Matthias Fechner idefix at
Mon May 12 12:43:33 UTC 2014


I upgraded now a FreeBSD 9 to version 10.
Now my zpool says:
  pool: zroot
 state: ONLINE
status: One or more devices are configured to use a non-native block size.
        Expect reduced performance.
action: Replace affected devices with devices that support the
        configured block size, or migrate data to a properly configured
  scan: scrub repaired 0 in 42h48m with 0 errors on Mon May  5 06:36:10 2014

        NAME                                            STATE     READ
        zroot                                           ONLINE       0
   0     0
          mirror-0                                      ONLINE       0
   0     0
            gptid/504acf1f-5487-11e1-b3f1-001b217b3468  ONLINE       0
   0     0  block size: 512B configured, 4096B native
            gpt/disk1                                   ONLINE       0
   0     0  block size: 512B configured, 4096B native

My partition are aligned to 4k:
=>        34  3907029101  ada2  GPT  (1.8T)
          34           6        - free -  (3.0K)
          40         128     1  freebsd-boot  (64K)
         168     8388608     2  freebsd-swap  (4.0G)
     8388776  3898640352     3  freebsd-zfs  (1.8T)
  3907029128           7        - free -  (3.5K)

But it seems that the ZFS pool is not aligned correctly.

Is there a possibility to correct that online without taking the pool



"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

More information about the freebsd-questions mailing list