Jim
September 30, 2015, 4:38pm
1
Hello,
My Nethserver is tranquilly install on a 160 Gb disk… When all the Nethserver space is hardly 3gb…
Since I made my first Time Machine backup, simply 260 Gb… The Disk Usage look like this:
Can I configure the Disk Usage module to ignore /opt ?
Nas
(Artem Fedai)
September 30, 2015, 6:21pm
2
press Update
run in console
tail -f /var/log/meaaseges
than
ll /var/cache/duc/
to see when the files were changed
Nas
(Artem Fedai)
September 30, 2015, 6:46pm
4
show log
grep nethserver-duc-save /var/log/messages
Nas
(Artem Fedai)
September 30, 2015, 6:47pm
5
firstly run
signal-event nethserver-duc-save
then grep
Adam
(Adam)
September 30, 2015, 7:45pm
8
@Nas , I’m not sure if you’re addressing what he’s asking.
@Jim , you want to exclude /opt from the disk usage calculation, right?
Adam
(Adam)
September 30, 2015, 8:08pm
10
I would imagine you add something to /etc/e-smith/events/actions/nethserver-duc-index for exclusions.
That’s the file that’s run with the daily cron job to recalculate disk usage and I believe it’s just rerun manually when you click the update button in the web gui.
edit: found it! change this line:
/usr/bin/duc index $INDEX_DIR --database=$DUC_DB
to
/usr/bin/duc index $INDEX_DIR --exclude=opt --database=$DUC_DB
Reference this for more cool stuff you can do!
duc(1) -- index, query and graph disk usage
===========================================
## SYNOPSIS
`duc` <subcommand> [options]
## DESCRIPTION
Duc is a collection of tools for inspecting and visualizing disk usage.
Duc maintains an indexed database of accumulated sizes of directories of your
file system, and allows you to query this database with some tools, or create
fancy sunburst graphs to show you where your bytes are.
Duc scales quite well, it has been tested on systems with more then 500 million
files and several petabytes of storage.
This file has been truncated. show original
Edited to correct lines to edit. Thanks @Nas !
1 Like
Nas
(Artem Fedai)
September 30, 2015, 8:22pm
11
@Adam have you test those feature ?
Adam
(Adam)
September 30, 2015, 8:22pm
12
Yes sir. Worked great for me.
Adam
(Adam)
September 30, 2015, 8:25pm
14
Holy moley that’s a lot of Chrome tabs!
Nas
(Artem Fedai)
September 30, 2015, 8:26pm
16
duc index /var
Indexed 22759 files and 4779 directories, (1.8GB total) in 0.74 secs.
Nas
(Artem Fedai)
September 30, 2015, 8:30pm
18
So You are Wrong @Adam
option that should be changed :
# directory indexing
/usr/bin/duc index $INDEX_DIR --exclude=var --database=$DUC_DB
Nas
(Artem Fedai)
September 30, 2015, 8:30pm
19
and only after it it make right graphs
Adam
(Adam)
September 30, 2015, 8:37pm
20
Good catch! You’re totally right! … except he wants to exclude /opt, not /var…