Forum Discussion
How do I move a Pool from Common partition to another partition ?
We have done this a couple of times when moving lots of/multiple objects, but one has to be pretty careful. If you need to move only a small number of objects, then do it via GUI.
If you really want to play with the config files, you can copy the ltm pool (and possibly ltm node) parts from the source partition’s bigip.conf file into a text file, modify it and verify the syntax and merge to target partition’s bigip.conf file, finally saving the running config (make sure you have made backup copies..). Remember to remove the objects from the source partition, too.
Something like:
my_file:
ltm node /Common/10.10.1.10 {
address 10.10.1.10
}
ltm node /Common/10.10.1.11 {
address 10.10.1.11
}
ltm pool /Common/test_pool {
members {
/Common/10.10.1.10:80 {
address 10.10.1.10
}
/Common/10.10.1.11:80 {
address 10.10.1.11
}
}
}
In this case the source partition is /Common. Then edit the file to reflect the correct target partition path (find/replace). If the nodes are also used elsewhere, then do not copy them here, they may remain in the /Common.
Edited my_file:
ltm node /target/10.10.1.10 {
address 10.10.1.10
}
ltm node /target/10.10.1.11 {
address 10.10.1.11
}
ltm pool /target/test_pool {
members {
/target/10.10.1.10:80 {
address 10.10.1.10
}
/target/10.10.1.11:80 {
address 10.10.1.11
}
}
}
Doublecheck that only the paths are changed. You can check the syntax by comparing with existing bigip.conf file. Then move to the target partition (ie. cd /config/partitions/target folder, check with pwd) and do verify merge command:
tmsh sys load config verify merge file my_file
This validates the specified configuration in my_file to see whether it is valid to be merged into the running configuration. The running configuration will not be changed when using verify.
If all is ok, then you can try to merge (while being in target partition, check with pwd)
tmsh sys load config merge file my_file
And finally if everything works, you need to save the running config while being in target partition.
tmsh sys save config current-partition
This saves the running configuration in your current partition by overwriting the system configuration files. You need remove the source partition’s original objects and save the config, too.
— be careful, test first in test unit if you have one - or rather do it via GUI
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com