我已将 zfs 升级到 kmod-0.8.2-1 以进行 SSD 修整,修整功能适用于普通 zfs SSD 驱动器,但不适用于 SSD 缓存驱动器(以下日志中的 sdc)。我怎样才能修剪它?提前致谢。
root@server1:~# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
root@server1:~# zpool status -t
pool: zp1
state: ONLINE
scan: scrub repaired 0B in 0 days 00:24:42 with 0 errors on Mon Jun 10 18:38:54 2019
config:
NAME STATE READ WRITE CKSUM
zp1 ONLINE 0 0 0
sdb ONLINE 0 0 0 (100% trimmed, completed at Mon Oct 28 23:06:03 2019)
errors: No known data errors
pool: zp2
state: ONLINE
scan: scrub repaired 0B in 0 days 00:53:18 with 0 errors on Mon Jun 10 19:59:37 2019
config:
NAME STATE READ WRITE CKSUM
zp2 ONLINE 0 0 0
sdd ONLINE 0 0 0 (trim unsupported)
cache
sdc ONLINE 0 0 0 (untrimmed)
errors: No known data errors
root@server1:~# zpool trim zp2 sdc
cannot trim 'sdc': device is in use as a cache
root@server1:~#