Applies to: SynetoOS 4.x


In case you need to rename only datastore name and path, keeping original mountpoint follow the below steps:



#1 Login to SynetoOS as "admin" over SSH or VMware display console using current password and type to Activate unsopported shell and get SuperUser privileges:


Generic
un sh
sudo su -


#2  List Datastores


zfs list

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


#3 Once you identify the datastore to rename (eg. hybrid/backups/xyzwi/LinuxVM), type the command above to rename and keeping the mountpoint


zfs get mountpoint hybrid/backups/xyzwi/LinuxVM 

Output:

NAME                                                     MOUNTPOINT                                    SOURCE

hybrid/backups/xyzwi/LinuxVM           /hybrid/backups/xyzwi/LinuxVM       default


zfs set mountpoint=/hybrid/backups/xyzwi/LinuxVM hybrid/backups/xyzwi/LinuxVM


zfs get mountpoint hybrid/backups/xyzwi/LinuxVM 

Output:

NAME                                                     MOUNTPOINT                                    SOURCE

hybrid/backups/xyzwi/LinuxVM           /hybrid/backups/xyzwi/LinuxVM       local


#4 If after typing last command, the value "local" will appear than you can proceeding to the renaming


zfs rename hybrid/backups/xyzwi/LinuxVM hybrid/LinuxVM-New-Name