12 Replies Latest reply: May 26, 2010 3:49 PM by Kaushik Banerjee RSS

Moving E:\usr\sap

Kaushik Banerjee
Currently Being Moderated

Hi ,

We have a requirement in which we need to increase the disk space in

our E:\ drive in dev server.

Our IT department wants to know, if we can move the files from

E:\usr\sap to some other drive say F:\ and then move them back.

I tried once to move a folder name irj in E:\usr\sap\<SID>\JCXX

\j2ee\cluster\server0\apps\sap.com.

But the move was not possible even after the SAP NetWeaver was down and

all the DB2 and SAP Services were disabled. It gave error, unable to

move.

Then, I took windows backup of the irj folder in F:\ and then deleted

the folder irj from E:\usr\sap\<SID>\JCXX\j2ee\cluster\server0

\apps\sap.com.

After doing a task which was a SCA deployment with SDM (which failed),

I restored the irj folder in the same location from windows backup.

So, my concept is:

1> If we have Windows Backup, we can restore the windows folder in the

same location.

2> If we have database backup from DB2<SID>, we can restore the

database.

3> If we have System State Backup, we can restore the system state.

But now my question is:

Is it possible to move the E:\usr\sap by some means so, that if the E:\

drive needs windows drive format; then we can restore the SAP back in

it ?

Please let me know before I proceed for the task as this server is critical

server for us.

 

Regards

