diff options
author | Timofey Titovets | 2016-11-02 19:22:07 +0300 |
---|---|---|
committer | Timofey Titovets | 2016-11-02 19:22:07 +0300 |
commit | 4f765ab439094a0cce215af614d20e2f21806d37 (patch) | |
tree | 0333b1e2cf54084ca7aa0f8fcbb165a48ad991f9 /scaleio-mdm.install | |
parent | feb599f2612cf5eae72f5bbadb0e480eeaa66f2c (diff) | |
download | aur-4f765ab439094a0cce215af614d20e2f21806d37.tar.gz |
Add scaleio-mdm
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Diffstat (limited to 'scaleio-mdm.install')
-rw-r--r-- | scaleio-mdm.install | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/scaleio-mdm.install b/scaleio-mdm.install new file mode 100644 index 000000000000..df022e8ce6f7 --- /dev/null +++ b/scaleio-mdm.install @@ -0,0 +1,48 @@ +post_install(){ + # Eventlogger rotater configuration + ROTATE_DB_CFG_FILE=/opt/emc/scaleio/mdm/cfg/eventloggerconf.txt + + if [ ! -f $ROTATE_DB_CFG_FILE ]; then + { + echo "[General]" + echo log_dir=/opt/emc/scaleio/mdm/logs/ + echo db_dir=/opt/emc/scaleio/mdm/logs/ + echo log_file=eventLogger.log + echo event_db_file_name=eventlog.db + echo max_db_line_to_rotate=20000 + } > $ROTATE_DB_CFG_FILE + fi + + mkdir -p /opt/emc/scaleio/mdm/rep/ + #Format the repository after installation + if [ ! -f /opt/emc/scaleio/mdm/rep/mdm_rep.bin ]; then + /opt/emc/scaleio/mdm/bin/rep_format --format_rep --rep_file /opt/emc/scaleio/mdm/rep/mdm_rep.bin + fi + + MDM_CFG_FILE=/opt/emc/scaleio/mdm/cfg/conf.txt + #Setup conf file to contain all the repositories and their shared memory + { + echo rep_dev_name=/opt/emc/scaleio/mdm/rep/mdm_rep.bin + echo rep_shm_name=scaleio_mdm_rep_shm + echo actor_rep_dev_name=/opt/emc/scaleio/mdm/rep/actor_rep.bin + echo actor_rep_shm_name=scaleio_actor_shm + echo actor_local_voter_rep_dev_name=/opt/emc/scaleio/mdm/rep/actor_local_voter_rep.bin + echo actor_local_voter_rep_shm_name=scaleio_voter_shm + echo actor_role_is_manager=$MDM_ROLE_IS_MANAGER + } > $MDM_CFG_FILE + + # End + echo "Config: /opt/emc/scaleio/mdm/cfg/conf.txt" + echo "Set actor_role_is_manager=1 if server is a Master" + echo "Set actor_role_is_manager=0 if server is a TieBreaker" + echo + echo "To enable: systemctl enable mdm" +} + +post_upgrade(){ + : +} + +post_remove(){ + : +} |