OMV-Plugins/openmediavault-greyhole — Issue #17: Storage Drive selection Group + Storage Drive Selection Algorithm
Author: sbocquet
Created: 2012-02-14 16:43:52+00:00
State: open

### Storage Drive Selection Groups ###
# The groups you define here will be available to use in the drive_selection_algorithm option(s) below.
# The group names (OK, NEW, BROKEN, REMOTE in the example below) can be anything you'd like.
# Use one line per group, with the following syntax:
# group name: one or more (comma-separated) storage pool drives
# If you ommit any storage pool drive from your groups, this drive will NOT be used by Greyhole!
#
# drive_selection_groups = OK: /mnt/hdd0/gh, /mnt/hdd2/gh
# NEW: /mnt/hdd1/gh
# BROKEN: /mnt/hdd3/gh
# REMOTE: /mnt/remote1/gh

Don't think this is necessary for us, but you can also define drive_selection_groups for specific shares:
#
# drive_selection_groups[Photos] = SATA: /mnt/hdd0/gh
# IDE: /mnt/hdd1/gh, /mnt/hdd2/gh
# USB: /mnt/hdd3/gh

#### Storage Drive Selection Algorithm ####
# available algorithms: random, most_available_space
# most_available_space: use the drives with the most available space
# first, so that available space on all drives should become and stay
# balanced.
# random: use a random drive with available space

drive_selection_algorithm = most_available_space

# If you defined drive_selection_groups above, you'll want to use them here.
# Use the 'forced' keyword, then list the groups you want to use, in order, and
# prefix each group name with the number of drives you want to use from
# that group before using the next group.
# Use the 'all' keyword to indicate you want Greyhole to use all drives
# from a specific group before starting to use drives from the next group.
# You'll need to indicate how Greyhole should pick drives within a group by
# ending your line with either 'random' or 'most_available_space'.
#
# drive_selection_algorithm = forced (1xOK, 1xNEW, 1xBROKEN, 1xREMOTE) most_available_space

Don't think this is necessary for us, but you can also define drive_selection_algorithm for specific shares:
#
# drive_selection_algorithm[Videos] = random
# drive_selection_algorithm[Photos] = forced (all SATA, 1xIDE, 1xUSB) random