New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: the datanodes is not WRITABLE #3173
Comments
Maybe the size of your hardisk less than RETAIN size. datanode_disks | string array | Format: PATH:RETAIN, PATH: disk mount path, RETAIN: the minimum reserved space under this path, and the disk is considered full if the remaining space is less than this value. Unit: bytes. (Recommended value: 20G~50G) -- | -- | -- |
bin/cfs-cli cluster info tail -f dataNode_error.log |
@corffee Please show the output of |
[root@worker1 ~]#bin/cfs-cli datanode info 172.16.1.101:17310 |
Please show the configuration of datanode. |
By the way show the output of |
[root@worker1 data]# more conf/data1.conf /bin/cfs-cli vol info objtest |
the dir /home/aspire/cubefs/data/data1/disk created ? @corffee |
yes,folder already exists。And after restarting all services, the issue cannot be resolved。 |
Available Space of data node must be more than 10GB,check the code master/data_node.go: func (dataNode *DataNode) isWriteAble() (ok bool) {
dataNode.RLock()
defer dataNode.RUnlock()
if dataNode.isActive && dataNode.AvailableSpace > 10*util.GB && !dataNode.RdOnly {
ok = true
}
return
} ID : 6 |
Contact Details
No response
Is there an existing issue for this?
Priority
fatal
Environment
Current Behavior
When I use cubefs, creating volume fails, check the node status and find that the datanode is not writable。
./cfs-cli datanode list
[Data nodes]
ID ADDRESS WRITABLE STATUS
6 172.16.1.101:17310 No Active
7 172.16.1.102:17310 No Active
8 172.16.1.103:17310 No Active
9 172.16.1.104:17310 No Active
Expected Behavior
No response
Steps To Reproduce
No response
CubeFS Log
more dataNode_error.log
2024/03/05 10:19:19.348249 [ERROR] repl_protocol.go:410: id[Req(16)_Partition(18)_Extent(0)_ExtentOffset(0)_KernelOffset(0)Size(30302)
Opcode(OpWrite)_CRC(119113069)_ResultMesg(IntraGroupNetErr)] isPrimaryBackReplLeader[true] remote[172.16.1.101:42490], err[ActionPrepare
Pkt_addExtentInfo partition 18 GetAvailableTinyExtent error no available extent]
2024/03/05 10:19:19.558907 [ERROR] repl_protocol.go:410: id[Req(51)_Partition(21)_Extent(0)_ExtentOffset(0)_KernelOffset(0)_Size(3456)_O
pcode(OpWrite)_CRC(1759042440)_ResultMesg(IntraGroupNetErr)] isPrimaryBackReplLeader[true] remote[172.16.1.101:42496], err[ActionPrepare
Pkt_addExtentInfo partition 21 GetAvailableTinyExtent error no available extent]
2024/03/05 10:19:19.625427 [ERROR] repl_protocol.go:410: id[Req(84)_Partition(28)_Extent(0)_ExtentOffset(0)_KernelOffset(0)_Size(3455)_O
pcode(OpWrite)_CRC(1451489064)_ResultMesg(IntraGroupNetErr)] isPrimaryBackReplLeader[true] remote[172.16.1.101:42492], err[ActionPrepare
Pkt_addExtentInfo partition 28 GetAvailableTinyExtent error no available extent]
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered: