aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: XFS: part.met.bak file is a useless backup  (Read 3157 times)

Archmage

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 119
XFS: part.met.bak file is a useless backup
« on: July 07, 2008, 10:34:04 AM »

I'm using the XFS-filesystem, but when my PC crash/hardware reset/has an electricy short cut than the part.met-files for the files that I was active downloading are trashed (they have 0 bytes). Moreover the part.met.bak-files are also trashed (they also have 0 bytes), leaving me with an absolute useless part-file.

Since aMule isn't storing the information what part-files are what file, I'm left with no clue what to do with this files, beside deleting them and redownload everything.

I'm sure that this isn't the planed behavior.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: XFS: part.met.bak file is a useless backup
« Reply #1 on: July 08, 2008, 10:46:47 PM »

Sounds like a full or inconsistent file system to me. Did you run a fsck ? What's your free disc space ?
Note - free disc space checking was fixed only recently.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Archmage

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 119
Re: XFS: part.met.bak file is a useless backup
« Reply #2 on: July 12, 2008, 02:13:40 PM »

fsck didn't report any errors. It is a 250 GB hard drive, with one 250 GB XFS partition, where 130 GB is free.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: XFS: part.met.bak file is a useless backup
« Reply #3 on: July 12, 2008, 03:07:35 PM »

XFS is the least suitable filesystem for a system that has to face shutdowns. Use a more solid filesystem, or buy a electricity accumulator to save your data before shutdown.
Logged

Archmage

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 119
Re: XFS: part.met.bak file is a useless backup
« Reply #4 on: July 14, 2008, 02:22:53 PM »

Isn't there another way instead of switching the filesystem?

I'm very happy with the performance so far. The only problem are the files that are currectly open when there is a problem. And when downloading the part.met, the part.met.bak seems to be both open.

Would it be possbible to have one close when downloading, so that we have a part.met.bak that can be used for something?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: XFS: part.met.bak file is a useless backup
« Reply #5 on: July 14, 2008, 11:07:58 PM »

Both are closed while downloading. Occasionally the met file gets updated, and immedeately after that copied to the bak file. (Not if the met file should be zero at that moment for whatever reason.)

The only explanation for your problem is that the writes get stuck in a disc cache, and then get trashed at your "PC crash/hardware reset/has an electricy short cut" event. What about that btw ? This is 2008. Computers don't crash all the time, not even those running Windows.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon