cancel
Showing results for 
Search instead for 
Did you mean: 

Solution - Missing topology.ini

ricksauer
Level 2

Not sure where to post this, please move if needed.

I've had an issue with a node missing the topoloy.ini and topology_nodes.ini from the /Storage/etc and /opt/pdinstall directories.

After a lot of searching and trial and error, I've been able to solve this issue.

I thought I would post the fix here to help anyone else that may have the same issue.

 

1. Copy from existing box topology.ini and topology_nodes.ini from /Storage/etc to a local drive if you can or create from scratch from step 3.

2. Find storagepoolid

2a. Putty to node

2b. At the # prompt type:

more /etc/puredisk/agent.cfg

2c. Storagepoolid is listed as storagepoolid=xxx

2. Edit local copy, or create, topology.ini to match the following:

[rb]
ip=
type=local
passwd=
port=
ablogin=
abpasswd=
domaintype=
domainname=
path=
uniquespaname=<spa FQDN>
[main]
ntpserver=<ntp server FQDN>
timezone=<in format Region/Zone>
smtpserver=<SMTP server FQDN>
storagepoolid=ID (see step 2c above)
name=<if you used one>
description=<if you used one>
central=1 <or 0 if not used>
location=<previously configured at build>
department=<previously configured at build>
spapasswd=<previously configured at build>
dbpassword=<previously configured at build>
vcs=0
login=root
spalogin=root
owner=root
knownServices=spa,mbs,mbe,cr,cifs,nbu <previously configured at build>
lastupdate=
[ldap]
adminpasswd=<previously configured at build>
sambaadminpasswd=<previously configured at build>

3. Edit topology_nodes.ini to match the following:

[node_1]
enabled=1
ip=<SPA FQDN>
virtualip=<if used>
services=spa,mbs,mbe,cr,nbu <previously configured at build>
status=active

4. Copy back to affected node topology.ini and topology_nodes.ini to /Storage/etc

5. Create symbolic links for ini files

5a. At the # prompt type:

ln -s /Storage/etc/topology.ini /opt/pdinstall/topology.ini

5b. At the # prompt type:

ln -s /Storage/etc/topology_nodes.ini /opt/pdinstall/topology_nodes.ini

6. Encrypt ini files

6a. At the # prompt type:

/opt/pdinstall/enc_topology.sh -e

7. Restart services

7a. At the # prompt type:

/etc/init.d/vxatd stop
/etc/init.d/puredisk stop
/etc/init.d/vxatd start
/etc/init.d/puredisk start

Hopefully this might save someone a few headaches and a few hours too!

1 REPLY 1

S_Williamson
Level 6

Hi

I have had this happen to me before, They are easy enough to re-create them but what I do now is periodically create a backup of them to be on the safe side

cp /Storage/etc/topology.ini.enc /Storage/etc/topology.ini.enc.bak

and

cp /Storage/etc/topology_nodes.ini /Storage/etc/topology_nodes.ini.bak

Quick and easy to copy back if missing and the content rarely changes.

 

Simon