Domain change migration
-
- Beiträge: 11
- Registriert: 09 Dez 2013, 17:01
Domain change migration
Hello OPSI-experts,
I did the following:
After a domain change from gzbg to glaubenszentrum and from gzbg.local to glaubenszentrum.local was made, there were also some other changes necessary like nameserver etc.
Then I changed those values via 1stboot.py.
Now the problem is that there are 2 depot-servers available and in the new one (glaubenszentrum) there are no clients and there is also no software available.
What is necessary to migrate those clients and the software?
Do I need to migrate something else?
Is it possible to delete the old depot-server gzbg after this migration has taken place? How?
Or is there an easier way to do the migration at all?
Best regards
Ruben
I did the following:
After a domain change from gzbg to glaubenszentrum and from gzbg.local to glaubenszentrum.local was made, there were also some other changes necessary like nameserver etc.
Then I changed those values via 1stboot.py.
Now the problem is that there are 2 depot-servers available and in the new one (glaubenszentrum) there are no clients and there is also no software available.
What is necessary to migrate those clients and the software?
Do I need to migrate something else?
Is it possible to delete the old depot-server gzbg after this migration has taken place? How?
Or is there an easier way to do the migration at all?
Best regards
Ruben
Re: Domain change migration
Hi Ruben,
first of all create a new backup with opsi-backup.
Then you can go to your configserver shell and try the following:
Delete the new empty depot:
Then try to rename the old one:
first of all create a new backup with opsi-backup.
Then you can go to your configserver shell and try the following:
Delete the new empty depot:
Code: Alles auswählen
opsi-admin --no-depot -d method host_delete <new-depot-id>
Code: Alles auswählen
opsi-admin --no-depot -d method host_renameOpsiDepotserver <old-depot-id> <new-depot-id>
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
-
- Beiträge: 34
- Registriert: 16 Mai 2014, 21:45
Re: Domain change migration
What about the fully qualified domain names, how can it be migrated to the ne domain? thank you.
-
- Beiträge: 34
- Registriert: 16 Mai 2014, 21:45
Re: Domain change migration
By the way the fully qualified domain name is in the opsiclientd.conf ,hostkey. How can it be replaced without reinstalling the agent?
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Domain change migration
Hello,
to migrate change a clients FQDN through the configed you should find an option like "renameClient". But then you need change the configuration on your client aswell!
This can be scripted!
Steps should be to first connect to the client via JSONRPC, then replace the hostname and then you can call the method host_renameOpsiClient on your opsi-server.
If you want us to build an automatism for this you can contact us with an existing support contract
With kind regards
Niko
to migrate change a clients FQDN through the configed you should find an option like "renameClient". But then you need change the configuration on your client aswell!
This can be scripted!
Steps should be to first connect to the client via JSONRPC, then replace the hostname and then you can call the method host_renameOpsiClient on your opsi-server.
If you want us to build an automatism for this you can contact us with an existing support contract

With kind regards
Niko
Code: Alles auswählen
import OPSI
-
- Beiträge: 11
- Registriert: 09 Dez 2013, 17:01
Re: Domain change migration
Hello,
thank you for your answer and sorry for my late reply. Now I have the problem, that if I execute the following command:
opsi-admin --no-depot -d method host_delete opsidemo.glaubenszentrum.local
the depotserver still exists.
What is wrong about that command?
Here are the attributes of the depotserver:
"masterDepotId" : null,
"ident" : "opsidemo.glaubenszentrum.local",
"networkAddress" : "192.168.168.0/255.255.254.0",
"description" : "",
"inventoryNumber" : "",
"ipAddress" : "192.168.168.11",
"repositoryRemoteUrl" : "webdavs://opsidemo.glaubenszentrum.local:4447/repository",
"depotLocalUrl" : "file:///var/lib/opsi/depot",
"isMasterDepot" : true,
"notes" : "",
"hardwareAddress" : "00:50:56:be:f5:13",
"maxBandwidth" : 0,
"repositoryLocalUrl" : "file:///var/lib/opsi/repository",
"opsiHostKey" : null,
"type" : "OpsiConfigserver",
"id" : "opsidemo.glaubenszentrum.local",
"depotWebdavUrl" : "webdavs://opsidemo.glaubenszentrum.local:4447/depot",
"depotRemoteUrl" : "smb://opsidemo/opsi_depot"
Best regards
Ruben
thank you for your answer and sorry for my late reply. Now I have the problem, that if I execute the following command:
opsi-admin --no-depot -d method host_delete opsidemo.glaubenszentrum.local
the depotserver still exists.
What is wrong about that command?
Here are the attributes of the depotserver:
"masterDepotId" : null,
"ident" : "opsidemo.glaubenszentrum.local",
"networkAddress" : "192.168.168.0/255.255.254.0",
"description" : "",
"inventoryNumber" : "",
"ipAddress" : "192.168.168.11",
"repositoryRemoteUrl" : "webdavs://opsidemo.glaubenszentrum.local:4447/repository",
"depotLocalUrl" : "file:///var/lib/opsi/depot",
"isMasterDepot" : true,
"notes" : "",
"hardwareAddress" : "00:50:56:be:f5:13",
"maxBandwidth" : 0,
"repositoryLocalUrl" : "file:///var/lib/opsi/repository",
"opsiHostKey" : null,
"type" : "OpsiConfigserver",
"id" : "opsidemo.glaubenszentrum.local",
"depotWebdavUrl" : "webdavs://opsidemo.glaubenszentrum.local:4447/depot",
"depotRemoteUrl" : "smb://opsidemo/opsi_depot"
Best regards
Ruben
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Domain change migration
Hello Ruben,
please check if the log shows any errors or failures.
opsi-admin --help should show you the appropriate parameters.
With kind regards
Niko
please check if the log shows any errors or failures.
opsi-admin --help should show you the appropriate parameters.
With kind regards
Niko
Code: Alles auswählen
import OPSI