Skip to content

Conversation

@SiddharthSahu09
Copy link
Member

@SiddharthSahu09 SiddharthSahu09 commented Nov 26, 2025

Case 1: Admin has space to store the largest archive

The log file also includes debugging statements which is not included in the MR.
Case 1 : migration_script.log

[oracle@testreg-wls-0 bin]$ bash migration_script.sh 
2025-12-01 11:30:36  [info] "Installing dependencies" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] "Checking prerequisites" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] "Discovering WebLogic domain" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] "Discovering infrastructure" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] "Discovering datasources" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] "Building OCI Resource Manager stack" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] Stack file created: /home/oracle/oci-weblogic-migration/oci/stack/owm_rm_202511261209.zip
2025-12-01 11:30:36  [info] "Uploading owm_rm_202511261209.zip to OCI Object Storage bucket testreg" already completed successfully. Skipping.
2025-12-01 11:30:36  [info] owm_rm_202511261209.zip uploaded to bucket testreg.
2025-12-01 11:30:36  [info] Archiving WebLogic domain...
2025-12-01 11:46:26  [info] Migration script completed successfully!
Last login: Mon Dec  1 11:15:51 2025 from 8.0.2.85
[oracle@testreg-wls-1 ~]$ ls /tmp/
hsperfdata_oracle  systemd-private-56b9a9720f494c5caf299bb0550a92bd-chronyd.service-ipB8DG  systemd-private-56b9a9720f494c5caf299bb0550a92bd-unified-monitoring-agent.service-VXCiqS
Last login: Mon Dec  1 11:16:20 2025 from 8.0.2.85
[oracle@testreg-wls-2 ~]$ ls /tmp/
hsperfdata_oracle  systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-chronyd.service-QLjTGV  systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-unified-monitoring-agent.service-KtVjg6
[oracle@testreg-wls-0 tmp]$ ls
hsperfdata_oracle     profile_default_three.zip  sysahu_SESSION.zip                                                                        wlstOfflineLogs_oracle
migration_script.log  profile_default_two.zip    systemd-private-618cbc83186a4bcc888e784c84225fb6-chronyd.service-TDiUl9                   wlstTemptestreg-wls-0oracle
oci_api_key.pem       profile_default.zip        systemd-private-618cbc83186a4bcc888e784c84225fb6-unified-monitoring-agent.service-SDTrVL

Case 2 :

log1:
migration_script.log

log2:
migration_script.log

[oracle@testreg-wls-0 bin]$ bash migration_script.sh 
2025-12-02 08:44:11  [info] "Installing dependencies" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] "Checking prerequisites" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] "Discovering WebLogic domain" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] "Discovering infrastructure" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] "Discovering datasources" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] "Building OCI Resource Manager stack" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] Stack file created: /home/oracle/oci-weblogic-migration/oci/stack/owm_rm_202512011544.zip
2025-12-02 08:44:11  [info] "Uploading owm_rm_202512011544.zip to OCI Object Storage bucket testreg" already completed successfully. Skipping.
2025-12-02 08:44:11  [info] owm_rm_202512011544.zip uploaded to bucket testreg.
2025-12-02 08:44:11  [info] Archiving WebLogic domain...
2025-12-02 08:49:18  [error] "Archiving WebLogic domain" failed. Check /home/oracle/oci-weblogic-migration/logs/migration_script.log for details. Run migration_script.sh again after resolving the issue.
2025-12-02 08:49:18  [error] Migration failed.
[oracle@testreg-wls-2 tmp]$ ls
hsperfdata_oracle                                                        systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-unified-monitoring-agent.service-KtVjg6  testreg_machine_3-testreg_domain-java_home.tar.gz
systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-chronyd.service-QLjTGV  testreg_machine_3-testreg_domain-domain_home.tar.gz                                       testreg_machine_3-testreg_domain-weblogic_home.tar.gz
[oracle@testreg-wls-1 tmp]$ ls
hsperfdata_oracle                                                        systemd-private-56b9a9720f494c5caf299bb0550a92bd-unified-monitoring-agent.service-VXCiqS  testreg_machine_2-testreg_domain-java_home.tar.gz
systemd-private-56b9a9720f494c5caf299bb0550a92bd-chronyd.service-ipB8DG  testreg_machine_2-testreg_domain-domain_home.tar.gz                                       testreg_machine_2-testreg_domain-weblogic_home.tar.gz

Case 3.b : skip_transfer = true and Admin doesn’t have enough space to store all the archives but its own archives, then all nodes stores their respective archives including the admin.

Logs:
migration_script.log 3.b


