VMware vSphere

 View Only
  • 1.  Compacting a virtual disk that has an oracle database

    Posted Jul 17, 2018 06:02 AM

    Hi all;

    i would like to ask if i have a vmware virtual machine with windows os and oracle software and that the oracle database being saved on a dynamic virtual disk , if i compact the virtual disk,will that affect the oracle database???



  • 2.  RE: Compacting a virtual disk that has an oracle database

    Posted Jul 17, 2018 06:34 AM

    Hello,

    Compacting a virtual hard disk reclaims unused space in the disk. If a disk has empty space, this process reduces the amount of space the virtual hard disk occupies on the host drive. You must power off a virtual machine before you compact its virtual hard disk.

    You cannot compact a virtual hard disk if disk space is preallocated or if the virtual hard disk is mapped or mounted.

    For similar tasks, it is highly recommended to take a valid backup before (for your VM and for your data), because in IT shit happens :smileywink:

    Please consider marking this answer "CORRECT" or "Helpful" if you think your question have been answered correctly.

    Cheers,

    VCIX6-NV|VCP-NV|VCP-DC|

    @KakHassan

    linkedin.com/in/hassanalkak



  • 3.  RE: Compacting a virtual disk that has an oracle database

    Posted Jul 17, 2018 06:39 AM

    but what if i have an oracle database on the virtual disk.

    what will happen???

    will it affect the database?



  • 4.  RE: Compacting a virtual disk that has an oracle database

    Posted Jul 17, 2018 06:47 AM

    compact reclaims unused space in the disk, so it is unaware from data.

    But recommended to take a backup in case needed.