Skip to content
Discussion options

You must be logged in to vote

Hi summer-abacus,

Short answer: No, there's no built-in config to add a custom prefix like -ROOT- or -DATA-. Those prefixes are hardcoded by CloudStack (ROOT-<instance-id>, DATA-<instance-id>) and aren't user-configurable.

Workarounds:

  1. Rename after creation — Use the updateVolume API:

    updateVolume id=<volume-id> name=<new-name>
    

    Note: this only changes the CloudStack display name, not the underlying file on primary storage.

  2. Custom ResourceNamingPolicy — CloudStack has a pluggable naming framework (since ~4.2), but it requires writing and deploying custom code. Not a simple setting.

  3. Feature request — If you need this as a standard feature, opening a GitHub enhancement request for a c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@summer-abacus
Comment options

Answer selected by summer-abacus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants