→ Applies to: SynetoOS 4.x
Step 1. Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 2. Become Super User
sudo su
Step 3 (optional). Change into Solaris shell (in case you're directed to an unsupported shell)
un sh
Step 4. Retrieve a list of all datastore
zfs list
EXAMPLE of output
NAME USED AVAIL REFER MOUNTPOINT flash 24.2G 13.6G 27.5K /flash flash/datastores 24.1G 13.6G 51.5K /flash/datastores flash/datastores/ISO 6.31G 13.6G 6.31G /flash/datastores/ISO flash/datastores/TestWin16 17.8G 13.6G 12.6G /flash/datastores/TestWin16 flash/shares 48K 13.6G 24K /flash/shares flash/shares/smb 24K 13.6G 24K /flash/shares/smb hybrid 11.2M 18.9G 26K /hybrid hybrid/backups 194K 18.9G 24K /hybrid/backups hybrid/backups/09df6ca2/hybrid/datastores/LinuxVM
Step 5. Identify the datastore path you want to convert as original (replace <pool_name>, <replica_code> and <name_vm> with the correct information)
<pool_name>/backups/<replica_code>/<pool_name>/datastores/<pool_name>/backups/<name_vm>
EXAMPLE
hybrid/backups/09df6ca2/hybrid/datastores/hybrid/backups/LinuxVM
Step 6. Output the metadata (replace <datastore_path> with the correct information)
zfs-meta get <datastore_path>
EXAMPLE of output
Output: { "dataType": "VMware Datastore", "name": "LinuxVM", "hosts": [], "createdOn": { "hostname": "syneto-os-1", "domain": "syneto.eu", "serialNumber": "VMware-42 3e 4a d3 ac e5 a5", "poolName": "flash" }, "description": "[2021-01-11 17:30:45] Datastore LinuxVM created.", "protectedVirtualMachines": [] }
Step 7. Copy the output of the above command into a text file on your computer (replace <datastore_name> , <serial_number> and <pool_name> with the correct information)
{
"dataType": "VMware Datastore",
"name": "<datastore_name>",
"hosts": [],
"createdOn": {
"hostname": "syneto-os-1",
"domain": "syneto.eu",
"serialNumber": "<serial_number>",
"poolName": "<pool_name>"
},
"description": "[2021-01-11 17:30:45] Datastore LinuxVM created.",
"protectedVirtualMachines": []
}
The serial number and pool must be identical to those of the system for which you want to create the original datastore.
Step 8. Copy the new content into the system metadata with the command
zfs-meta set <datastore_path>
Step 9. Press these keys to exit
Enter
Control + D