This post is more than 5 years old
5 Practitioner
•
274.2K Posts
1
4117
Rename Vplex Clusters
Hi,
My customer want to change it's clusters name to refer to site name.
Seem's more easy to deal with city names "Trappes" and "Achères" than "cluster-1" and "cluster-2"
in /clusters I've got a name value but it's ReadOnly...
If somebody can help me, Thx in Adv :-)
Andrew-F
27 Posts
0
February 12th, 2013 06:00
Hi,
You need to be in the actual cluster context that you want to change. “name” is an attribute of cluster-1 and cluster-2.
So if you go to /clusters/cluster-1 you can then set name to a new value.
Or you can do set /clusters/cluster-1::name <newname>
I hope this helps.
Thanks,
Andrew
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
February 12th, 2013 06:00
Thx a lot Andrew.
It's just missing in the context attributes :-/ Thx for your good answer :
VPlexcli:/clusters/HR-4> ll
Attributes:
Name Value
---------------------- -------------------------------------------------------
allow-auto-join true
auto-expel-count 0
auto-expel-period 0
auto-join-delay 0
cluster-id 2
connected true
default-cache-mode synchronous
default-caw-template true
director-names [director-2-1-A, director-2-1-B, director-2-2-A,
director-2-2-B]
island-id 1
operational-status ok
transition-indications []
transition-progress []
health-state ok
health-indications []
Contexts:
Name Description
------------------------------ -----------------------------------------------
cluster-connectivity Contains information about subnets,
option-sets, port-groups, routing table and
other cluster-lever connection properties.
consistency-groups Contains information about each consistency
group that is relevant to the enclosing
cluster.
devices Contains information about each device that is
local to the enclosing cluster.
exports Contains all the configuration for storage
exports at this cluster, including initiator
and target ports, and how storage is presented
to initiators on the target ports.
storage-elements Contains information on the storage entities at
this cluster, including storage-volumes,
extents and storage-arrays.
system-volumes Contains information on special volumes used by
the Plex at this cluster, including
meta-volumes and logging-volumes.
uninterruptible-power-supplies One for each uninterruptible power supply
within this cluster.
virtual-volumes Contains information on the virtual volumes at
this cluster that may be exported to hosts.
Volumes may be supported by local devices,
remote devices, or distributed devices.
VPlexcli:/clusters/HR-4>
Andrew-F
27 Posts
1
February 12th, 2013 15:00
Hi,
Yes, for some reason it doesn't appear in a listing, but you can look at all attributes using set:
VPlexcli:/clusters/cluster-1> set
-or-
VPlexcli:/> set /clusters/cluster-1
Will list out all of the attributes and for each, give you acceptable values or tell you that they are read-only.
For example:
VPlexcli:/> set /clusters/cluster-1
attribute input-description
------------------------------------------- -----------------------------------------------------
/clusters/cluster-1::allow-auto-join Takes one of '0', '1', 'f', 'false', 'n', 'no',
'off', 'on', 't', 'true', 'y', 'yes' (not case
sensitive).
/clusters/cluster-1::auto-expel-count Takes an integer between 0 and 2147483647.
/clusters/cluster-1::auto-expel-period Takes an integer between 0 and 2147483647.
/clusters/cluster-1::auto-join-delay Takes an integer between 0 and 2147483647.
/clusters/cluster-1::cluster-id Read-only.
/clusters/cluster-1::connected Read-only.
/clusters/cluster-1::default-cache-mode Takes one of 'asynchronous', 'synchronous' (case
sensitive).
/clusters/cluster-1::default-caw-template Takes one of '0', '1', 'f', 'false', 'n', 'no',
'off', 'on', 't', 'true', 'y', 'yes' (not case
sensitive).
/clusters/cluster-1::default-director Read-only.
/clusters/cluster-1::director-names Read-only.
/clusters/cluster-1::health-indications Read-only.
/clusters/cluster-1::health-state Read-only.
/clusters/cluster-1::island-id Read-only.
/clusters/cluster-1::name Takes a unique, non-empty and non-null name. A valid
name starts with a letter or '_' and contains only
letters, numbers, '-' and '_'.
/clusters/cluster-1::operational-status Read-only.
/clusters/cluster-1::transition-indications Read-only.
/clusters/cluster-1::transition-progress Read-only.
VPlexcli:/>
Also, if you are familiar with the API you can do a GET of the context and it will list out the attributes.
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
February 15th, 2013 02:00
Just GREAT!!!!
Thank you so much ;-)
Have a good day