Db2

 View Only
  • 1.  How TO: properly "move" DMC to a different path/filesystem ?

    Posted Mon May 16, 2022 02:15 PM
    I had DMC runing originally  under / (root) file-system   under   /dmc/ibm-datamgmtconsole    path. 

    That was a mistake.  As everything was setup and running properly,   (repository, and other stuff)  I didn't want to perform a setup from scratch  into the proper path. 

    So,  I just "moved"   the full dmc dirs into the new path, using the correct file-system.   

    • Stoped DMC 
    • Move  "/dmc/ibm-datamgmtconsole"    to  "/app/dmc/ibm-datamgmtconsole" 
    • Started DMC back , under the new path.  
    Everything seems to be fine, but actually,  DMC is still writing their logs to the old location.    /dmc/ibm-datamgmtconsole/logs  ,  which is an issue,  as it's filling up the / (root)  fs,  instead the correct FS dedicated to DMC usage. 

    How can I fix that...  and anyother utility that might still using the old path ? I don't know what else might be still pointing to the old path.  
    Found another symlink ,  but there might be other ones to fix 

    /app/dmc/ibm-datamgmtconsole/work/dsweb
    [root@nox07-echo dsweb]# ls -la
    total 12
    drwxr-x--- 4 root root 223 Nov 18 00:00 .
    drwxr-x--- 6 root root  64 Apr  7  2021 ..
    -rw-r----- 1 root root 306 Nov  1  2021 connectivity.log
    -rw-r----- 1 root root 202 Nov  1  2021 connectivity.log.1
    -rw-r----- 1 root root   0 Nov  1  2021 connectivity.log.1.lck
    -rw-r----- 1 root root 101 Nov  1  2021 connectivity.log.2
    -rw-r----- 1 root root   0 Nov  1  2021 connectivity.log.2.lck
    -rw-r----- 1 root root   0 Nov  1  2021 connectivity.log.lck
    lrwxrwxrwx 1 root root  81 Nov 18 00:00 job-scheduler.log -> /dmc/ibm-datamgmtconsole​

    job-scheduler.log  is a symling pointing to /dmc/...   old path.    


    Regards

    ------------------------------
    Samuel Pizarro
    Db2 DBA
    Kyndryl
    Brazil / Sumaré - SP
    ------------------------------

    #Db2


  • 2.  RE: How TO: properly "move" DMC to a different path/filesystem ?

    Posted Tue May 17, 2022 02:12 AM
    Hi Samuel,

    We do not recommend moving the installed DMC installation directory, because some installation configuration errors will occur after moving the installation directory. But you can follow the steps below to solve existing problems:
    1. First stop DMC: run <dshome>/bin/stop.sh
    2. delete <dshome>/work folder.
    3. Modify the WLP_OUTPUT_DIR and LOG_DIR in the <dshome>/wlp/usr/servers/dsweb/server.env file and specify these two values as the current installation directory.
      For your case, you need set WLP_OUTPUT_DIR=/app/dmc/ibm-datamgmtconsole/work, set LOG_DIR=/app/dmc/ibm-datamgmtconsole/logs
    4. Start the DMC: run <dshome>/bin/startup.sh

    Best Regards



    ------------------------------
    Yun Bo Zhang
    ------------------------------



  • 3.  RE: How TO: properly "move" DMC to a different path/filesystem ?

    Posted Tue May 17, 2022 08:27 AM
    Thanks for the procedure @Yun Bo Zang

    logs are being writtien to the correct path now.

    Regards



    ------------------------------
    Samuel Pizarro
    Db2 DBA
    Kyndryl
    Brazil / Sumaré - SP
    ------------------------------



  • 4.  RE: How TO: properly "move" DMC to a different path/filesystem ?

    Posted Thu May 19, 2022 02:28 AM
    You're welcome, Samuel.
    I'm glad to hear your issue has been resolved.

    ------------------------------
    Yun Bo Zhang
    ------------------------------