This works with bind-mount, I might try with softlinks as well.

Going through git's data on push/pull can take ages on a spindle disk even if the repo is rather small in size. This is especially true if you are used to ssd speeds, but ssd storage is expensive. Storing the annex objects on a cheap spindle disk and everything else on a ssd makes things a lot faster.

Update: git-annex supports .git/annex/ being moved to a different disk than the rest of the repisitory, but does not support individual subdirectories, like .git/annex/objects/ being on a different disk than the main .git/annex/ directory. --Joey

Either option should work fine, but git gc --aggressive will probably avoid most of git's seeking.
Comment by http://joey.kitenet.net/ Sat Apr 2 17:48:29 2011

I'll give it a try as soon as I get rid of this:

% git annex fsck

fatal: index file smaller than expected fatal: index file smaller than expected % git status fatal: index file smaller than expected %

And no, I am not sure where that is coming from all of a sudden... (it might have to do with a hard lockup of the whole system due to a faulty hdd I tested, but I didn't do anything to it for ages before that lock-up. So meh. Also, this is prolly off topic in here)

Richard

For future reference, git can recover from a corrupted index file with rm .git/index; git reset --mixed.

Of course, you lose any staged changes that were in the old index file, and may need to re-stage some files.

Comment by http://joey.kitenet.net/ Sun Apr 3 01:48:57 2011
Thanks a lot. I tried various howtos around the net, but none of them worked; yours did. (I tried it in one of the copies of the broken repo which I keep around for obvious reasons).
Comments on this page are closed.