lessfsconfig.sh - A simple configuration tool for lessfs

243 views
Skip to first unread message

jkiel

unread,
May 7, 2010, 4:31:20 PM5/7/10
to lessfs
Here is a simple bash script I use for creating lessfs configuration
files:

I originally made it to automate configuration and verification of the
XXX_BS lines used in lessfs. It will not edit existing scripts. Only
create/overwrite with new data or give some information about existing
ones.

It is more for my own personal use, but I'm releasing it here in-case
it's useful to anyone. It's based on my limited understanding of
lessfs, so I make no guarantees on its accuracy. Please excuse any
spelling/grammatical errors.

Download from here:
http://stashbox.org/887553/lessfsconfig.sh

An example of its output when used to check an existing file:
$ ./lessfsconfig.sh --check test.cfg

Statistics for: test.cfg

This configuration will need 625 MB of available RAM to operate well.
128 MB for cache
37 MB for for blockdata database buckets
200 MB for for fileblock database buckets
4 MB for for metadata database buckets
256 MB for block write buffer

This configuration will:
Use up to 600 GB of physical space before suffering performance and
stability issues.
Supply up to 6411 GB of logical, pre-deduplicated, storage before
suffering performance and stability issues.

jkiel

unread,
May 19, 2010, 3:36:09 PM5/19/10
to lessfs
Fixed a few bugs with the first version of this tool. Get v 0.0.2
here:
http://stashbox.org/900747/lessfsconfig-0.0.2.tgz

An example of how to use this tool to create a lessfs.cfg that will
store up to 600GB of deduplicated/compressed data and 6TB of "virtual"
storage (before compression/deduplication), using 64KB blocks:

lessfsconfig.sh --block_size 64 --fileblock_size 6411 --blockdata_size
600 --blockdata_path /data/dta --metadata_path /data/mta --file_io
true /etc/lessfs.cfg

The above will then output:

This configuration will need 625 MB of available RAM to operate well.
128 MB for cache
37 MB for blockdata database buckets
200 MB for fileblock database buckets
4 MB for metadata database buckets
256 MB for block write buffer

This configuration will:
Use up to 600 GB of physical space before suffering performance and
stability issues.
Supply up to 6411 GB of logical, pre-deduplicated, storage before
suffering performance and stability issues.

---

If anyone finds this script useful, let me know, and I'll continue to
post changes here.

--John

Gem

unread,
Apr 22, 2012, 4:05:00 AM4/22/12
to les...@googlegroups.com
http://stashbox.org/v/887553/lessfsconfig.sh and summary off   stashbox  stoped :-(


суббота, 8 мая 2010 г., 0:31:20 UTC+4 пользователь jkiel написал:
Reply all
Reply to author
Forward
0 new messages