31: MySQL VDB Management

31: MySQL VDB Management

General

Virtual Database (VDB) is a fully functional copy of source database, that requires almost no storage and takes very short time to be created.

The management of VBD’s is done in the Virtual Databases work area. In addition, the same work area allows to perform tasks for a Golden Images(GI) and manage duplicates. It also allows to manage snapshots for all the objects.

Golden Image (GI)

Remove a GI

  1. Select a GI in the list.

  2. Click Remove Golden Image.

    image-20250508-073441.png
  3. Click Remove to confirm the deletion or Cancel to exit with deleting the volume.

After the GI is removed, the following message appears: Golden Image (live) has been deleted.

Edit a GI

  1. Select the GI in the list.

  2. Click Modify volume.

    image-20250508-074158.png
  3. Modify details:

    image-20250508-074227.png

Description - an optional description of the GI

  1. To save your changes, click Modify. Otherwise, click Cancel.

See information about a GI

  1. Select the GI in the list.

  2. Click Volume info.

    image-20250508-075348.png
  3. The Info window appears and shows the next details:

    image-20250508-075423.png

 

Volume info

Name - name of the GI

Description - description of the GI

Created at - created timestamp

Updated at - last update timestamp - last refresh of GI

Overall execution time - how much time it took to create the GI.

Storage path - the directory on the source server where the GI database should be running

DB Size - total size of the source database

  1. To see the last logs, click “Last Logs”. A last log of this GI is displayed

    image-20250508-075707.png

    Click Auto-refresh to do an auto refresh.
    Click Download to download the last log file

  1. To see the log history, click Log History

    image-20250508-075809.png

    Choose a log based on timestamp and operation
    The log is displayed
    Click Auto-refresh to do an auto refresh.
    Click Download to download the log file

Virtual Database (VDB)

Create VDB

  1. On the navigation bar, click Virtual Databases.
    The VDB Management window appears.

    image-20250508-075948.png
  2. Select a Test Data Environment using the list in the header

    image-20250508-080025.png
  3. Select a snapshot from the snapshots list on the right side of the screen.

    image-20250508-080102.png

It is possible to scroll using the time and date to the right of a search.

  1. Click Create VDB.

  1. Enter the VDB parameters:

    image-20250508-080142.png

    Name - name of the VDB
    Description - an optional description

    Start immediately - if selected then the VDB is started immediately after the creation, if not selected then the VDB will created and left in stopped state
    Target DB Home - select the database home that will run the VDB. Pay attention that it also selects the target host, since each DB Home is configured under a specific target host
    Port - port of the VDB on the target host. Make sure that this port is not in use by any other process.

  1. Enter the Snapshot policy parameters

    image-20250508-080353.png
    • Activate snapshots - select if you want automatic snapshots of the GI to be created

    • Repeat every - choose snapshot frequency

    • Start from - when to start creating snapshots

    • Snapshot retention period - how many days to keep the snapshots, they will be deleted automatically afterwards (if no dependent objects exist)

  2. Enter the Advanced Parameters, if necessary:

    image-20250508-080426.png
    1. MySQL Parameters - the MySQL parameters that are used to start the VDB. If not specified, then the values from GI will be used. In order to add additional parameters use Settings > System > VDBS

    2. VDB startup pre/post scripts - full path to script files on the target server.

      1. Pre OS script - it is a shell script that is executed on the target server before the VDB is started

      2. Post SQL script - it is an SQL script that is executed in the database (VDB) after the VDB is started

      3. Post OS script - it is a shell script that is executed on the target server after the VDB is started

  3. Click Create VDB. Otherwise, click Cancel to exit without creating a VDB.

  4. The VDB Management window displays the VDB that has been created.

    image-20250508-081832.png

VDB statuses

Icon

Meaning

Icon

Meaning

VDB is in a middle of an operation (starting, stopping, creating snapshot, etc.)

VDB is stopped

VDB is started. Only in this state users can connect to the VDB

VDB has failed to start. Check the log of the VDB to understand the reason why.

Start VDB

VDB can be started automatically when it is created or can be started separately.

  1. Select the VDB.

  2. Click Start VDB.

    image-20250508-081932.png
  3. Enter the VDB parameters:

    image-20250508-081957.png

    Name - name of the VDB
    Description - an optional description
    Target DB Home - select the database home that will run the VDB. Pay attention that it also selects the target host, since each DB Home is configured under a specific target host
    Port - port of the VDB on the target host. Make sure that this port is not in use by any other process.

  1. Enter the Advanced Parameters, if necessary - same as in Create VDB

  2. Click Start VDB

Stop VDB

  1. Select the VDB.

  2. Click Stop VDB.

    image-20250508-085841.png

During the stop, the following message appears: VDB stop is in progress.

After the stop is complete, the following message appears: VDB has been stopped.

Force stop VDB

In some case a VDB can be stuck while stopping. It can be forcibly stopped. After a force stop the VDB state is reset, so it can be started again. The force stop option is always available, even for stopped VDB.

  1. Select the VDB.

  2. Click Force stop VDB.

    image-20250508-090722.png

During the force stop, the following message appears: VDB stop is in progress.

After the force stop is complete, the following message appears: VDB has been stopped.

Remove VDB

You can remove VDB only when it is stopped.

  1. Select the VDB.

  2. Click Remove VDB.

    image-20250508-090811.png
  3. Click Remove to confirm the deletion
    Pay attention that removing a VDB is an irreversible action!

List snapshots

The list of snapshots is displayed on the right pane. The list is updated every time you select GI, VDB or duplicate on the left pane. The snapshots are grouped by day. You can search for a specific snapshot using time filter or free text.

The time of snapshot refers the start time of the snapshot creation.

image-20231231-110652.png

Create a snapshot

  1. Select GI or VDB

  2. Click Add snapshot

    image-20250508-090906.png
  3. Enter Name and Description

    image-20250426-120241.png
  4. Click Add

Pay attention that every refresh of GI creates a snapshot of GI automatically

Remove a snapshot

  1. Select VDB

  2. Select the snapshot.

  3. Click Remove snapshot.

  1. Click Remove to confirm the deletion

After the snapshot is removed, the following message appears: Snapshot has been deleted.

Recover to the first snapshot

  1. Select VDB

  2. Click “Recovery to first snapshot”.

    image-20250508-091004.png
  3. Click Recovery to confirm the recovery or Cancel to exit with recovering the snapshot.

After all the snapshots are removed, the following message appears: Volume has been recovered to the first snapshot.

Recover to any snapshot

  1. Select VDB

  2. Select any snapshot on the right pane.

  3. Click Recovery to this snapshot.

3. Click Recover to confirm the recovery or Cancel to exit with recovering the snapshot.

After the recover operation is complete, the following message appears: Volume has been recovered.

Create a duplicate

  1. Select VDB

  2. Select the snapshot.

  3. Click Create duplicate.

3. Enter details of the new duplicate.

image-20250508-091103.png

Name - name of the duplicate

Description - an optional description

Storage pool - in which storage pool the duplicate will be created. By default it is set for secondary_pool

4. Click Create.

During the creation of the duplicate GI, the following message appears: Duplicate creation is in progress.

After the duplicate GI is created, the following message appears: Duplicate has been created.