bees icon indicating copy to clipboard operation
bees copied to clipboard

beesd not using config

Open ibrokemypie opened this issue 7 years ago • 7 comments
trafficstars

Hello, I am on gentoo and installed bees 0.6, copying the sample config to /etc/bees/beesd.conf which contains the following:

## Config for Bees: /etc/bees/beesd.conf.sample
## https://github.com/Zygo/bees
## It's a default values, change it, if needed

# How to use?
# Copy this file to a new file name and adjust the UUID below

# Which FS will be used
#UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
UUID="0156a51d-8688-4494-90d3-c9c13de0aa6d"

## System Vars
# Change carefully
WORK_DIR=/run/bees/
MNT_DIR="$WORK_DIR/mnt/$UUID"
BEESHOME="$MNT_DIR/.beeshome"
BEESSTATUS="$WORK_DIR/$UUID.status"

## Options to apply, see `beesd --help` for details
# OPTIONS="--strip-paths --no-timestamps"
OPTIONS="--scan-mode 2"

## Bees DB size
# Hash Table Sizing
# sHash table entries are 16 bytes each
# (64-bit hash, 52-bit block number, and some metadata bits)
# Each entry represents a minimum of 4K on disk.
# unique data size    hash table size    average dedup block size
#     1TB                 4GB                  4K
#     1TB                 1GB                 16K
#     1TB               256MB                 64K
#     1TB                16MB               1024K
#    64TB                 1GB               1024K
#
# Size MUST be power of 16M
DB_SIZE=$((32*$AL16M)) # 1G in bytes

however running sudo beesd just prints the help information. Any help would be appreciated, thanks!

ibrokemypie avatar Oct 17 '18 06:10 ibrokemypie

Could you try without the quotes around the UUID var content?

kakra avatar Oct 17 '18 06:10 kakra

same thing with UUID=0156a51d-8688-4494-90d3-c9c13de0aa6d

ibrokemypie avatar Oct 17 '18 06:10 ibrokemypie

ah, running sudo beesd 0156a51d-8688-4494-90d3-c9c13de0aa6d works fine, maybe I just misunderstood it's usage? just assumed it would take that from the config if it was present.

ibrokemypie avatar Oct 17 '18 06:10 ibrokemypie

The beesd script works by looking up the UUID from all the config files and selecting the right one. Can this be closed then?

kakra avatar Oct 17 '18 06:10 kakra

OTOH, maybe keep this open and we should provide better examples and docs for this.

kakra avatar Oct 17 '18 06:10 kakra

I was wondering the same. So there should be one config for each UUID, and then bees will look in /etc/bees/*.conf for a file matching the UUID specified on the command line, beesd 0156a51d-8688-4494-90d3-c9c13de0aa6d? This could be made much clearer :D

ghost avatar Jun 27 '19 09:06 ghost

Actually beesd should abolish uuid argument and accept only a config file as input. Then you start each instance as: beesd home.conf beesd root.conf etc. UUID argument is error prone.

dim-geo avatar Aug 20 '19 17:08 dim-geo