-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathREADME
More file actions
54 lines (36 loc) · 1.8 KB
/
README
File metadata and controls
54 lines (36 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Lester, the Lustre lister
Lester is an extention of e2scan for generating lists of files (and potentially
their attributes) from a ext2/ext3/ext4/ldiskfs filesystem. We primarily use it
for generating a purge candidate list, but it is also useful for generating a
list of files affected by an OST outage or providing a name for an inode.
For example, to list files that have not been accessed in two weeks and
put the output in ne2scan format in $OUTFILE:
touch -d 'now - 2 weeks' /tmp/flag
lester -A fslist -a before=/tmp/flag -o $OUTFILE $BLOCKDEV
To do the same thing, but generate a full listing of the filesystem in
parallel:
touch -d 'now - 2 weeks' /tmp/flag
lester -A fslist -a before=/tmp/flag -a genhit=$UNACCESSED_LIST \
-o $FULL_LIST $BLOCKDEV
To name inodes to stdout (when not using Lustre 2.4's LINKEA):
lester -A namei -a $INODE1 -a $INODE2 ... $BLOCKDEV
To get a list of files with objects on OSTs 999 and 1000:
lester -A lsost -a 999 -a 1000 -o $OUTFILE $BLOCKDEV
To get a list of options and actions, use 'lester -h'; to get a list of
options for a given action, use 'lester -A $ACTION -a help'.
Lester uses its own AIO-based IO engine by default, which is usually much
faster than the default Unix engine for large filesystems on high-performance
devices. The number of requests in flight, request size, cache size, and
read-ahead settings for various phases of the scan are all configurable. I
recommend experimenting with the settings to find a balance between speed and
resource usage for your situation.
-- David Dillow
DEPENDENCIES
libext2fs-devel 1.42.7 or newer (Lustre version preferred)
libcom_err-devel 1.42.7 or newer (Lustre version preferred)
libaio-devel
Older e2fsprogs libraries may work, but have not been tested
BUILDING
./bootstrap (if building from git repo)
./configure
make