Kaushik Banerjee

  • Re: Moving E:\usr\sap
    Ramakrishna Krishnamurthy
    Currently Being Moderated

    I think it's impossible.

    Please give me points.

     

    Regards

    Ramakrishna

  • Re: Moving E:\usr\sap
    Arun Kumar Rathour
    Currently Being Moderated

    Hi ,

     

    Follow below procedure

     

    1- Shutdown system --> stop all services related to SAP and DB

    2- Take file system backup .-- Like copy whole file system to other drive

    3- Make chages in your specific drive  and restore file system

     

    But be careful ,While making hardware changes ,System can crash .So it is better to take the system export and take on tape .and then perfrom above activity .

     

    Thanks and Regards,

     

    Arun Kumar

  • Re: Moving E:\usr\sap
    Currently Being Moderated

    Hi,

     

    I think it is possible .

     

    I suggest you to follow these steps ..

     

    1) Stop SAP

    2) Stop DB and all related services

    3) Reboot OS

    4) Now backup your E:\usr\sap

    5) Delete all your files

    6) Format the drive

    7) Restore the data from backup

    8) Start DB&SAP ...

     

    This is possible all the way...That is what backup is meant for....

     

    Please update all your actions so information can be reused.

     

    Regards,

    Gagan Deep Kaushal

    • Re: Moving E:\usr\sap
      Kaushik Banerjee
      Currently Being Moderated

      Hi,

      I think, I need DB2 DB Backup by DB2<SID>.

      There is a concept of offline backup. But I have taken backup by logging into the database by db2<SID> in the CLP.

      Also, to mention the DB2 is in different drive. It's in F:\

      The drive which needs to be format is E:\ where we have E:\usr\sap.

      But according to my concept we need:

      1> Windows Backup of E:\usr\sap.

      2> DB2 Database backup by logging into the Database via DB2<SID> User.

      I don't know how to take DB2 Offline Backup.

      3> Then, take System State backup which will take the registry backup.

       

      After the format.

      I need to restore the E:\usr\SAP from the Windows backup.

      Then, restore the DB2 Database from DB2<SID> user

      and also restoring the System State.

      It is better to take tape backup if the system crashes or Windows Crashes.

      Please reply me up.

       

      Regards

      Kaushik Banerjee

      • Re: Moving E:\usr\sap
        Currently Being Moderated

        Hi,

         

        I think, I need DB2 DB Backup by DB2<SID>.

         

        It is always better to take DB backup if you are going to perform any risky activity with system.

         

        So go ahead with all your backup plans.

         

        After the format.
        I need to restore the E:\usr\SAP from the Windows backup.
        Then, restore the DB2 Database from DB2<SID> user 
        and also restoring the System State.

        .

         

        If you are going to format only E drive there is no mean to restore data for F drive as well...So please dont restore DB and system state backup if everything is fine , only restore E: drive backup.

         

        It is better to take tape backup if the system crashes or Windows Crashes

         

        Yes , it is always good to have backup in tape, for you i suggest take copy of E: in windows and tape as well. First try to restore from windows only in case of any issue you can restore from tape.

         

        So for you:

        1) Take offline file system backup (e:) on windows and tape

        2) Take DB backup on tapes may be offline

        3) Take system state backup

        4) Perofrm your activity

        5) Restore only E:  drive and start SAP

         

        Regards

        Gagan Deep Kaushal

  • Re: Moving E:\usr\sap
    Anil Bhandary
    Currently Being Moderated

    Hi,

     

    We have a requirement in which we need to increase the disk space in
    our E:\ drive in dev server.
    Our IT department wants to know, if we can move the files from
    E:\usr\sap to some other drive say F:\ and then move them back.
    I tried once to move a folder name irj in E:\usr\sap\<SID>\JCXX

     

    In such a case inform windows team to create new drive with neccesary size  on same server.

    Shutdown SAP appllication and sap services from services.msc

    Also check in task manager is there any application related to SAP is running or not.

    If yes, then try to stop that.

     

    copy complete E:\ to your new drive for e.g x:

    once copy is completed .

    Deallocate the E: drive ( deallocate and not delete , if any problem comes here , then windows team should be able to reallocate the drive to server with same drive name)

     

    Once deallocation is done , change the drive name of new drive ( for e.g X: ) to E:

     

    Once drive changed to E:, restart the complete OS.

     

    Now try to start SAP.

     

    Before doing all above acitivty, you should take backup as below.

     

    1. Database offline backup.

    2. E: complete file level backup.

     

    Thanks

    Anil

    • Re: Moving E:\usr\sap
      Kaushik Banerjee
      Currently Being Moderated

      Hi,

      The problem with move was a different story.

      The move didnot work as we had four folders with name more than 255 characters.

      Ideally windows cannot move, delete or cut and folder which is more than 255 characters length.

      I renamed and deleted those folders.

      Those were customized themes folders inside themes and portal.

      E:\usr\sap\<SID>\JCXX\j2ee\cluster\server1\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.design.portaldesigndata\themes\its\designs\com.vinmonopolet.portal.folder.VinmonopoletThemes\VinmonopoletEveryone\webgui\wa\scrindp\images\buttons\action;258;Path Too Long

      E:\usr\sap\<sid>\JCXX\j2ee\cluster\server1\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.design.urdesigndata\themes\portal\com.vinmonopolet.portal.folder.VinmonopoletThemes\Vinmonopolet_All\r\common\paginator\ico12_v_pag_first_page_dsbl.gif;256;ok

      E:\usr\sap\<SID>\JCXX\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.design.portaldesigndata\themes\its\designs\com.vinmonopolet.portal.folder.VinmonopoletThemes\Vinmonopolet_All\webgui\ma\scrindp\images\lists\smallcube.gif;259;ok

      E:\usr\sap\<SID>\JCXX\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.design.urdesigndata\themes\portal\com.vinmonopolet.portal.folder.VinmonopoletThemes\VMPBlue\r\common\patterncontainer\tabs\tab_first_ang_on_prev_on.gif;256;ok

       

       

      Regards

      Kaushik Banerjee

  • Re: Moving E:\usr\sap
    Fan Yu
    Currently Being Moderated

    Hi Kaushik

     

    It sounds like this is a Java or dual stack instance with DB6? With AS Java, simply moving file system objects is impossible since PCD is located in file system only not in database. You have to do a system copy or at least a database copy (if the case is ABAP-only instance) to change file system path, which is a complete uninstall followed by a reinstall of system copy.

     

    Regards,

  • Re: Moving E:\usr\sap
    Nag Koppuravuri
    Currently Being Moderated

    You can use SAPINST - Sytem Copy - CI (export/import) mechanism to reinstall your app on the new drive. This would be a more cleaner approach than doing a file system move.

  • Re: Moving E:\usr\sap
    Kaushik Banerjee
    Currently Being Moderated

    Solved.

    We have increased Drivespace of E:\.

    It is solved.

     

    Regards

    KB

Actions