Greetings!
I just bought an SSD (Crucial MX100 256GB) to use as L2ARC read cache for the RAID-1 system pool in my home server.
According to
And the error count just keeps increasing. If I add the cache partition to the pool "directly", i.e. without using the .nop device, it works perfectly.
What am I doing wrong? Is gnop(8) even needed for L2ARC? Most of the examples I have seen uses it.
I originally prepared and attached the disk like this (intentionally leaving some free space for the sake of over-provisioning):
I just bought an SSD (Crucial MX100 256GB) to use as L2ARC read cache for the RAID-1 system pool in my home server.
According to
smartctl
(sysutils/smartmontools), the drive has 512 bytes logical and 4096 bytes physical sector sizes, therefore I used a gnop(8) device for attaching it to the zpool as a cache. However, it reports an enormous amount of write errors whenever it is attached through the NOP device. After about a minute it looks like this:
Code:
# zpool status -v sys
pool: sys
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://illumos.org/msg/ZFS-8000-9P
scan: scrub repaired 0 in 0h37m with 0 errors on Sun Dec 7 19:44:05 2014
config:
NAME STATE READ WRITE CKSUM
sys ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
diskid/DISK-S13PJDWS510284p3 ONLINE 0 0 0
diskid/DISK-S13PJDWS518340p3 ONLINE 0 0 0
cache
diskid/DISK-14340D0D61B1p1.nop ONLINE 0 21.5K 0
errors: No known data errors
What am I doing wrong? Is gnop(8) even needed for L2ARC? Most of the examples I have seen uses it.
I originally prepared and attached the disk like this (intentionally leaving some free space for the sake of over-provisioning):
Code:
# gpart create -s GPT diskid/DISK-14340D0D61B1
diskid/DISK-14340D0D61B1 created
# gpart add -t freebsd-zfs -a 4k -s 180G diskid/DISK-14340D0D61B1
diskid/DISK-14340D0D61B1p1 added
# gnop create -S 4096 diskid/DISK-14340D0D61B1p1
# zpool set bootfs="" sys
# zpool add sys cache diskid/DISK-14340D0D61B1p1.nop
# zpool set bootfs=sys/ROOT sys