]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - docs/filesystem-notes.rst
WIP and debugging things
[tahoe-lafs/tahoe-lafs.git] / docs / filesystem-notes.rst
1 .. -*- coding: utf-8-with-signature -*-
2
3 =========================
4 Filesystem-specific notes
5 =========================
6
7 1. ext3_
8
9 Tahoe storage servers use a large number of subdirectories to store their
10 shares on local disk. This format is simple and robust, but depends upon the
11 local filesystem to provide fast access to those directories.
12
13 ext3
14 ====
15
16 For moderate- or large-sized storage servers, you'll want to make sure the
17 "directory index" feature is enabled on your ext3 directories, otherwise
18 share lookup may be very slow. Recent versions of ext3 enable this
19 automatically, but older filesystems may not have it enabled::
20
21   $ sudo tune2fs -l /dev/sda1 |grep feature
22   Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
23
24 If "dir_index" is present in the "features:" line, then you're all set. If
25 not, you'll need to use tune2fs and e2fsck to enable and build the index. See
26 `http://wiki2.dovecot.org/MailboxFormat/Maildir`_ for some hints.
27
28 .. _`http://wiki2.dovecot.org/MailboxFormat/Maildir`: http://wiki2.dovecot.org/MailboxFormat/Maildir