You are not logged in.

#1 2005-07-21 22:39:43

sh__
Member
Registered: 2005-07-19
Posts: 272

Pacman-optimize fails [SOLVED]

Pacman-optimize is giving me the "integrity check FAILED, reverting to old database" error. The error persists with the patch that converts 'tar c' to 'tar --same-order -c'.

The strange thing is that if I copy the directory manually, the size changes:

$ du -s /var/lib/pacman

33832   /var/lib/pacman/

$ cp -a /var/lib/pacman /var/lib/pacman.new
$ du -s /var/lib/pacman.new

33860   pacman.new/

The size of the individual directories in /var/lib/pacman* are the same, only the total sums are not equal.

I have used the pacman-defrag script in the past without errors, but now it is failing too.

Offline

#2 2005-07-21 22:49:12

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Pacman-optimize fails [SOLVED]

you may want to boot into a live cd and run a check on your filesystem, at least rule that out. For reiserfs its reiserfsck, dunno what the others are.

Offline

#3 2005-07-21 23:49:44

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: Pacman-optimize fails [SOLVED]

Thanks, I realized what was causing the problem.

I had tweaked my ext3 filesystem with 'tune2fs -O dir_index' after my last defragmentation, so the copied directories contained different metadata than the original ones.

I just needed to convert all the directories on the partition to the same format.  Running 'e2fsck -fD /dev/hda3' did the trick, and pacman-optimize works now.

Offline

Board footer

Powered by FluxBB