Cleaner rebuild of an Xsan

Cleaner rebuild of an Xsan

We have shown how to rebuild an Xsan from scratch by creating a new Xsan and OD with xsanctl and then copying the needed configuration files into /Library/Preferences/Xsan, but this left us with either changing the auth_secret everywhere or manually editing our mobleconfig files.  We then learned that we can rebuild Open Directory from scratch and push our config up to it.  We recently were replacing Intel based MDCs with M1 Mac Minis and had the chance to put these together.  The Intel systems were regularly running with temperatures above 80° C and spikes above 100° C.  The M1s with the same load are running below 30° C.

Backup Xsan configuration

The first thing we need to back up the critical Xsan configuration files and note some system settings.  We need all the contents of /Library/Preferences/Xsan including the hidden .auth_secret file.  To make this easy, run these 2 commands in a Terminal window on your MDC.

$ cd /Library/Preferences
$ sudo tar cvf ~/Desktop/mdc.tar Xsan

The second command will prompt for your admin password.  This is needed to capture the auth_secret since it is readable only by root.

Now, note the network configuration on both the MDC and BMDC.  Make sure to include both the public network and the metadata network.  We are assuming your DNS is already configured.

We can now stop our volume(s) and shutdown the MDCs.

Replace and setup MDC hardware
Restore and clean up Xsan configuration
Create Open Directory
Push Xsan configuration into Open Directory
Start Xsan
Replace and setup BMDC hardware
Join BMDC to Xsan

Latest News

RSK Group