2025-11-27 11:32:15  [info] "Installing dependencies" already completed successfully. Skipping.
2025-11-27 11:32:15  [info] "Checking prerequisites" already completed successfully. Skipping.
2025-11-27 11:32:15  [info] "Discovering WebLogic domain" already completed successfully. Skipping.
2025-11-27 11:32:15  [info] "Discovering infrastructure" already completed successfully. Skipping.
2025-11-27 11:32:15  [info] "Discovering datasources" already completed successfully. Skipping.
2025-11-27 11:32:15  [info] "Building OCI Resource Manager stack" already completed successfully. Skipping.
2025-11-27 11:32:15  [info] Stack file created: /home/oracle/oci-weblogic-migration/oci/stack/owm_rm_202511261209.zip
2025-11-27 11:32:15  [info] Skipping Stack upload as skip_transfer=true.
2025-11-27 11:32:15  [info] Archiving WebLogic domain...
2025-11-27 11:39:43  [info] Skipping the transfer archives to OCI Object Storage step as  [skip_transfer] : "true". Transfer the archives manually by following the instruction in /home/oracle/oci-weblogic-migration/logs/migration_script.log .
2025-11-27 11:39:43  [info] Migration script completed successfully!
[oracle@testreg-wls-0 tmp]$ pwd
/tmp
[oracle@testreg-wls-0 tmp]$ ls
hsperfdata_oracle                                                        systemd-private-618cbc83186a4bcc888e784c84225fb6-unified-monitoring-agent.service-SDTrVL  testreg_machine_1-testreg_domain-java_home.tar.gz      wlstOfflineLogs_oracle
oci_api_key.pem                                                          testreg_machine_1-testreg_domain-custom_dirs.tar.gz                                       testreg_machine_1-testreg_domain-weblogic_home.tar.gz  wlstTemptestreg-wls-0oracle
systemd-private-618cbc83186a4bcc888e784c84225fb6-chronyd.service-TDiUl9  testreg_machine_1-testreg_domain-domain_home.tar.gz                                       unified-monitoring-agent
[oracle@testreg-wls-1 ~]$ ls /tmp/
hsperfdata_oracle                                                        systemd-private-56b9a9720f494c5caf299bb0550a92bd-unified-monitoring-agent.service-VXCiqS  testreg_machine_2-testreg_domain-java_home.tar.gz
systemd-private-56b9a9720f494c5caf299bb0550a92bd-chronyd.service-ipB8DG  testreg_machine_2-testreg_domain-domain_home.tar.gz                                       testreg_machine_2-testreg_domain-weblogic_home.tar.gz
[oracle@testreg-wls-2 ~]$ ls /tmp/
hsperfdata_oracle                                                        systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-unified-monitoring-agent.service-KtVjg6  testreg_machine_3-testreg_domain-java_home.tar.gz
systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-chronyd.service-QLjTGV  testreg_machine_3-testreg_domain-domain_home.tar.gz                                       testreg_machine_3-testreg_domain-weblogic_home.tar.gz

Case 3.c : skip_transfer = true and Admin doesn’t have enough space to store its own archive, then all nodes stores their respective archives and TODO messages is printed for the nodes which doesn't have enough space.

logs:

migration_script.log

[oracle@testreg-wls-0 bin]$ bash migration_script.sh 
2025-12-02 09:22:49  [info] "Installing dependencies" already completed successfully. Skipping.
2025-12-02 09:22:49  [info] "Checking prerequisites" already completed successfully. Skipping.
2025-12-02 09:22:50  [info] "Discovering WebLogic domain" already completed successfully. Skipping.
2025-12-02 09:22:50  [info] "Discovering infrastructure" already completed successfully. Skipping.
2025-12-02 09:22:50  [info] "Discovering datasources" already completed successfully. Skipping.
2025-12-02 09:22:50  [info] "Building OCI Resource Manager stack" already completed successfully. Skipping.
2025-12-02 09:22:50  [info] Stack file created: /home/oracle/oci-weblogic-migration/oci/stack/owm_rm_202512011544.zip
2025-12-02 09:22:50  [info] Skipping Stack upload as skip_transfer=true.
2025-12-02 09:22:50  [info] Archiving WebLogic domain...
2025-12-02 09:25:35  [error] "Archiving WebLogic domain" failed. Check /home/oracle/oci-weblogic-migration/logs/migration_script.log for details. Run migration_script.sh again after resolving the issue.
2025-12-02 09:25:35  [info] Skipping the transfer archives to OCI Object Storage step as  [skip_transfer] : "true". Transfer the archives manually by following the instruction in /home/oracle/oci-weblogic-migration/logs/migration_script.log .
2025-12-02 09:25:35  [error] Migration script failed.
[oracle@testreg-wls-2 ~]$ ls /tmp/
hsperfdata_oracle                                                        systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-unified-monitoring-agent.service-KtVjg6  testreg_machine_3-testreg_domain-java_home.tar.gz
systemd-private-aa1879e20e75437c889cc8c4c0e7e93e-chronyd.service-QLjTGV  testreg_machine_3-testreg_domain-domain_home.tar.gz                                       testreg_machine_3-testreg_domain-weblogic_home.tar.gz

I tried to re-create the case 3.a, where "Admin have sufficient storage to store al the archives of each node" , but couldn't , as admin have very less storage.

image (34) This was the case for a 2 node stack, admin does have sufficient space, but with 20% buffer we cannot store it in admin.

@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant