tikv 启动报错

【 TiDB 使用环境】
【背景】物理机新搭建 集群
【现象】[ERROR] [server.rs:986] [“failed to init io snooper”] [err_code=KV:Unknown] [err=“"IO snooper is not started due to not compiling with BCC"”]
【部署方式】k8s部署

【TiDB 版本】5.1.1
这种报错有什么影响,怎么解决,是否可以忽略,文件系统是xfs
不存在空间问题,内存也够
image
image

1 个赞

可以发一下上下文的日志看看,只看报错 可以参考一下这个 问答帖子 一tikv节点无法启动:报错:failed to init io snoope

只有这一个日志,这种报错有什么影响,怎么解决,是否可以忽略,
硬件列表:
os: centos7.9
硬盘: 1T ssd硬盘 (新盘)
内存: 251G
cpu: 24核
网卡: 千兆

开启debug日志了

[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:81] [“Welcome to TiKV”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Release Version: 5.1.1”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Edition: Community”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Git Commit Hash: 4705d7c6e9c42d129d3309e05911ec6b08a25a38”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Git Commit Branch: heads/refs/tags/v5.1.1”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“UTC Build Time: Unknown (env var does not exist when building)”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Rust Version: rustc 1.53.0-nightly (16bf626a3 2021-04-14)”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Enable Features: jemalloc mem-profiling portable sse protobuf-codec test-engines-rocksdb cloud-aws cloud-gcp”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [lib.rs:86] [“Profile: dist_release”]
[2021/09/09 09:40:59.504 +08:00] [INFO] [mod.rs:70] [“memory limit in bytes: 207470681088, cpu cores quota: 24”]
[2021/09/09 09:40:59.511 +08:00] [WARN] [server.rs:1244] [“check: kernel”] [err=“kernel parameters net.core.somaxconn got 128, expect 32768”]
[2021/09/09 09:40:59.511 +08:00] [WARN] [server.rs:1244] [“check: kernel”] [err=“kernel parameters net.ipv4.tcp_syncookies got 1, expect 0”]
[2021/09/09 09:40:59.511 +08:00] [WARN] [server.rs:1244] [“check: kernel”] [err=“kernel parameters vm.swappiness got 60, expect 0”]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“Using polling engine: epollex”]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering LB policy factory for “grpclb””]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering LB policy factory for “priority_experimental””]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering LB policy factory for “weighted_target_experimental””]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering LB policy factory for “pick_first””]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering LB policy factory for “round_robin””]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“Using ares dns resolver”]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering certificate provider factory for “file_watcher””]
[2021/09/09 09:40:59.516 +08:00] [DEBUG] [] [“registering LB policy factory for “cds_experimental””]
[2021/09/09 09:40:59.517 +08:00] [DEBUG] [] [“registering LB policy factory for “xds_cluster_impl_experimental””]
[2021/09/09 09:40:59.517 +08:00] [DEBUG] [] [“registering LB policy factory for “xds_cluster_resolver_experimental””]
[2021/09/09 09:40:59.517 +08:00] [DEBUG] [] [“registering LB policy factory for “xds_cluster_manager_experimental””]
[2021/09/09 09:40:59.527 +08:00] [INFO] [util.rs:544] [“connecting to PD endpoint”] [endpoints=192.168.5.83:2479]
[2021/09/09 09:40:59.528 +08:00] [INFO] [] [“TCP_USER_TIMEOUT is available. TCP_USER_TIMEOUT will be used thereafter”]
[2021/09/09 09:40:59.528 +08:00] [DEBUG] [] [“cannot set inq fd=12 errno=92”]
[2021/09/09 09:40:59.529 +08:00] [INFO] [] [“New connected subchannel at 0x7f5029c2e150 for subchannel 0x7f502d411480”]
[2021/09/09 09:40:59.531 +08:00] [INFO] [util.rs:544] [“connecting to PD endpoint”] [endpoints=192.168.5.84:2479]
[2021/09/09 09:40:59.532 +08:00] [DEBUG] [] [“cannot set inq fd=14 errno=92”]
[2021/09/09 09:40:59.533 +08:00] [INFO] [] [“New connected subchannel at 0x7f502942e150 for subchannel 0x7f502d411640”]
[2021/09/09 09:40:59.535 +08:00] [INFO] [util.rs:544] [“connecting to PD endpoint”] [endpoints=192.168.5.168:2479]
[2021/09/09 09:40:59.536 +08:00] [DEBUG] [] [“cannot set inq fd=16 errno=92”]
[2021/09/09 09:40:59.536 +08:00] [INFO] [] [“New connected subchannel at 0x7f5028a2d150 for subchannel 0x7f502d411480”]
[2021/09/09 09:40:59.538 +08:00] [INFO] [util.rs:544] [“connecting to PD endpoint”] [endpoints=http://192.168.5.84:2479]
[2021/09/09 09:40:59.538 +08:00] [DEBUG] [] [“cannot set inq fd=18 errno=92”]
[2021/09/09 09:40:59.539 +08:00] [INFO] [] [“New connected subchannel at 0x7f502842e150 for subchannel 0x7f502d411640”]
[2021/09/09 09:40:59.540 +08:00] [INFO] [util.rs:544] [“connecting to PD endpoint”] [endpoints=http://192.168.5.83:2479]
[2021/09/09 09:40:59.541 +08:00] [DEBUG] [] [“cannot set inq fd=18 errno=92”]
[2021/09/09 09:40:59.542 +08:00] [INFO] [] [“New connected subchannel at 0x7f5027c2e150 for subchannel 0x7f502d411480”]
[2021/09/09 09:40:59.549 +08:00] [INFO] [util.rs:668] [“connected to PD member”] [endpoints=http://192.168.5.83:2479]
[2021/09/09 09:40:59.549 +08:00] [INFO] [util.rs:536] [“all PD endpoints are consistent”] [endpoints="[“192.168.5.83:2479”, “192.168.5.84:2479”, “192.168.5.168:2479”]"]
[2021/09/09 09:40:59.550 +08:00] [INFO] [server.rs:331] [“connect to PD cluster”] [cluster_id=7005474294309232438]
[2021/09/09 09:40:59.588 +08:00] [INFO] [server.rs:1252] [“beginning system configuration check”]
[2021/09/09 09:40:59.588 +08:00] [INFO] [config.rs:898] [“data dir”] [mount_fs=“FsInfo { tp: “xfs”, opts: “rw,noatime,nodiratime,attr2,inode64,noquota”, mnt_dir: “/data/tikv”, fsname: “/dev/mapper/VGS
SD-ssddata” }”] [data_path=/data/tikv]
[2021/09/09 09:40:59.588 +08:00] [WARN] [server.rs:1268] [“check: rocksdb-data-dir”] [err=“config fs: data-dir.rotation.get: “/dev/mapper/VGSSD-ssddata” no device find in block”] [path=/data/tikv]
[2021/09/09 09:40:59.588 +08:00] [INFO] [config.rs:898] [“data dir”] [mount_fs=“FsInfo { tp: “xfs”, opts: “rw,noatime,nodiratime,attr2,inode64,noquota”, mnt_dir: “/data/tikv”, fsname: “/dev/mapper/VGS
SD-ssddata” }”] [data_path=/data/tikv/raft]
[2021/09/09 09:40:59.588 +08:00] [WARN] [server.rs:1276] [“check: raftdb-path”] [err=“config fs: data-dir.rotation.get: “/dev/mapper/VGSSD-ssddata” no device find in block”] [path=/data/tikv/raft]
[2021/09/09 09:40:59.589 +08:00] [INFO] [server.rs:300] [“using config”] [config="{“log-level”:“debug”,“log-file”:"/logs/tikv.log",“log-format”:“text”,“slow-log-file”:"",“slow-log-threshold
“:“1s”,“log-rotation-timespan”:“1d”,“log-rotation-size”:“300MiB”,“panic-when-unexpected-key-or-data”:false,“enable-io-snoop”:true,“abort-on-panic”:false,“memory-usage-limit”:89478485333,“m
emory-usage-high-water”:0.9,“readpool”:{“unified”:{“min-thread-count”:4,“max-thread-count”:19,“stack-size”:“10MiB”,“max-tasks-per-worker”:2000},“storage”:{“use-unified-pool”:false,“high-c
oncurrency”:8,“normal-concurrency”:8,“low-concurrency”:8,“max-tasks-per-worker-high”:2000,“max-tasks-per-worker-normal”:2000,“max-tasks-per-worker-low”:2000,“stack-size”:“10MiB”},“coprocessor
“:{“use-unified-pool”:true,“high-concurrency”:19,“normal-concurrency”:19,“low-concurrency”:19,“max-tasks-per-worker-high”:2000,“max-tasks-per-worker-normal”:2000,“max-tasks-per-worker-low”:200
0,“stack-size”:“10MiB”}},“server”:{“addr”:“0.0.0.0:20160”,“advertise-addr”:“192.168.5.210:20160”,“status-addr”:“0.0.0.0:20180”,“advertise-status-addr”:“192.168.5.210:20180”,“status
-thread-pool-size”:1,“max-grpc-send-msg-len”:10485760,“raft-client-grpc-send-msg-buffer”:524288,“raft-client-queue-size”:8192,“raft-msg-max-batch-size”:128,“grpc-compression-type”:“none”,“grpc-
concurrency”:6,“grpc-concurrent-stream”:1024,“grpc-raft-conn-num”:1,“grpc-memory-pool-quota”:9223372036854775807,“grpc-stream-initial-window-size”:“2MiB”,“grpc-keepalive-time”:“10s”,“grpc-kee
palive-timeout”:“3s”,“concurrent-send-snap-limit”:32,“concurrent-recv-snap-limit”:32,“end-point-recursion-limit”:1000,“end-point-stream-channel-size”:8,“end-point-batch-row-limit”:64,“end-point
-stream-batch-row-limit”:128,“end-point-enable-batch-if-possible”:true,“end-point-request-max-handle-duration”:“1m”,“end-point-max-concurrency”:24,“snap-max-write-bytes-per-sec”:“100MiB”,“snap-
max-total-size”:“0KiB”,“stats-concurrency”:1,“heavy-load-threshold”:300,“heavy-load-wait-duration”:“1ms”,“enable-request-batch”:true,“background-thread-count”:3,“end-point-slow-log-threshold
“:“1s”,“forward-max-connections-per-address”:4,“labels”:{}},“storage”:{“data-dir”:”/data/tikv”,“gc-ratio-threshold”:1.1,“max-key-size”:4096,“scheduler-concurrency”:524288,“scheduler-worker
-pool-size”:8,“scheduler-pending-write-threshold”:“100MiB”,“reserve-space”:“0KiB”,“enable-async-apply-prewrite”:false,“enable-ttl”:false,“ttl-check-poll-interval”:“12h”,“block-cache”:{“sh
ared”:true,“capacity”:“50GiB”,“num-shard-bits”:6,“strict-capacity-limit”:false,“high-pri-pool-ratio”:0.8,“memory-allocator”:“nodump”},“io-rate-limit”:{“max-bytes-per-sec”:“0KiB”,“mode”
:“write-only”,“strict”:false,“foreground-read-priority”:“high”,“foreground-write-priority”:“high”,“flush-priority”:“high”,“level-zero-compaction-priority”:“medium”,“compaction-priority”
:“low”,“replication-priority”:“high”,“load-balance-priority”:“high”,“gc-priority”:“high”,“import-priority”:“medium”,“export-priority”:“medium”,“other-priority”:“high”}},“pd”:{“en
dpoints”:[“192.168.5.83:2479”,“192.168.5.84:2479”,“192.168.5.168:2479”],“retry-interval”:“300ms”,“retry-max-count”:9223372036854775807,“retry-log-every”:10,“update-interval”:“10m”,”
enable-forwarding”:false},“metric”:{“job”:“tikv”},“raftstore”:{“prevote”:true,“raftdb-path”:”/data/tikv/raft”,“capacity”:“0KiB”,“raft-base-tick-interval”:“1s”,“raft-heartbeat-ticks”:
2,“raft-election-timeout-ticks”:10,“raft-min-election-timeout-ticks”:10,“raft-max-election-timeout-ticks”:20,“raft-max-size-per-msg”:“1MiB”,“raft-max-inflight-msgs”:256,“raft-entry-max-size”:"
8MiB",“raft-log-gc-tick-interval”:“10s”,“raft-log-gc-threshold”:50,“raft-log-gc-count-limit”:73728,“raft-log-gc-size-limit”:“72MiB”,“raft-log-reserve-max-ticks”:6,“raft-engine-purge-interval
“:“10s”,“raft-entry-cache-life-time”:“30s”,“raft-reject-transfer-leader-duration”:“3s”,“split-region-check-tick-interval”:“10s”,“region-split-check-diff”:“6MiB”,“region-compact-check-inter
val”:“5m”,“region-compact-check-step”:100,“region-compact-min-tombstones”:10000,“region-compact-tombstones-percent”:30,“pd-heartbeat-tick-interval”:“1m”,“pd-store-heartbeat-tick-interval”:“10
s”,“snap-mgr-gc-tick-interval”:“1m”,“snap-gc-timeout”:“4h”,“lock-cf-compact-interval”:“10m”,“lock-cf-compact-bytes-threshold”:“256MiB”,“notify-capacity”:40960,“messages-per-tick”:4096,”
max-peer-down-duration”:“5m”,“max-leader-missing-duration”:“2h”,“abnormal-leader-missing-duration”:“10m”,“peer-stale-state-check-interval”:“5m”,“leader-transfer-max-log-lag”:128,“snap-apply
-batch-size”:“10MiB”,“consistency-check-interval”:“0s”,“report-region-flow-interval”:“1m”,“raft-store-max-leader-lease”:“9s”,“right-derive-when-split”:true,“allow-remove-leader”:false,“me
rge-max-log-gap”:10,“merge-check-tick-interval”:“2s”,“use-delete-range”:false,“cleanup-import-sst-interval”:“10m”,“local-read-batch-size”:1024,“apply-max-batch-size”:2048,“apply-pool-size”:3
,“apply-reschedule-duration”:“5s”,“apply-low-priority-pool-size”:1,“store-max-batch-size”:2048,“store-pool-size”:3,“store-reschedule-duration”:“5s”,“store-low-priority-pool-size”:0,“future-p
oll-size”:1,“hibernate-regions”:true,“dev-assert”:false,“apply-yield-duration”:“500ms”,“perf-level”:1},“coprocessor”:{“split-region-on-table”:false,“batch-split-limit”:10,“region-max-size”
:“144MiB”,“region-split-size”:“96MiB”,“region-max-keys”:1440000,“region-split-keys”:960000,“consistency-check-method”:“mvcc”,“perf-level”:2},“coprocessor-v2”:{“coprocessor-plugin-directory
“:null},“rocksdb”:{“info-log-level”:“info”,“wal-recovery-mode”:2,“wal-dir”:””,“wal-ttl-seconds”:0,“wal-size-limit”:“0KiB”,“max-total-wal-size”:“4GiB”,“max-background-jobs”:10,“max-b
ackground-flushes”:4,“max-manifest-file-size”:“128MiB”,“create-if-missing”:true,“max-open-files”:40960,“enable-statistics”:true,“stats-dump-period”:“10m”,“compaction-readahead-size”:“0KiB”
,“info-log-max-size”:“1GiB”,“info-log-roll-time”:“0s”,“info-log-keep-log-file-num”:10,“info-log-dir”:"",“rate-bytes-per-sec”:“10GiB”,“rate-limiter-refill-period”:“100ms”,“rate-limiter-
mode”:2,“rate-limiter-auto-tuned”:true,“bytes-per-sync”:“1MiB”,“wal-bytes-per-sync”:“512KiB”,“max-sub-compactions”:3,“writable-file-max-buffer-size”:“1MiB”,“use-direct-io-for-flush-and-comp
action”:false,“enable-pipelined-write”:true,“enable-multi-batch-write”:true,“enable-unordered-write”:false,“defaultcf”:{“block-size”:“64KiB”,“block-cache-size”:“49464MiB”,“disable-block-cac
he”:false,“cache-index-and-filter-blocks”:true,“pin-l0-filter-and-index-blocks”:true,“use-bloom-filter”:true,“optimize-filters-for-hits”:true,“whole-key-filtering”:true,“bloom-filter-bits-per-key
“:10,“block-based-bloom-filter”:false,“read-amp-bytes-per-bit”:0,“compression-per-level”:[“no”,“no”,“lz4”,“lz4”,“lz4”,“zstd”,“zstd”],“write-buffer-size”:“128MiB”,“max-write-buffer-n
umber”:5,“min-write-buffer-number-to-merge”:1,“max-bytes-for-level-base”:“512MiB”,“target-file-size-base”:“8MiB”,“level0-file-num-compaction-trigger”:4,“level0-slowdown-writes-trigger”:32,“le
vel0-stop-writes-trigger”:64,“max-compaction-bytes”:“2GiB”,“compaction-pri”:3,“dynamic-level-bytes”:true,“num-levels”:7,“max-bytes-for-level-multiplier”:10,“compaction-style”:0,“disable-auto-
compactions”:false,“soft-pending-compaction-bytes-limit”:“192GiB”,“hard-pending-compaction-bytes-limit”:“256GiB”,“force-consistency-checks”:false,“prop-size-index-distance”:4194304,“prop-keys-i
ndex-distance”:40960,“enable-doubly-skiplist”:true,“enable-compaction-guard”:true,“compaction-guard-min-output-file-size”:“8MiB”,“compaction-guard-max-output-file-size”:“128MiB”,“bottommost-lev
el-compression”:“zstd”,“bottommost-zstd-compression-dict-size”:0,“bottommost-zstd-compression-sample-size”:0,“titan”:{“min-blob-size”:“1KiB”,“blob-file-compression”:“lz4”,“blob-cache-size”
:“0KiB”,“min-gc-batch-size”:“16MiB”,“max-gc-batch-size”:“64MiB”,“discardable-ratio”:0.5,“sample-ratio”:0.1,“merge-small-file-threshold”:“8MiB”,“blob-run-mode”:“normal”,“level-merge”:f
alse,“range-merge”:true,“max-sorted-runs”:20,“gc-merge-rewrite”:false}},“writecf”:{“block-size”:“64KiB”,“block-cache-size”:“29678MiB”,“disable-block-cache”:false,“cache-index-and-filter-bl
ocks”:true,“pin-l0-filter-and-index-blocks”:true,“use-bloom-filter”:true,“optimize-filters-for-hits”:false,“whole-key-filtering”:false,“bloom-filter-bits-per-key”:10,“block-based-bloom-filter”:f
alse,“read-amp-bytes-per-bit”:0,“compression-per-level”:[“no”,“no”,“lz4”,“lz4”,“lz4”,“zstd”,“zstd”],“write-buffer-size”:“128MiB”,“max-write-buffer-number”:5,“min-write-buffer-number-
to-merge”:1,“max-bytes-for-level-base”:“512MiB”,“target-file-size-base”:“8MiB”,“level0-file-num-compaction-trigger”:4,“level0-slowdown-writes-trigger”:20,“level0-stop-writes-trigger”:36,“max-
compaction-bytes”:“2GiB”,“compaction-pri”:3,“dynamic-level-bytes”:true,“num-levels”:7,“max-bytes-for-level-multiplier”:10,“compaction-style”:0,“disable-auto-compactions”:false,“soft-pending-c
ompaction-bytes-limit”:“192GiB”,“hard-pending-compaction-bytes-limit”:“256GiB”,“force-consistency-checks”:false,“prop-size-index-distance”:4194304,“prop-keys-index-distance”:40960,“enable-doubl
y-skiplist”:true,“enable-compaction-guard”:true,“compaction-guard-min-output-file-size”:“8MiB”,“compaction-guard-max-output-file-size”:“128MiB”,“bottommost-level-compression”:“zstd”,“bottommo
st-zstd-compression-dict-size”:0,“bottommost-zstd-compression-sample-size”:0,“titan”:{“min-blob-size”:“1KiB”,“blob-file-compression”:“lz4”,“blob-cache-size”:“0KiB”,“min-gc-batch-size”:“16
MiB”,“max-gc-batch-size”:“64MiB”,“discardable-ratio”:0.5,“sample-ratio”:0.1,“merge-small-file-threshold”:“8MiB”,“blob-run-mode”:“read-only”,“level-merge”:false,“range-merge”:true,“max-s
orted-runs”:20,“gc-merge-rewrite”:false}},“lockcf”:{“block-size”:“16KiB”,“block-cache-size”:“1GiB”,“disable-block-cache”:false,“cache-index-and-filter-blocks”:true,“pin-l0-filter-and-index-
blocks”:true,“use-bloom-filter”:true,“optimize-filters-for-hits”:false,“whole-key-filtering”:true,“bloom-filter-bits-per-key”:10,“block-based-bloom-filter”:false,“read-amp-bytes-per-bit”:0,“com
pression-per-level”:[“no”,“no”,“no”,“no”,“no”,“no”,“no”],“write-buffer-size”:“32MiB”,“max-write-buffer-number”:5,“min-write-buffer-number-to-merge”:1,“max-bytes-for-level-base”:“128
MiB”,“target-file-size-base”:“8MiB”,“level0-file-num-compaction-trigger”:1,“level0-slowdown-writes-trigger”:20,“level0-stop-writes-trigger”:36,“max-compaction-bytes”:“2GiB”,“compaction-pri”:
0,“dynamic-level-bytes”:true,“num-levels”:7,“max-bytes-for-level-multiplier”:10,“compaction-style”:0,“disable-auto-compactions”:false,“soft-pending-compaction-bytes-limit”:“192GiB”,“hard-pendi
ng-compaction-bytes-limit”:“256GiB”,“force-consistency-checks”:false,“prop-size-index-distance”:4194304,“prop-keys-index-distance”:40960,“enable-doubly-skiplist”:true,“enable-compaction-guard”:f
alse,“compaction-guard-min-output-file-size”:“8MiB”,“compaction-guard-max-output-file-size”:“128MiB”,“bottommost-level-compression”:“disable”,“bottommost-zstd-compression-dict-size”:0,“bottomm
ost-zstd-compression-sample-size”:0,“titan”:{“min-blob-size”:“1KiB”,“blob-file-compression”:“lz4”,“blob-cache-size”:“0KiB”,“min-gc-batch-size”:“16MiB”,“max-gc-batch-size”:“64MiB”,“dis
cardable-ratio”:0.5,“sample-ratio”:0.1,“merge-small-file-threshold”:“8MiB”,“blob-run-mode”:“read-only”,“level-merge”:false,“range-merge”:true,“max-sorted-runs”:20,“gc-merge-rewrite”:false}
},“raftcf”:{“block-size”:“16KiB”,“block-cache-size”:“128MiB”,“disable-block-cache”:false,“cache-index-and-filter-blocks”:true,“pin-l0-filter-and-index-blocks”:true,“use-bloom-filter”:true,
“optimize-filters-for-hits”:true,“whole-key-filtering”:true,“bloom-filter-bits-per-key”:10,“block-based-bloom-filter”:false,“read-amp-bytes-per-bit”:0,“compression-per-level”:[“no”,“no”,“no”
,“no”,“no”,“no”,“no”],“write-buffer-size”:“128MiB”,“max-write-buffer-number”:5,“min-write-buffer-number-to-merge”:1,“max-bytes-for-level-base”:“128MiB”,“target-file-size-base”:“8MiB”,
“level0-file-num-compaction-trigger”:1,“level0-slowdown-writes-trigger”:20,“level0-stop-writes-trigger”:36,“max-compaction-bytes”:“2GiB”,“compaction-pri”:0,“dynamic-level-bytes”:true,“num-leve
ls”:7,“max-bytes-for-level-multiplier”:10,“compaction-style”:0,“disable-auto-compactions”:false,“soft-pending-compaction-bytes-limit”:“192GiB”,“hard-pending-compaction-bytes-limit”:“256GiB”,”
force-consistency-checks”:false,“prop-size-index-distance”:4194304,“prop-keys-index-distance”:40960,“enable-doubly-skiplist”:true,“enable-compaction-guard”:false,“compaction-guard-min-output-file-s
ize”:“8MiB”,“compaction-guard-max-output-file-size”:“128MiB”,“bottommost-level-compression”:“disable”,“bottommost-zstd-compression-dict-size”:0,“bottommost-zstd-compression-sample-size”:0,“ti
tan”:{“min-blob-size”:“1KiB”,“blob-file-compression”:“lz4”,“blob-cache-size”:“0KiB”,“min-gc-batch-size”:“16MiB”,“max-gc-batch-size”:“64MiB”,“discardable-ratio”:0.5,“sample-ratio”:0.1
,“merge-small-file-threshold”:“8MiB”,“blob-run-mode”:“read-only”,“level-merge”:false,“range-merge”:true,“max-sorted-runs”:20,“gc-merge-rewrite”:false}},“titan”:{“enabled”:false,“dirname
“:””,“disable-gc”:false,“max-background-gc”:4,“purge-obsolete-files-period”:“10s”}},“raftdb”:{“wal-recovery-mode”:2,“wal-dir”:"",“wal-ttl-seconds”:0,“wal-size-limit”:“0KiB”,“max-tota
l-wal-size”:“4GiB”,“max-background-jobs”:4,“max-background-flushes”:1,“max-manifest-file-size”:“20MiB”,“create-if-missing”:true,“max-open-files”:40960,“enable-statistics”:true,“stats-dump-p
eriod”:“10m”,“compaction-readahead-size”:“0KiB”,“info-log-max-size”:“1GiB”,“info-log-roll-time”:“0s”,“info-log-keep-log-file-num”:10,“info-log-dir”:"",“info-log-level”:“info”,“max-s
ub-compactions”:2,“writable-file-max-buffer-size”:“1MiB”,“use-direct-io-for-flush-and-compaction”:false,“enable-pipelined-write”:true,“enable-unordered-write”:false,“allow-concurrent-memtable-wri
te”:true,“bytes-per-sync”:“1MiB”,“wal-bytes-per-sync”:“512KiB”,“defaultcf”:{“block-size”:“64KiB”,“block-cache-size”:“2GiB”,“disable-block-cache”:false,“cache-index-and-filter-blocks”:t
rue,“pin-l0-filter-and-index-blocks”:true,“use-bloom-filter”:false,“optimize-filters-for-hits”:true,“whole-key-filtering”:true,“bloom-filter-bits-per-key”:10,“block-based-bloom-filter”:false,“re
ad-amp-bytes-per-bit”:0,“compression-per-level”:[“no”,“no”,“lz4”,“lz4”,“lz4”,“zstd”,“zstd”],“write-buffer-size”:“128MiB”,“max-write-buffer-number”:5,“min-write-buffer-number-to-merge
“:1,“max-bytes-for-level-base”:“512MiB”,“target-file-size-base”:“8MiB”,“level0-file-num-compaction-trigger”:4,“level0-slowdown-writes-trigger”:20,“level0-stop-writes-trigger”:36,“max-compactio
n-bytes”:“2GiB”,“compaction-pri”:0,“dynamic-level-bytes”:true,“num-levels”:7,“max-bytes-for-level-multiplier”:10,“compaction-style”:0,“disable-auto-compactions”:false,“soft-pending-compaction
-bytes-limit”:“192GiB”,“hard-pending-compaction-bytes-limit”:“256GiB”,“force-consistency-checks”:false,“prop-size-index-distance”:4194304,“prop-keys-index-distance”:40960,“enable-doubly-skiplis
t”:true,“enable-compaction-guard”:false,“compaction-guard-min-output-file-size”:“8MiB”,“compaction-guard-max-output-file-size”:“128MiB”,“bottommost-level-compression”:“disable”,“bottommost-zs
td-compression-dict-size”:0,“bottommost-zstd-compression-sample-size”:0,“titan”:{“min-blob-size”:“1KiB”,“blob-file-compression”:“lz4”,“blob-cache-size”:“0KiB”,“min-gc-batch-size”:“16MiB”
,“max-gc-batch-size”:“64MiB”,“discardable-ratio”:0.5,“sample-ratio”:0.1,“merge-small-file-threshold”:“8MiB”,“blob-run-mode”:“normal”,“level-merge”:false,“range-merge”:true,“max-sorted-ru
ns”:20,“gc-merge-rewrite”:false}},“titan”:{“enabled”:false,“dirname”:””,“disable-gc”:false,“max-background-gc”:4,“purge-obsolete-files-period”:“10s”}},“raft-engine”:{“enable”:false,“d
ir”:"/data/tikv/raft-engine",“recovery-mode”:“tolerate-corrupted-tail-records”,“bytes-per-sync”:“256KiB”,“target-file-size”:“128MiB”,“purge-threshold”:“10GiB”,“cache-limit”:“1GiB”,“ba
tch-compression-threshold”:“8KiB”},“security”:{“ca-path”:"",“cert-path”:"",“key-path”:"",“cert-allowed-cn”:[],“redact-info-log”:null,“encryption”:{“data-encryption-method”:“plaintex
t”,“data-key-rotation-period”:“7d”,“enable-file-dictionary-log”:true,“file-dictionary-rewrite-threshold”:1000000,“master-key”:{“type”:“plaintext”},“previous-master-key”:{“type”:“plaintext
“}}},“import”:{“num-threads”:8,“stream-channel-window”:128,“import-mode-timeout”:“10m”},“backup”:{“num-threads”:18,“batch-size”:8,“sst-max-size”:“144MiB”},“pessimistic-txn”:{“wait-for
-lock-timeout”:“1s”,“wake-up-delay-duration”:“20ms”,“pipelined”:true},“gc”:{“ratio-threshold”:1.1,“batch-keys”:512,“max-write-bytes-per-sec”:“0KiB”,“enable-compaction-filter”:true,“comp
action-filter-skip-version-check”:false},“split”:{“qps-threshold”:3000,“split-balance-score”:0.25,“split-contained-score”:0.5,“detect-times”:10,“sample-num”:20,“sample-threshold”:100,“byte-th
reshold”:31457280},“cdc”:{“min-ts-interval”:“1s”,“hibernate-regions-compatible”:true,“incremental-scan-threads”:4,“incremental-scan-concurrency”:6,“incremental-scan-speed-limit”:“128MiB”,“s
ink-memory-quota”:“512MiB”,“old-value-cache-memory-quota”:“512MiB”,“old-value-cache-size”:0},“resolved-ts”:{“enable”:true,“advance-ts-interval”:“1s”,“scan-lock-pool-size”:2},“resource-met
ering”:{“enabled”:false,“agent-address”:””,“report-agent-interval”:“1m”,“max-resource-groups”:2000,“precision”:“1s”}}"]
[2021/09/09 09:40:59.592 +08:00] [DEBUG] [util.rs:408] [“request sent: 1”]
[2021/09/09 09:40:59.593 +08:00] [INFO] [mod.rs:118] [“encryption: none of key dictionary and file dictionary are found.”]
[2021/09/09 09:40:59.593 +08:00] [INFO] [mod.rs:479] [“encryption is disabled.”]
[2021/09/09 09:40:59.593 +08:00] [ERROR] [server.rs:986] [“failed to init io snooper”] [err_code=KV:Unknown] [err="“IO snooper is not started due to not compiling with BCC”"]
[2021/09/09 09:40:59.670 +08:00] [INFO] [future.rs:146] [“starting working thread”] [worker=gc-worker]

  1. reserve-space 默认会占用 5 GB ,导致无法启动,如果只是测试,您可以把这里的参数改为 0.https://docs.pingcap.com/zh/tidb/stable/tikv-configuration-file#reserve-space
  2. 如果是正式环境,建议扩容磁盘,按照标准配置安装
    https://docs.pingcap.com/zh/tidb/stable/hardware-and-software-requirements

发帖截图 已经显示了,新盘,1T的空间,才用了19G。硬件除了 万兆 ,都符合。
image

所以你发的和别人发的 帖子 解决方式都无法解决。而且4.0 版本没有这个报错。
我猜这个是5.0 版本代码新增的。如果影响不大,我就忽略他继续使用。毕竟这是准备上生产环境的

没有影响,这个报错可以忽略,这个功能暂时还未启用,之后会修改。

好的,因为这个日志是error级别,造成了困惑。感谢回答

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。