SOLVED GlusterFS cluster, remove virtual IP after trying SMB cluster mode

Urbaman

Dabbler
Joined
Jan 8, 2022
Messages
29
Hi,

I tryied to set up an SMB cluster, now trying to get back to single SMB.
How can I remove the virtual IP added in the process?

Thank you.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Sure! To undo the cluster and go back to single SMB mode, you can do the following:

REVERTING TO NON-CLUSTER MODE on FIRST node:

(Get SMB share and remove clustered share)
# midclt call sharing.smb.query (Get the ‘id’ of the share)
# midclt call sharing.smb.delete 2 (replace ‘2’ with the id of share)
# midclt call service.stop cifs
# midclt call gluster.volume.stop '{"name": "testvol1"}'
# midclt call gluster.volume.delete testvol1 -job
# midclt call ctdb.shared.volume.delete -job
# midclt call service.stop glusterd
# midclt call service.update glusterd '{"enable": false}'
# midclt call smb.reset_smb_ha_mode
# midclt call service.start cifs

REVERTING TO NON-CLUSTER MODE on OTHER nodes:
# midclt call service.stop cifs
# midclt call service.stop glusterd
# midclt call service.update glusterd '{"enable": false}'
# midclt call smb.reset_smb_ha_mode
# midclt call service.start cifs

After doing this and rebooting, you should see those VIPs gone.
 

Urbaman

Dabbler
Joined
Jan 8, 2022
Messages
29
Hi,

First command gives me

Code:
[]


Second command gives me

Code:
false


Should I continue?

I still have the IP in there after a reboot.

Thank you
 

Urbaman

Dabbler
Joined
Jan 8, 2022
Messages
29
Ok, I went through all of the commands even if some of them gave me errors, and the virtual IP disappeared.

Thank you very much,
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
No problem, glad that helped clear it up!
 
Top