Skip to content
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

卷被设置为只读 #5514

Open
adacnvwp opened this issue Apr 21, 2024 · 4 comments
Open

卷被设置为只读 #5514

adacnvwp opened this issue Apr 21, 2024 · 4 comments

Comments

@adacnvwp
Copy link

请问什么情况下卷会被设置为只读,硬盘空间还有200多gb。用s3插入了70万个文件,每个文件10byte左右。目前不清楚为什么被设置为只读了,谢谢

@adacnvwp
Copy link
Author

I0422 23:40:27.802188 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/test_13.idx to memory
I0422 23:40:27.802188 volume_loading.go:91 readSuperBlock volume 6 version 3
W0422 23:40:27.803188 volume_checking.go:121 data file E:\seaweedFS_readonly\data2/test_12.dat actual 18415560 bytes expected 18400272 bytes!
I0422 23:40:27.803688 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/1.idx to memory
I0422 23:40:27.803688 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/5.idx to memory
I0422 23:40:27.804188 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/test_15.idx to memory
W0422 23:40:27.804688 volume_checking.go:121 data file E:\seaweedFS_readonly\data2/test_10.dat actual 18415536 bytes expected 18393488 bytes!
I0422 23:40:27.805188 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/test_14.idx to memory
I0422 23:40:27.805188 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/4.idx to memory
I0422 23:40:27.805688 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/2.idx to memory
W0422 23:40:27.806189 volume_checking.go:121 data file E:\seaweedFS_readonly\data2/test_11.dat actual 18481128 bytes expected 18467192 bytes!
I0422 23:40:27.820191 volume_loading.go:128 volumeDataIntegrityChecking failed data file E:\seaweedFS_readonly\data2/test_11.dat actual 18481128 bytes expected 18467192 bytes
I0422 23:40:27.806688 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/3.idx to memory
I0422 23:40:27.808189 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/6.idx to memory
I0422 23:40:27.808189 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_13.dat, replication=001 v=3 size=1038232 ttl=
I0422 23:40:27.812189 volume_loading.go:128 volumeDataIntegrityChecking failed data file E:\seaweedFS_readonly\data2/test_12.dat actual 18415560 bytes expected 18400272 bytes
I0422 23:40:27.812189 disk_location.go:182 data file E:\seaweedFS_readonly\data2/1.dat, replication=001 v=3 size=117587456 ttl=
I0422 23:40:27.812690 disk_location.go:182 data file E:\seaweedFS_readonly\data2/5.dat, replication=001 v=3 size=85194192 ttl=
I0422 23:40:27.814190 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_15.dat, replication=001 v=3 size=1017024 ttl=
I0422 23:40:27.814190 volume_loading.go:128 volumeDataIntegrityChecking failed data file E:\seaweedFS_readonly\data2/test_10.dat actual 18415536 bytes expected 18393488 bytes
I0422 23:40:27.816690 disk_location.go:182 data file E:\seaweedFS_readonly\data2/4.dat, replication=001 v=3 size=125588280 ttl=
I0422 23:40:27.816690 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_14.dat, replication=001 v=3 size=1045624 ttl=
I0422 23:40:27.819691 disk_location.go:182 data file E:\seaweedFS_readonly\data2/2.dat, replication=001 v=3 size=119345712 ttl=
I0422 23:40:27.830693 disk_location.go:182 data file E:\seaweedFS_readonly\data2/3.dat, replication=001 v=3 size=123128560 ttl=
I0422 23:40:27.831693 disk_location.go:182 data file E:\seaweedFS_readonly\data2/6.dat, replication=001 v=3 size=106890264 ttl=
I0422 23:40:27.838195 volume_loading.go:91 readSuperBlock volume 16 version 3
I0422 23:40:27.841195 volume_loading.go:91 readSuperBlock volume 17 version 3
I0422 23:40:27.841195 volume_loading.go:91 readSuperBlock volume 18 version 3
I0422 23:40:27.845196 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_11.dat, replication=001 v=3 size=18481128 ttl=
I0422 23:40:27.847196 volume_loading.go:91 readSuperBlock volume 7 version 3
I0422 23:40:27.855197 volume_loading.go:91 readSuperBlock volume 8 version 3
I0422 23:40:27.861698 volume_loading.go:91 readSuperBlock volume 9 version 3
I0422 23:40:27.864199 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_12.dat, replication=001 v=3 size=18415560 ttl=
I0422 23:40:27.872200 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/test_16.idx to memory
I0422 23:40:27.873200 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/test_17.idx to memory
I0422 23:40:27.873700 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_10.dat, replication=001 v=3 size=18415536 ttl=
I0422 23:40:27.873700 volume_loading.go:142 loading memory index E:\seaweedFS_readonly\data2/test_18.idx to memory
W0422 23:40:27.874700 volume_checking.go:121 data file E:\seaweedFS_readonly\data2/test_7.dat actual 18481064 bytes expected 18464112 bytes!
W0422 23:40:27.875200 volume_checking.go:121 data file E:\seaweedFS_readonly\data2/test_8.dat actual 18415528 bytes expected 18410848 bytes!
W0422 23:40:27.875701 volume_checking.go:121 data file E:\seaweedFS_readonly\data2/test_9.dat actual 18415552 bytes expected 18394824 bytes!
I0422 23:40:27.877701 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_16.dat, replication=001 v=3 size=1047216 ttl=
I0422 23:40:27.878201 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_17.dat, replication=001 v=3 size=1038968 ttl=
I0422 23:40:27.878201 volume_loading.go:128 volumeDataIntegrityChecking failed data file E:\seaweedFS_readonly\data2/test_7.dat actual 18481064 bytes expected 18464112 bytes
I0422 23:40:27.878701 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_18.dat, replication=001 v=3 size=1055712 ttl=
I0422 23:40:27.880202 volume_loading.go:128 volumeDataIntegrityChecking failed data file E:\seaweedFS_readonly\data2/test_8.dat actual 18415528 bytes expected 18410848 bytes
I0422 23:40:27.880701 volume_loading.go:128 volumeDataIntegrityChecking failed data file E:\seaweedFS_readonly\data2/test_9.dat actual 18415552 bytes expected 18394824 bytes

I0422 23:40:27.914707 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_9.dat, replication=001 v=3 size=18415552 ttl=
I0422 23:40:27.915208 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_7.dat, replication=001 v=3 size=18481064 ttl=
I0422 23:40:27.916208 disk_location.go:182 data file E:\seaweedFS_readonly\data2/test_8.dat, replication=001 v=3 size=18415528 ttl=
I0422 23:40:27.916708 disk_location.go:238 Store started on dir: E:\seaweedFS_readonly\data2 with 18 volumes max 18
I0422 23:40:27.917208 disk_location.go:241 Store started on dir: E:\seaweedFS_readonly\data2 with 0 ec shards
I0422 23:40:27.917208 volume_grpc_client_to_master.go:52 Volume server start with seed master nodes: [localhost:9333]
I0422 23:40:27.917708 volume.go:370 Start Seaweed volume server 30GB 3.65 0edc5aa at 192.168.123.80:9223
I0422 23:40:27.919209 volume_grpc_client_to_master.go:109 Heartbeat to: localhost:9333

我使用weed fix 修复,但是他只修复索引,根本无法修复dat文件

@kungf
Copy link
Contributor

kungf commented Apr 23, 2024

" E:\seaweedFS_readonly\data2 with 18 volumes max 18" 你的volumeServer的volume个数到了最大值,代码里有计算公式,启动volume server时,可以指定maxVolume个数,不指定就计算出最大的值

@adacnvwp
Copy link
Author

我明白你的意思,可是我只是想明白如何修复这些被设置为只读的卷。这是我存在疑问的地方。我找不到任何命令来修复被设置为只读的卷,让他变成可以写入。

@eliphatfs
Copy link

Meeting the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants