You can set up DataKeeper through the use of the LKCLI (Command Line Interface).
Creating/Extending/Configuring the DataKeeper resource from the Command Line
Creating the DataKeeper resource via lkcli
See the Configuring Resources section of SIOS DataKeeper for Linux for more information.
create dk
There are three different ways to create a data replication resource hierarchy:
- Replicate a new filesystem (--hierarchy new)
- Replicate an existing filesystem (--hierarchy existing)
- Create a data replication resource with no parent filesystem resource (--hierarchy dronly)
Each option has its own set of parameters which must be provided. Example commands using each option are shown in the subsections below.
The following parameters are common to all lkcli resource create dk commands.
Option | Default | Description |
---|---|---|
--mode <str> | Replication type “synchronous” or “asynchronous”. Specify “synchronous” to limit replication to all targets to be synchronous. |
|
[--bitmap <str>] | /opt/LifeKeeper/bitmap_<tag name> | Path of bitmap file used for an intent log. The bitmap file is required for asynchronous replication and recommended for synchronous replication. Refer to Creating a DataKeeper Resource Hierarchy for more information. |
--hierarchy <str> | The type of data replication to create. Options vary depending on the type. < new | existing | dronly > |
--hierarchy new
This option replicates a new file system.
EXAMPLE: #lkcli resource create dk --tag <tag> --hierarchy new --mode <synchronous|asynchronous> --device <source disk> --fstype <file system type> --mount_point < new mount point> --fstag <filesystem resource type> --switchback <switchback type> --bitmap <dk bitmap path>
Option | Default | Description |
---|---|---|
--device <str> | Source disk or partition. | |
--fstype <str> | File system type. Only file system types supported by LifeKeeper can be specified. |
|
--mount_point <str> | New mount point for new file system. | |
--fstag <str> | Tag name of the file system resource. |
--hierarchy existing
This option replicates an existing filesystem.
EXAMPLE: #lkcli resource create dk -- tag <tag> --hierarchy existing --mode <synchronous|asynchronous> --mount_point < new mount point> --fstag <filesystem resource type> --switchback <switchback type>
Option | Default | Description |
---|---|---|
--mount_point <str> | Mount point to mount on the primary server’s NetRAID device. | |
--fstag <str> | Tag name of the file system resource. |
--hierarchy dronly
This option creates only a data replication (netraid) resource, with no parent filesystem resource.
EXAMPLE: #lkcli resource create dk --tag <tag > --hierarchy dronly --mode <synchronous|asynchronous> --device <source disk> --switchback <switchback type>
Option | Default | Description |
---|---|---|
--device <str> | Source disk or partition. |
extend dk
EXAMPLE: #lkcli resource extend dk --tag <tag> --dest <backup node> --mode <synchronous|asynchronous> --laddr <local IP address> --raddr <remote IP address> --switchback <switchback type> --template_prioity <priority> --target_priority <prority> --bitmap <dk bitmap path> --device <target disk> --fstag <target fs tag>
Option | Default | Description |
---|---|---|
--mode <str> | Replication type. Specify “synchronous” or “asynchronous”. |
|
--laddr | Local IP address. | |
--raddr | Remote IP address. | |
[--bitmap <str>] | /opt/LifeKeeper/bitmap_< Tag name > | Path of bitmap file used for an intent log. |
[--device <str>] | Same as the extension source. | Target disk or partition. |
[--fstag <str>] | Tag name of the file system resource. |
config dk
EXAMPLE: #lkcli resource config dk --tag <tag> --resync_speed_min <minimum resync speed> --resync_speed_max <maximum resync speed> --compression_level <network compression level>
Option | Default | Description |
---|---|---|
--resync_speed_min <num> | Set the minimum resync speed limit (KB/s). | |
--resync_speed_max <num> | Set the maximum resynch speed limit (KB/s.) | |
--compression_level <num> | Set the network compression level (0-9). |
このトピックへフィードバック