How to rename a datastore keeping the original mountpoint in SynetoOS 4

Written By Christian Castagna (Administrator)

Updated at November 25th, 2024

→ Applies to: SynetoOS 4.x

WARNING: The rename operation requires to switch off the VM in the datastore.

 

Step 1. Login to VMware ESXi GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)

https://<your_ip_address_or_hostname>

 

Step 2. Power off the VM

Step 3. Login to SynetoOS 4 GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)

https://<your_ip_address_or_hostname>

 

Step 4. Click on Datastores in the left menu

 

Step 5. Click on Change host

 

Step 6. Deselect the host and click on Update

 

Step 7. List datastores

zfs list

EXAMPLE OUTPUT

NAME                           USED  AVAIL  REFER  MOUNTPOINT

flash                          24.2G  13.6G  27.5K  /flash
flash/datastores               24.1G  13.6G  51.5K  /flash/datastores
hybrid/backups/xyzwi/LinuxVM   194K  18.9G    24K  /hybrid/backups/xyzwi/LinuxVM

 

Step 8. Retrieve the mountpoint (replace <pool_name> and <datastore_name>  with the correct information)

zfs get mountpoint <pool_name>/datastores/<datastore_name>

EXAMPLE OUTPUT

NAME                              MOUNTPOINT                        SOURCE
hybrid/backups/xyzwi/LinuxVM      /hybrid/backups/xyzwi/LinuxVM     default

 

Step 9. Set the mountpoint (replace <pool_name> and <datastore_name>  with the correct information)

zfs set mountpoint=<pool_name>/datastores/<datastore_name><pool_name>/datastores/<datastore_name> 

 

Step 10. Retrieve the mountpoint after change (replace <pool_name> and <datastore_name>  with the correct information)

zfs get mountpoint <pool_name>/datastores/<datastore_name>

EXAMPLE OUTPUT

NAME                              MOUNTPOINT                        SOURCE
hybrid/backups/xyzwi/LinuxVM      /hybrid/backups/xyzwi/LinuxVM     default

 

Step 11. Retrieve the mountpoint (replace <pool_name> and <datastore_name>  with the correct information)

zfs get mountpoint <pool_name>/datastores/<datastore_name>

EXAMPLE OUTPUT

NAME                              MOUNTPOINT                        SOURCE
hybrid/backups/xyzwi/LinuxVM      /hybrid/backups/xyzwi/LinuxVM     default

 

Step 12. Rename the datastore (replace <pool_name>,<datastore_name> and  <new_datastore_name> with the correct information)

zfs rename <pool_name>/datastores/<datastore_name> <pool_name>/datastores/<new_datastore_name>

EXAMPLE OUTPUT

NAME                              MOUNTPOINT                        SOURCE
hybrid/backups/xyzwi/LinuxVM      /hybrid/backups/xyzwi/LinuxVM     default

 

Step 13. Login to SynetoOS 4 GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)

https://<your_ip_address_or_hostname>

 

Step 14. Click on Change host

 

Step 15. Select the host and click on Update

 

Step 16. Login to VMware ESXi GUI (replace <your_ip_address_or_hostname> with the correct ip/hostname)

https://<your_ip_address_or_hostname>

 

Step 17. Register the VM

Step 18. Power on the VM