Sets a subordinate metadata server as the new master metadata server in the event of an irrecoverable loss of the current master metadata server.
You must have Administrator privileges to use the command.
You must be logged in to the operating system on the engine hosting the subordinate metadata server to run this command.
Do not stop the subordinate metadata servers.
Before stopping the master metadata server, you should move the filesets that are being served by the master metadata server to another metadata server.
Setting a new master metadata server may affects the clients. If the clients mount to the global namespace using the IP address of the master metadata server, this address will become unavailable if the client reboots. Therefore, you must reset the IP address to which each client mounts. For AIX® client, edit the /usr/tank/client/config/stclient.conf file, and set the server_hot_name variable.
The setmaster command demotes the master metadata server to a subordinate. It does not drop the metadata server from the cluster. When you restart the engine, the metadata server joins the cluster as subordinate.
This command is useful when you want to replace hardware components of or upgrade the engine hosting the master metadata server.
Set the master metadata server The following example verifies that the master metadata server ST0 is shut down and then sets the subordinate metadata server ST1 as the master metadata server.
sfscli> lsserver Name State Server Role Filesets Last Boot ============================================================== ST0 Online Master 0 Jul 10, 2003 7:00:17 AM ST1 Online Subordinate 2 Jul 10, 2003 7:00:24 AM sfscli> stopservre ST0 Server "ST0" stopped gracefully. sfscli> lsserver Name State Server Role Filesets Last Boot =================================================================== ST0 Not Running Master - - ST1 Joining Subordinate 2 Jul 10, 2003 7:00:24 AM sfscli> statcluster -netconfig Could not connect to the server. Please start the server.
sfscli> lsserver Name State Server Role Filesets Last Boot =============================================================== ST1 Joining Subordinate 2 Jul 10, 2003 7:00:24 AM sfscli> statcluster -netconfig statcluster must be issued from the admin master server. sfscli> stopengine ST0 Are you sure you want to stop engine "ST0"? [y/n] Y Engine "ST0" was shutdown successfully. sfscli> lsengine Name Engine IP Boot State Temp Fans Voltage =============================================================== ST1 555.168.10.25 In OS Normal Normal Normal ST0 555.168.10.24 Unknown/Power Off - - - sfscli> setmaster ST1 Server "ST1" is the new master server. sfscli> lsserver Name State Server Role Filesets Last Boot =============================================================== ST1 Online Master 2 Jul 10, 2003 7:05:12 AM ST0 Unknown Subordinate 2 Jul 10, 2003 7:05:12 AM
Parent topic: Administrative commands