6 October 2015

IBM Storwize v3700 Configuration Backup

Since IBM Storwize storage system doesn't use typical command line interface, you need to know its special commands in order to carry out your stuff via CLI. 

I needed to create backup of storage configurations and transfer them to my local computer. Things didn't go quiet easy as after logged in to CLI you will notice even "ls" or "cd" commands are not exist.

Here is how I carry out this task together with the commands and results.

lsdumps


To check the previous backed up files, use "lsdumps":

IBM_2072:STGHostname:superuser>lsdumps
id filename
0  ethernet.7806628-1.trc
1  livedump.7806628-1.140819.163538
2  snap.7806628.tgz
3  7806628-1.trc
4  svc.config.cron.bak_7806628-1
5  svc.config.cron.sh_7806628-1
6  svc.config.cron.xml_7806628-1
7  svc.config.cron.log_7806628-1



svcconfig


To create the backup, "svcconfig" is the command:

IBM_2072:STGHostname:superuser>svcconfig backup
................................................................................ 
................................................................................                                           ................................................................................                                           ................................................................................                                            
CMMVC6155I SVCCONFIG processing completed successfully


After backup finished 
successfully, there would be 3 new files created as per lines 8,9 and 10:

IBM_2072:STGHostname:superuser>lsdumps
id filename
0  ethernet.7806628-1.trc
1  livedump.7806628-1.140819.163538
2  snap.7806628-1.tgz
3  7806628-1.trc
4  svc.config.cron.bak_7806628-1
5  svc.config.cron.sh_7806628-1
6  svc.config.cron.xml_7806628-1
7  svc.config.cron.log_7806628-1
8  svc.config.backup.xml_7806628-1
9  svc.config.backup.log_7806628-1
10 svc.config.backup.sh_7806628-1



PSCP


It is actually not possible to use WinScp to transfer config backups over offside due to Storewize lack of basic commands such as "cd". But "pscp" does the trick. 

You need to download it from it's official website (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html), then using following commands to transfer config backup files to your computer: 

If you downloaded "pscp.exe" in your windows desktop folder, and
using "superuser" as default admin account of Storwize, and
10.8.224.163 is IP of Storwize, and
you would like to transfer the backups to your desktop folder, then
the command would be:

C:\Users\username\Desktop>pscp superuser@10.8.224.163:/tmp/svc.config.backup.* C:\Users\username\Desktop/
superuser@10.8.224.163's password:
svc.config.backup.log     | 27 kB |  27.8 kB/s | ETA: 00:00:00 | 100%
svc.config.backup.sh      | 13 kB |  14.0 kB/s | ETA: 00:00:00 | 100%
svc.config.backup.xml     | 221 kB | 221.2 kB/s | ETA: 00:00:00 | 100%





No comments:

Post a Comment