Disabling and re-enabling IBM Storage Scale native REST API
You can disable the IBM Storage Scale native REST API feature and revert to the classic IBM Storage Scale infrastructure only if you encounter issues related to this feature. Also, you can re-enable this feature after the issue is resolved.
Disabling the native REST API
To disable the native REST API feature on a
cluster, do the following steps:
- Reconfigure the environment to use
ssh
andscp
protocols.mmchcluster -r /usr/bin/ssh -R /usr/bin/scp
- Disable the native REST API
configuration.
mmchconfig scaleApiEnabled=DEFAULT --force
Note: If mmfsd is already running, a restart is required for the changes to take effect. - Remove the native REST API cluster
variable from the cluster configuration repository (CCR) as follows:
- List the cluster variables.
A sample output is as follows:mmccr vlist
version name value ------------------------------------------------------------------------- 3 mmRunningCommand "" 1 scaleapiClusterMarkerState "CLUSTER_STATE_REC: created: gpfs-dev-1:2025.04.17.15.40.32:"
- Remove the native REST API cluster
variable.
mmccr vdel scaleapiClusterMarkerState
- Verify that the native REST API cluster
variable is removed.
version name value ------------------------------------------------------------------------- 3 mmRunningCommand ""
- List the cluster variables.
- Stop the scaleadmd service on all nodes in the
cluster.
mmdsh -N all "systemctl stop scaleadmd'
- Disable the scaleadmd service on each node in the
cluster.
Ormmdsh -N all 'systemctl disable scaleadmd'
systemctl disable scaleadmd
- Verify the state on each node of the
clusters.
A sample output is as follows:mmdsh -N all 'systemctl status scaleadmd'
scaleadmd.service - Storage Scale Admin Daemon Service Loaded: loaded (/usr/lib/systemd/system/scaleadmd.service; disabled; vendor preset: disabled) Active: inactive (dead)
- Remove the marker files from the native REST API nodes as follows:
- List the marker
files.
A sample output is as follows:mmdsh -N all 'ls /var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile'
gpfs-dev-1: /var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile gpfs-remote-1: /var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile gps-remote-3: /var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile
- Remove the marker
files.
mmdsh -N all 'rm /var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile'
- Verify that all the marker files are
removed.
A sample output is as follows:mmdsh -N all 'ls /var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile'
gpfs-dev-1: 1s: cannot access '/var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile': No such file or directory mmdsh: gpfs-dev-1 remote shell process had return code 2. gpfs-remote-3: ls: cannot access '/var/mmfs/scaleadm/config/scaleapiClusterMarkerStateFile': No such file or directory mmdsh: gps-remote-3 remote shell process had return code 2. gpfs-remote-1: 1s: cannot access '/var/mms/scaleadm/config/scaleapiClusterMarkerStateFile': No such file or directory mmdsh: gpfs-remote-1 remote shell process had return code 2.
- List the marker
files.
Re-enabling the native REST API
To enable the native REST API again,
complete the following steps:
- Enable the administration daemon to use the native REST API.
A sample output is as follows:mmdsh -N all 'systemctl enable scaleadmd"
gpfs-dev-1: Created symlink /etc/systemd/system/multi-user.target.wants/scaleadmd.service -/usr/lib/systemd/system/scaleadmd.service. gpfs-remote-3: Created symlink /etc/systemd/system/multi-user.target.wants/scaleadmd.service -/usr/lib/systemd/system/scaleadmd.service. gpfs-remote-1: Created symlink /etc/systemd/system/multi-user.target.wants/scaleadmd.service - /usr/lib/systemd/system/scaleadmd.service.
- Restart the administration
daemon.
mmdsh -N all 'systemctl restart scaleadmd'
- Run the migrate precheck.
A sample output is as follows:scalectl cluster migrate --precheck
{ "succeeded": [ { "node_number": "1", "admin_node_name": "gpfs-dev-1" }, { "node number": "2", "admin_node_name": "gpfs-remote-1" }, { "node_number": "3", "admin_node_name": "gpfs-remote-3" }, ] } Cluster Migrate: Migration PreCheck command completed successfully.
- After the migration precheck completed successfully, perform the cluster migration to enable the
native REST API.
A sample output is as follows:scalectl cluster migrate
Migration command completed successfully. The cluster was migrated.