How to Pre-upgrade mongo&solr Backup,following the below steps:
1. Open Internet Explorer, enter https://xxx.xxx.xxx.xxx:8443/sem in the address box, and press Enter.
2. Enter the user name and password to log in to the SEM client.
3. Choose Resource management > Service management > Software management, select the board where the Mongo and Solr are deployed from Cluster list, click the stopping button in the Mongo and Solr lines from Software list, and stop all the Mongo(Mongo Mongos MongoConfig) and Solr(Solr Solrs) software in the cluster.
Step 4 to Step 9 needs to be performed on all management nodes.
ps -elf | grep mongo
ps -elf | grep solr
5. Log in to the background of all management boards and check whether the IPSAN remaining storage space can meet the backup conditions.
df –h
You need to ensure that the total available space in /sre_storage/data1/mongo, /sre_storage/data1/solr, and /sre_storage/data2/solr on all management boards is smaller than the remaining space in /sre_storage/data1/s2.
6. Create the backup directories 201xxxxxbackup, 201xxxxxbackup/solr, and 201xxxxxbackup/solrs in /sre_storage/data1/s2/.
mkdir -p /sre_storage/data1/s2/201xxxxxbackup
mkdir -p /sre_storage/data1/s2/201xxxxxbackup/solr
mkdir -p /sre_storage/data1/s2/201xxxxxbackup/solrs
7. Back up Mongo data (backup speed: 90 MB/s).
time cp -frap /sre_storage/data1/mongo/ /sre_storage/data1/mongo/ /sre_storage/data1/s2/20170614backup/
8. Back up Solr data.
time cp -frap /sre_storage/data1/solr/ /sre_storage/data1/s2/20170614backup/solr
time cp -frap /sre_storage/data2/solr/ /sre_storage/data1/s2/20170614backup/solrs
10. Check whether backup is successful. Check the storage space occupied by backup data and storage space of data sources. In principle, the difference is within 30%.


