Create custom data directories
About this task
To ensure that Lifecycle Manager (LCM) does not delete or overwrite data, it will not automatically create data directories in non-default locations, or manage their permissions. Complete the following steps to use a custom data directory.
|
The following commands use the |
Procedure
-
Create the
cassandrauser and group:groupadd -r cassandrauseradd -r -g cassandra cassandra -
Create the custom data directory and assign ownership and permissions to the
cassandrauser:mkdir /opt/my-custom-dirchown cassandra:cassandra /opt/my-custom-dirchmod 750 /opt/my-custom-dir -
If additional custom directories are required, repeat the previous step to create the directories and assign proper ownership and permission.