31: MySQL VDB Management
- 1 General
- 2 Golden Image (GI)
- 2.1 Remove a GI
- 2.2 Edit a GI
- 2.3 See information about a GI
- 3 Virtual Database (VDB)
- 3.1 Create VDB
- 3.2 VDB statuses
- 3.3 Start VDB
- 3.4 Stop VDB
- 3.5 Force stop VDB
- 3.6 Remove VDB
- 3.7 List snapshots
- 3.8 Create a snapshot
- 3.9 Remove a snapshot
- 3.10 Recover to the first snapshot
- 3.11 Recover to any snapshot
- 3.12 Create a duplicate
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
Select a GI in the list.
Click Remove Golden Image.
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
Select the GI in the list.
Click Modify volume.
Modify details:
Description - an optional description of the GI
To save your changes, click Modify. Otherwise, click Cancel.
See information about a GI
Select the GI in the list.
Click Volume info.
The Info window appears and shows the next details:
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
To see the last logs, click “Last Logs”. A last log of this GI is displayed
Click Auto-refresh to do an auto refresh.
Click Download to download the last log file
To see the log history, click Log History
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
On the navigation bar, click Virtual Databases.
The VDB Management window appears.Select a Test Data Environment using the list in the header
Select a snapshot from the snapshots list on the right side of the screen.
It is possible to scroll using the time and date to the right of a search.
Click Create VDB.
Enter the VDB parameters:
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.
Enter the Snapshot policy parameters
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)
Enter the Advanced Parameters, if necessary:
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
VDB startup pre/post scripts - full path to script files on the target server.
Pre OS script - it is a shell script that is executed on the target server before the VDB is started
Post SQL script - it is an SQL script that is executed in the database (VDB) after the VDB is started
Post OS script - it is a shell script that is executed on the target server after the VDB is started
Click Create VDB. Otherwise, click Cancel to exit without creating a VDB.
The VDB Management window displays the VDB that has been created.
VDB statuses
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.
Select the VDB.
Click Start VDB.
Enter the VDB parameters:
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.
Enter the Advanced Parameters, if necessary - same as in Create VDB
Click Start VDB
Stop VDB
Select the VDB.
Click Stop VDB.
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.
Select the VDB.
Click Force stop VDB.
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.
Select the VDB.
Click Remove VDB.
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.
Create a snapshot
Select GI or VDB
Click Add snapshot
Enter Name and Description
Click Add
Pay attention that every refresh of GI creates a snapshot of GI automatically
Remove a snapshot
Select VDB
Select the snapshot.
Click Remove snapshot.
Click Remove to confirm the deletion
After the snapshot is removed, the following message appears: Snapshot has been deleted.
Recover to the first snapshot
Select VDB
Click “Recovery to first snapshot”.
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
Select VDB
Select any snapshot on the right pane.
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
Select VDB
Select the snapshot.
Click Create duplicate.
3. Enter details of the new duplicate.
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.