Usage

maxdb::default

All-in-one to get a running DB.

First, create four volumes with device path '/dev/sapdb_pv_data, /dev/sapdb_pv_log, /dev/sapdb_pv_global, /dev/sapdb_pv_instance' and attach it to your node. Then include maxdb in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[maxdb]"
  ]
}

and set at least the following attributes:

[maxdb][SID][maxdb][dbName][maxdb][dbmOperator][password][maxdb][dbUser][password]

maxdb::lvm

Creates several ext3 lvm volume groups 'sapdb_vg_instance', 'sapdb_vg_global', 'sapdb_vg_data', 'sapdb_vg_log' and corresponding volumes from devices '/dev/sapdb_pv_instance', '/dev/sapdb_pv_global', '/dev/sapdb_pv_data', '/dev/sapdb_pv_log' and mounts it to '[maxdb][volDataDir]' (and subsequent)

maxdb::installdb

Downloads the installation zip file (tgz) from moo-repo and runs 'sdbinst' with the specified parameters.

maxdb::createdb

Processes the 'createdb' template and puts it to '/tmp'.
Then it runs dbmcli -i /tmp/createdb to setup a database named [:maxdb][:dbName].

maxdb::dbsettings

Processes the 'dbsettings' template and puts it to '/tmp'.
Then it runs dbmcli -i /tmp/dbsettings to configure the database named [:maxdb][:dbName].

maxdb::startdb

Starts the x_server and the database.