Forum Discussion

David_Tyrrell's avatar
David_Tyrrell
Icon for Nimbostratus rankNimbostratus
Feb 15, 2019

Convert Internal Data Group to External Data Group

Can I convert an internal data group to an external data group? The internal data group is referenced in 2 irules. If I cannot convert do I delete the internal group and create an external group with the same group name?

 

1 Reply

  • Hi David,

    To answer your question with best of my knowledge,

    • Can I convert an internal data group to an external data group?

    The answer is NO. The internal data group is in the memory. The external is refernced on files.

    • The internal data group is referenced in 2 irules. If I cannot convert do I delete the internal group and create an external group with the same group name?

    Yes you have to delete the internal dgl (lets say : sample_externaldgl) first inorder to create with the same name in the external dgl (lets say : sample_externaldgl). Same DGL (sample_externaldgl) names cannot reside in the same partition, it would throw error that it already exists. And you cannot also just delete the internal dgl, as its already referenced in your 2 Irules.

    Simple steps to create via CLI.

    • vi /var/tmp/sample_externaldgl_file.txt

    (save and quit)

    • tmsh create sys file data-group sample_externaldgl_file separator ":=" source-path file:/var/tmp/sample_externaldgl_file.txt type string
    • tmsh create ltm data-group external sample_externaldgl external-file-name sample_externaldgl_file