Comments (8)
"some volumes are broken" do they fail to load or just become readonly?
3.63 removed wrong logic to auto fixing volume data, and needs to manually fix the errors.
There should not be any data lost.
W0312 17:58:14.860120 volume_checking.go:121 data file /data/depo_93069.dat actual 10910368424 bytes expected 10908271200 bytes!
for this particular warning, you can truncate file /data/depo_93069.dat to 10908271200 bytes
from seaweedfs.
Those volumes are read only, seems to load.
How can I truncate file?
from seaweedfs.
truncate -s [number of bytes] filename
from seaweedfs.
I still have problems with this :/
Case 1
Before using it, volume server log showed this at start:
W0313 05:54:23.722144 volume_checking.go:121 data file /data/depo_55.dat actual 11451781248 bytes expected 11449684024 bytes!
After using it, there is some needle verify error during fsck
truncate -s 11449684024 /data/depo_55.dat
# volume server restart, it loaded without errors in log about volume 55
> volume.fsck -collection depo -verifyNeedles -volumeId 55
total 5920 directories, 25770 files
failed to read 55:157934 needle status of file REDACTED: rpc error: code = Unknown desc = EOF
Total entries:5479 orphan:0 0.00% 0B
This could be normal if multiple filers or no filers are used.
no orphan data
and error in volume server log
E0313 05:59:54.112599 needle_read.go:45 /data/depo_55.dat read 0 dataSize 2097224 offset 11449684024 fileSize 11449684024: EOF
Case 2
Replication 010, different sizes on two hosts.
Strawberry use EXT4, nas use XFS.
I didn't modify it yet.
I0313 06:52:01.357663 volume_loading.go:142 loading memory index /data/danbooru_4.idx to memory
I0313 06:52:01.360191 disk_location.go:182 data file /data/danbooru_4.dat, replication=010 v=3 size=1754610808 ttl=
root@strawberry:~# ls -al /docker/containers/seaweedfs/volume/danbooru_4.dat
-rw-r--r-- 1 root root 1754610808 Mar 3 16:33 /docker/containers/seaweedfs/volume/danbooru_4.dat
root@strawberry:~# ls -ls --block-size=1k /docker/containers/seaweedfs/volume/danbooru_4.dat
10485764 -rw-r--r-- 1 root root 1713488 Mar 3 16:33 /docker/containers/seaweedfs/volume/danbooru_4.dat
W0313 06:17:06.842800 volume_checking.go:121 data file /data/danbooru_4.dat actual 1754610800 bytes expected 1754340568 bytes!
I0313 06:17:06.843036 volume_loading.go:128 volumeDataIntegrityChecking failed data file /data/danbooru_4.dat actual 1754610800 bytes expected 1754340568 bytes
root@nas:~# ls -al /mnt/user/seaweedfs/volume/danbooru_4.dat
-rw-r--r-- 1 root root 1754610800 Mar 3 16:33 /mnt/user/seaweedfs/volume/danbooru_4.dat
root@nas:~# ls -ls --block-size=1k /mnt/user/seaweedfs/volume/danbooru_4.dat
10485760 -rw-r--r-- 1 root root 1713488 Mar 3 16:33 /mnt/user/seaweedfs/volume/danbooru_4.dat
from seaweedfs.
I had the same problem and weed compact
solved it
from seaweedfs.
for case 1, the truncate
did not work well. You can use "weed fix" since the .dat file is correct.
from seaweedfs.
Case 1
Seems OK after running weed fix, again after version upgrade.
Previously I unmarked it as read only earlier, not sure if that somehow changed anything.
[admin@MikroTik Core] > /log/print where message~"depo_55"
07:24:23 container,info,debug I0315 06:24:23.995707 volume_loading.go:142 loading memory index /data/depo_55.idx to memory
07:24:23 container,info,debug I0315 06:24:23.997279 disk_location.go:182 data file /data/depo_55.dat, replication=000 v=3 size=11449684024 ttl=
> volume.fsck -collection depo -verifyNeedles -volumeId 55
total 5920 directories, 25770 files
Total entries:5479 orphan:0 0.00% 0B
This could be normal if multiple filers or no filers are used.
no orphan data
Case 3
Similar to case 1 and 2 but It's on volume server that's easier to work on for me.
I tried compact but it didn't help.
Note, time inside container is GMT+0 and on host which weed compact is executed is GMT+1
root@nas:/mnt/cache/ssd/seaweed# ./weed363 compact -volumeId 93069 -collection depo -dir /mnt/cache/ssd/seaweed/volume/
I0315 07:43:19.386159 volume_loading.go:91 readSuperBlock volume 93069 version 3
W0315 07:43:19.386292 volume_checking.go:121 data file /mnt/cache/ssd/seaweed/volume/depo_93069.dat actual 10910368424 bytes expected 10908271200 bytes!
I0315 07:43:19.386358 volume_loading.go:128 volumeDataIntegrityChecking failed data file /mnt/cache/ssd/seaweed/volume/depo_93069.dat actual 10910368424 bytes expected 10908271200 bytes
I0315 07:43:19.387426 volume_loading.go:91 readSuperBlock volume 93069 version 3
docker logs -f seaweedfs-volume-nvme |& grep depo_93069
W0315 06:44:09.712158 volume_checking.go:121 data file /data/depo_93069.dat actual 10910368424 bytes expected 10908271200 bytes!
I0315 06:44:09.712168 volume_loading.go:128 volumeDataIntegrityChecking failed data file /data/depo_93069.dat actual 10910368424 bytes expected 10908271200 bytes
I0315 06:44:09.713530 disk_location.go:182 data file /data/depo_93069.dat, replication=000 v=3 size=10910368424 ttl=
CLI docs
Compact default method is 0, but it's not listed in help.
seaweedfs/weed/command/compact.go
Line 31 in 54ee732
I created PR to fix it
#5379
Questions
Is there any way to list files located by volume ID by weed shell?
I'll try to check if files on problematic volumes are ok but I need to locate them first.
from seaweedfs.
I was able to move out files from all my Seaweedfs collections.
All my collections besides one weren't frequently changed.
Only one ~20GB file was lost caused to I/O problems in logs.
Last remaining collection, very active (frequent creating and deleting) got multiple I/O problems and probably multiple small files were lost.
I'm guessing that tailing volume when vacuum run was the problem in 3.62.
I don't use Seaweedfs anymore, I migrated one small bucket to minio so I'm marking this as closed.
from seaweedfs.
Related Issues (20)
- [s3] Yandex disk as a backend
- error parse -port.readonly HOT 2
- Error in setup HOT 5
- Enable the ppc64le architecture support. HOT 2
- S3 didn't delete empty folder when delete all files in folder after upgrade to 3.66 HOT 2
- Object does not exist using s3 api HOT 15
- filer.backup fails with panic: assignment to entry in nil map HOT 2
- filer.backup fails: InvalidDigest: The Content-MD5 you specified was invalid HOT 3
- SeaweedS3 API: Setting timeout on S3 APIs and S3 Client is not working as expected
- Helm-Chart: make the MySQL-Secret optional HOT 1
- Helm-Chart: second row in grafana dashboard uses hardcoded datasource
- Visualizations used in the Grafana boards are deprecated (AngularJS) HOT 2
- gollvm compiler support
- SeaweedFS apps not works on the Windows HOT 5
- [Helm chart] seaweedfs service account usage is not clear in Filer
- Disk is full when testing performance with fio HOT 1
- Major issues with EC - "too few shards given" during nearly every reconstruction HOT 1
- about full.tar.gz HOT 1
- Weed shell incorretly resolves volume grpc port HOT 4
- Help with Quick Start S3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seaweedfs.