How to create metadata in SynetoOS 4

Written By Christian Castagna (Administrator)

Updated at May 27th, 2025

→ 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. Copy the metadata into the system metadata with the command (replace <pool_name> and <datastore_name> with the correct information)

zfs-meta get <pool_name>/datastores/<datastore_name>

EXAMPLE

zfs-meta get hybrid/datastores/VM1

 

IMPORTANT
Make sure to copy and paste the exact lines below (replace <datastore_name>, <hostname_syneto>, <domain_name>, <serialnumber_syneto> and <pool_name>) with the correct information

{
	"dataType": "VMware Datastore",
	"name": "<datastore_name>",
	"hosts": [],
	"createdOn": {
		"hostname": "<hostname_syneto>",
		"domain": "<domain_name>",
		"serialNumber": "<serialnumber_syneto>",
		"poolName": "<pool_name>"
	},
	"description": "<datastore_name> created."
}

 

Step 5. Press these keys to exit

Enter
Control + D

If the metadata was saved successfully, you will see a confirmation message: Successfully stored JSON

EXAMPLE OUTPUT

Successfully stored JSON:
{
    "dataType": "VMware Datastore",
    "name": "Home-Assistant",
    "hosts": [],
    "createdOn": {
        "hostname": "syneto-os4",
        "domain": "",
        "serialNumber": "SY250000000123",
        "poolName": "flash"
    },
    "description": "Home-Assistant created."
}