Skip to Content
avatar image
Former Member

DATA Volume Size

Hi,

Can i shrink the size of data volume,suppose DB has 3 volumes of 10G each i want o shrink size of volume to 5G & fill level in each volume is only 2 G , is it possible.

I'm on 7.6 build 35. If we delete volume instead of shrinking what happens to data in that volume.

Please let me know. Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 03, 2009 at 06:59 PM

    > Can i shrink the size of data volume,suppose DB has 3 volumes of 10G each i want o shrink size of volume to 5G & fill level in each volume is only 2 G , is it possible.

    No

    > I'm on 7.6 build 35. If we delete volume instead of shrinking what happens to data in that volume.

    The data will be moved to the other volumes.

    I highly suggest updating your database to a recent service pack and build (7.6.00.35 is VERY old).

    Markus

    Add comment
    10|10000 characters needed characters exceeded

    • >

      > can i use database copy to delete volumes, how can i specify(reduce) the no. of volumes on DB during recovery.

      Ok, "database copy" is not really a functionality of the MaxDB tools.

      Instead, for such a database copy we use the backup/restore functions.

      Since we backup pages and not volumes or files you can restore backups into databases with a totally different volume file layout.

      As long as the total data area is large enough to contain all backup data (+the converter data) the restore will work.

      So it's important to remember that the volume layout is not something that is setup or changed by the restore.

      Therefore you have to change the volume layout before you restore the database.

      If you create a new instance as a target for the restore, you can just do it while creating the instance.

      If you want to reuse an existing instance, you need to reconfigure the instance.

      In DBMGUI you can do this via "Instance -> Initialize".

      Note: this is not the "Recovery with Initialisation" but a totally different function.

      Anyhow, if you just want to change your current data volume setup and don't want to have a downtime - simply follow the approach Markus described.

      It's used quite often even and especially for big systems (e.g. from SAP Hosting).

      > Which method is risk free.

      None of the methods available or discussed here are risky - they are all safe and you won't loose any data by using them.

      regards,

      Lars