Comments (5)
Hi,
When did you deleted this files?
Do you have old metadata file or metadata backup?
I mean files like metadata.mfs.back
metadata.mfs.back.1
in /var/lib/mfs
folder?
If yes:
- Stop mfsmaster
- BACKUP ALL METADATA FILES!
- Move
/var/lib/mfs/metadata.mfs
file to other location. - Find the correct metadata file.
cp /var/lib/mfs/metadata.mfs.back.1
(or different older metadata file)/var/lib/mfs/metadata.mfs
- Start master.
I'm looking forward to hearing from you.
from moosefs.
Aren't those files (supposed to be) on the trash bin?
Check point 8.13 of the manual:
https://moosefs.com/Content/Downloads/moosefs-3-0-users-manual.pdf
from moosefs.
thank for your reply.
I lost my files for one day.
the metadata.mfs.back.1
file is just one hour older than metadata.mfs.No other backup files.
I try your suggestions,but the result is same.
and I mount /mfs
with -m
as meta
,but the trash dir is empty.
from moosefs.
hi @xandrus
when all the chunkservers report wrong metaid, i delete all the chunkservers /path/from/mfshdd/.metaid file, i got all the chunks pending deletion from cgiserv report. I tried replace the master's meta file from metalogger's, but got the same result, and the trash is empty, how can i get these pending deletion chunks back, thank you !
from moosefs.
First, I would like to explain about trash vs. chunks pending deletion, because there is a lot of misunderstanding here. Chunks pending deletion belong to files that don't exist in the filesystem anymore. Files in trash do still exist in the filesystem. You can think about trash as just another directory in mfs, although a special one, that is not visible, unless you specifically mount it. So as long as files exist in this special directory, their chunks will never be pending deletion.
Chunks pending deletion come from two sources only:
- a file has been deleted completely (it can no longer be found even in trash), but the system did not have time yet to physically delete the chunks belonging to that file; those chunks are marked as pending deletion and removed physically as soon as possible
- a chunkserver connects to master and reports chunks that the master cannot find in metadata (i.e. they do not belong to any file); those chunks are marked as pending deletion, but kept from deletion for a number of days (default: 7)
Now, if you unexpectedly end up with a lot of chunks pending deletion and no files in the system, that means that at some point your master server (re)started with wrong metadata. The master has a lot of safeguards to prevent metadata corruption, but can still be forced to start with empty metadata by user (system admin). In that case the only solution is to stop the master, backup and remove the current metadata.mfs file, and restore a previous metadata.mfs file (for example metadata.mfs.back or metadata.mfs.back.1 - those two are created with default mfs settings). In general, the older file should be significantly bigger than your current one. If you have a metalogger, it keeps more copies of metadata.mfs.back.N - you can try to use one of those, typically the biggest one is the right one to use.
Of course, if you deleted the .metaid files on chunkservers already, you will have to delete them again when you use a backup of metadata.mfs file. But you should never have deleted those in the first place. If the system reports metaid conflict, it means something is wrong with your metadata on the master server, not with .metaid files on chunkservers.
If you use the oldest backup metadata file and you still don't see your files, that means that your metadata is gone. Metadata cannot be restored if there is no backup. If your files were small (less than 64MB), there is still a way to recover some data, but you will not recover your directory structure.
But first try to find an older metadata.mfs.back.N file that still works. Let us know if you succeeded with that or not.
from moosefs.
Related Issues (20)
- supports IPv6 HOT 4
- [BUG] The data displayed by mfs has garbled characters HOT 8
- mfsmaster -a restore hangs with 100% CPU usage HOT 5
- [Question] 2 copys of chunks on one chunkserver HOT 1
- [BUG] Performance impact and write amplification with CHANGELOG_SAVE_MODE = 2 HOT 9
- Do the Master and Chunk servers have to be the same architecture? HOT 3
- chunkserver: High speed rebalance blocks deletions? HOT 7
- [BUG] fuse: bad mount point `/matrix/synapse/storage/media-store/': Input/output error HOT 2
- [FEATURE] Official packages of MooseFS / MooseFS Pro for Debian 12 Bookworm HOT 2
- [BUG] mfsbdev and map + unmap + map on /dev/ndb0 = input/output error HOT 1
- [FEATURE] mfsclient mfstimeout default 0 HOT 1
- mfsmaster register error: No such file or directory HOT 3
- Can't mount MooseFS on Proxmox 8.1 properly. HOT 4
- MooseFS 3.x Erasure Code Support
- [BUG] mfsmaster hung and in unkillable D state HOT 3
- [BUG] DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 2
- [FEATURE] mfsbdev as standard (TCP/Unix Socket) NBD server HOT 1
- [BUG] Empty chunks and copies with different checksums HOT 8
- Recovery data from chunks without metadata :) HOT 4
- [BUG] FUSE mount forces DIRECT I/O mode with Samba
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 moosefs.