Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition | |||
|
|
Solution Type Technical Instruction Sure Solution 1012762.1 : Sun StorEdge[TM] 99XX: HiCommand Device Manager (HDvM)- How to move HDvM database from one host to another
PreviouslyPublishedAs 217532 Description This document explains how to move a HDvM 4.x/5.x HiRDB database from one host to another. Specifically this document explains how to export a Solaris[TM] HDvM HiRDB Database and import it on a Windows HDvM 4.x/5.x Server. The same steps can be used to import/export a HDvM HiRDB Database from any two hosts. It is important to understand that an exported HiRDB Database can ONLY be imported on a HDvM server running the same or higher version of HDvM. This document does NOT apply to version of HDvM below 4.x. Steps to Follow Exporting the Database On a Solaris Host:NOTE: these sames steps could be followed on the Windows host as well. 1. Fresh install or Fully Functional Install of HDvM 4.2 Make sure that there is actually data in the HiRDB before continuing with this operation. 2. Verify that HDvM is running properly. # /opt/HiCommand/hicommand.sh status ================================================================================ Device Manager Server process ID: 17131 Device Manager Server socket information: ================================================================================ Copyright(C) 2001, 2005, Hitachi, Ltd. HiCommand Device Manager Server v4.2 Build 0420-05 (Jul 04, 2005) Started at:........ Thu, 27 Apr 2006 19:50:00 GMT Operation mode:.... real mode Server URL:........ http://hds:2001 Security level:.... User Logon (Basic Authentication) Config file:....... </opt/HiCommand/HiCommandServer/config/server.properties> Document root:..... </opt/HiCommand/HiCommandServer/docroot> Logs directory:.... <logs> Logging level:..... Information Server database:... HiRDB version 07.01.0000 Database URL:...... jdbc:hitachi:PrdbDrive://DBID=23032,DBHOST=hds,PDDIR=/opt/HiCommand/Base/HDB Server user:....... root:sys SNMP Trap:......... on Java VM version:... 1.4.0-b92 Java home dir:..... /opt/HiCommand/Base/jdk/jre ================================================================================ Base repository updater started. initialize updater start initialize updater end Base repository updater finished. 3. Stop the HDvM server # /opt/HiCommand/hicommand.sh stop ================================================================================ Device Manager Server is not running. ================================================================================ Copyright(C) 2001, 2005, Hitachi, Ltd. HiCommand Device Manager Server v4.2 Build 0420-05 (Jul 04, 2005) Started at:........ Thu, 27 Apr 2006 19:50:00 GMT Operation mode:.... real mode Server URL:........ http://hds:2001 Security level:.... User Logon (Basic Authentication) Config file:....... </opt/HiCommand/HiCommandServer/config/server.properties> Document root:..... </opt/HiCommand/HiCommandServer/docroot> Logs directory:.... <logs> Logging level:..... Information Server database:... HiRDB version 07.01.0000 Database URL:...... jdbc:hitachi:PrdbDrive://DBID=23032,DBHOST=hds,PDDIR=/opt/HiCommand/Base/HDB Server user:....... root:sys SNMP Trap:......... on Java VM version:... 1.4.0-b92 Java home dir:..... /opt/HiCommand/Base/jdk/jre ================================================================================ Base repository updater started. initialize updater start initialize updater end Base repository updater finished. 4. Stop the Common Component processes # /opt/HiCommand/Base/bin/hcmdssrv -stop KAPM05017-I Succeeded in stopping of service. service-name=HiCommand Suite Single Sign On Service KAPM05017-I Succeeded in stopping of service. service-name=HiCommand Suite Common Web Service KAPM06439-I The HiRDB service has stopped. 5. Start the HiRDB services # /opt/HiCommand/Base/bin/hcmdsdbsrv -start KAPM06438-I The HiRDB service has started. 6. Export the database NOTE: that the directory MUST be empty otherwise the following error will appear: # /opt/HiCommand/Base/bin/hcmdsdbmove -export -datapath /opt/hdvm_export KAPM06523-I The hcmdsdbmove command has started. KAPM06524-I Initialization for moving the database is being performed. KAPM06525-I The data for HiCommandBase will now be moved. KAPM06531-I Processing to export data has started. KAPM06511-E The file /opt/hdvm_export/HiCommandBase/HiCommandBase_tablelist.txt already exists. # /opt/HiCommand/Base/bin/hcmdsdbmove -export -datapath /opt/hdvm_export KAPM06523-I The hcmdsdbmove command has started. KAPM06524-I Initialization for moving the database is being performed. KAPM06525-I The data for HiCommandBase will now be moved. KAPM06531-I Processing to export data has started. KAPM06532-I The table definitions of the database are being exported. KAPM06533-I The data is being exported. KAPM06537-I The data is being exported. (progress = 001/104) KAPM06537-I The data is being exported. (progress = 002/104) KAPM06537-I The data is being exported. (progress = 003/104) KAPM06537-I The data is being exported. (progress = 004/104) KAPM06537-I The data is being exported. (progress = 005/104) KAPM06537-I The data is being exported. (progress = 006/104) KAPM06537-I The data is being exported. (progress = 007/104) KAPM06537-I The data is being exported. (progress = 008/104) KAPM06537-I The data is being exported. (progress = 009/104) KAPM06537-I The data is being exported. (progress = 010/104) KAPM06537-I The data is being exported. (progress = 011/104) KAPM06537-I The data is being exported. (progress = 012/104) KAPM06537-I The data is being exported. (progress = 013/104) KAPM06537-I The data is being exported. (progress = 014/104) KAPM06537-I The data is being exported. (progress = 015/104) KAPM06537-I The data is being exported. (progress = 016/104) KAPM06537-I The data is being exported. (progress = 017/104) KAPM06537-I The data is being exported. (progress = 018/104) KAPM06537-I The data is being exported. (progress = 019/104) KAPM06537-I The data is being exported. (progress = 020/104) KAPM06537-I The data is being exported. (progress = 021/104) KAPM06537-I The data is being exported. (progress = 022/104) KAPM06537-I The data is being exported. (progress = 023/104) KAPM06537-I The data is being exported. (progress = 024/104) KAPM06537-I The data is being exported. (progress = 025/104) KAPM06537-I The data is being exported. (progress = 026/104) KAPM06537-I The data is being exported. (progress = 027/104) KAPM06537-I The data is being exported. (progress = 028/104) KAPM06537-I The data is being exported. (progress = 029/104) KAPM06537-I The data is being exported. (progress = 030/104) KAPM06537-I The data is being exported. (progress = 031/104) KAPM06537-I The data is being exported. (progress = 032/104) KAPM06537-I The data is being exported. (progress = 033/104) KAPM06537-I The data is being exported. (progress = 034/104) KAPM06537-I The data is being exported. (progress = 035/104) KAPM06537-I The data is being exported. (progress = 036/104) KAPM06537-I The data is being exported. (progress = 037/104) KAPM06537-I The data is being exported. (progress = 038/104) KAPM06537-I The data is being exported. (progress = 039/104) KAPM06537-I The data is being exported. (progress = 040/104) KAPM06537-I The data is being exported. (progress = 041/104) KAPM06537-I The data is being exported. (progress = 042/104) KAPM06537-I The data is being exported. (progress = 043/104) KAPM06537-I The data is being exported. (progress = 044/104) KAPM06537-I The data is being exported. (progress = 045/104) KAPM06537-I The data is being exported. (progress = 046/104) KAPM06537-I The data is being exported. (progress = 047/104) KAPM06537-I The data is being exported. (progress = 048/104) KAPM06537-I The data is being exported. (progress = 049/104) KAPM06537-I The data is being exported. (progress = 050/104) KAPM06537-I The data is being exported. (progress = 051/104) KAPM06537-I The data is being exported. (progress = 052/104) KAPM06537-I The data is being exported. (progress = 053/104) KAPM06537-I The data is being exported. (progress = 054/104) KAPM06537-I The data is being exported. (progress = 055/104) KAPM06537-I The data is being exported. (progress = 056/104) KAPM06537-I The data is being exported. (progress = 057/104) KAPM06537-I The data is being exported. (progress = 058/104) KAPM06537-I The data is being exported. (progress = 059/104) KAPM06537-I The data is being exported. (progress = 060/104) KAPM06537-I The data is being exported. (progress = 061/104) KAPM06537-I The data is being exported. (progress = 062/104) KAPM06537-I The data is being exported. (progress = 063/104) KAPM06537-I The data is being exported. (progress = 064/104) KAPM06537-I The data is being exported. (progress = 065/104) KAPM06537-I The data is being exported. (progress = 066/104) KAPM06537-I The data is being exported. (progress = 067/104) KAPM06537-I The data is being exported. (progress = 068/104) KAPM06537-I The data is being exported. (progress = 069/104) KAPM06537-I The data is being exported. (progress = 070/104) KAPM06537-I The data is being exported. (progress = 071/104) KAPM06537-I The data is being exported. (progress = 072/104) KAPM06537-I The data is being exported. (progress = 073/104) KAPM06537-I The data is being exported. (progress = 074/104) KAPM06537-I The data is being exported. (progress = 075/104) KAPM06537-I The data is being exported. (progress = 076/104) KAPM06537-I The data is being exported. (progress = 077/104) KAPM06537-I The data is being exported. (progress = 078/104) KAPM06537-I The data is being exported. (progress = 079/104) KAPM06537-I The data is being exported. (progress = 080/104) KAPM06537-I The data is being exported. (progress = 081/104) KAPM06537-I The data is being exported. (progress = 082/104) KAPM06537-I The data is being exported. (progress = 083/104) KAPM06537-I The data is being exported. (progress = 084/104) KAPM06537-I The data is being exported. (progress = 085/104) KAPM06537-I The data is being exported. (progress = 086/104) KAPM06537-I The data is being exported. (progress = 087/104) KAPM06537-I The data is being exported. (progress = 088/104) KAPM06537-I The data is being exported. (progress = 089/104) KAPM06537-I The data is being exported. (progress = 090/104) KAPM06537-I The data is being exported. (progress = 091/104) KAPM06537-I The data is being exported. (progress = 092/104) KAPM06537-I The data is being exported. (progress = 093/104) KAPM06537-I The data is being exported. (progress = 094/104) KAPM06537-I The data is being exported. (progress = 095/104) KAPM06537-I The data is being exported. (progress = 096/104) KAPM06537-I The data is being exported. (progress = 097/104) KAPM06537-I The data is being exported. (progress = 098/104) KAPM06537-I The data is being exported. (progress = 099/104) KAPM06537-I The data is being exported. (progress = 100/104) KAPM06537-I The data is being exported. (progress = 101/104) KAPM06537-I The data is being exported. (progress = 102/104) KAPM06537-I The data is being exported. (progress = 103/104) KAPM06537-I The data is being exported. (progress = 104/104) KAPM06525-I The data for DeviceManager will now be moved. KAPM06531-I Processing to export data has started. KAPM06532-I The table definitions of the database are being exported. KAPM06533-I The data is being exported. KAPM06537-I The data is being exported. (progress = 01/60) KAPM06537-I The data is being exported. (progress = 02/60) KAPM06537-I The data is being exported. (progress = 03/60) KAPM06537-I The data is being exported. (progress = 04/60) KAPM06537-I The data is being exported. (progress = 05/60) KAPM06537-I The data is being exported. (progress = 06/60) KAPM06537-I The data is being exported. (progress = 07/60) KAPM06537-I The data is being exported. (progress = 08/60) KAPM06537-I The data is being exported. (progress = 09/60) KAPM06537-I The data is being exported. (progress = 10/60) KAPM06537-I The data is being exported. (progress = 11/60) KAPM06537-I The data is being exported. (progress = 12/60) KAPM06537-I The data is being exported. (progress = 13/60) KAPM06537-I The data is being exported. (progress = 14/60) KAPM06537-I The data is being exported. (progress = 15/60) KAPM06537-I The data is being exported. (progress = 16/60) KAPM06537-I The data is being exported. (progress = 17/60) KAPM06537-I The data is being exported. (progress = 18/60) KAPM06537-I The data is being exported. (progress = 19/60) KAPM06537-I The data is being exported. (progress = 20/60) KAPM06537-I The data is being exported. (progress = 21/60) KAPM06537-I The data is being exported. (progress = 22/60) KAPM06537-I The data is being exported. (progress = 23/60) KAPM06537-I The data is being exported. (progress = 24/60) KAPM06537-I The data is being exported. (progress = 25/60) KAPM06537-I The data is being exported. (progress = 26/60) KAPM06537-I The data is being exported. (progress = 27/60) KAPM06537-I The data is being exported. (progress = 28/60) KAPM06537-I The data is being exported. (progress = 29/60) KAPM06537-I The data is being exported. (progress = 30/60) KAPM06537-I The data is being exported. (progress = 31/60) KAPM06537-I The data is being exported. (progress = 32/60) KAPM06537-I The data is being exported. (progress = 33/60) KAPM06537-I The data is being exported. (progress = 34/60) KAPM06537-I The data is being exported. (progress = 35/60) KAPM06537-I The data is being exported. (progress = 36/60) KAPM06537-I The data is being exported. (progress = 37/60) KAPM06537-I The data is being exported. (progress = 38/60) KAPM06537-I The data is being exported. (progress = 39/60) KAPM06537-I The data is being exported. (progress = 40/60) KAPM06537-I The data is being exported. (progress = 41/60) KAPM06537-I The data is being exported. (progress = 42/60) KAPM06537-I The data is being exported. (progress = 43/60) KAPM06537-I The data is being exported. (progress = 44/60) KAPM06537-I The data is being exported. (progress = 45/60) KAPM06537-I The data is being exported. (progress = 46/60) KAPM06537-I The data is being exported. (progress = 47/60) KAPM06537-I The data is being exported. (progress = 48/60) KAPM06537-I The data is being exported. (progress = 49/60) KAPM06537-I The data is being exported. (progress = 50/60) KAPM06537-I The data is being exported. (progress = 51/60) KAPM06537-I The data is being exported. (progress = 52/60) KAPM06537-I The data is being exported. (progress = 53/60) KAPM06537-I The data is being exported. (progress = 54/60) KAPM06537-I The data is being exported. (progress = 55/60) KAPM06537-I The data is being exported. (progress = 56/60) KAPM06537-I The data is being exported. (progress = 57/60) KAPM06537-I The data is being exported. (progress = 58/60) KAPM06537-I The data is being exported. (progress = 59/60) KAPM06537-I The data is being exported. (progress = 60/60) KAPM06514-I Processing ended normally. Note: need to FTP this directory to the host that will be importing the database. Importing the database On the Windows Host:NOTE: These same steps could be followed on a Solaris host as well. 1. Fresh install of HDvM 4.2. This MUST be a fresh install of HDvM and the version must be the same or higher. For example Export HDvM 4.1 Database 2. Ensure that HDvM is operating properly after the install. Test this by logging into the HDvM webGUI: http://hds:23015/DeviceManager/Login Install the necessary License Key. 3. Stop the HDvM server C:\Program Files\HiCommand\DeviceManager\hicommand stop C:\Program Files>HiCommand\DeviceManager\hicommand stop The HiCommandServer service is stopping. The HiCommandServer service was stopped successfully. Press any key to continue . . . 4. Stop the Common Component processes C:\Program Files\HiCommand\Base\bin\hcmdssrv /stop C:\Program Files>HiCommand\Base\bin\hcmdssrv /stop KAPM05017-I Succeeded in stopping of service. service-name=HiCommand Suite Single Sign On Service KAPM05017-I Succeeded in stopping of service. service-name=HiCommand Suite Common Web Service KAPM06439-I The HiRDB service has stopped. 5. Start the HiRDB services C:\Program Files\HiCommand\Base\bin\hcmdsdbsrv /start C:\Program Files>HiCommand\Base\bin\hcmdsdbsrv /start KAPM06438-I The HiRDB service has started. 6. Import the database from "6. Export the database" C:\Program Files\HiCommand\Base\bin\hcmdsdbmove /import /datapath D:\matthewt\customers\hdvm_export /type DeviceManager C:\Program Files>HiCommand\Base\bin\hcmdsdbmove /import /datapath D:\hdvm_export /type DeviceManager KAPM06523-I The hcmdsdbmove command has started. KAPM06524-I Initialization for moving the database is being performed. KAPM06525-I The data for DeviceManager will now be moved. KAPM06526-I Processing to import data has started. KAPM06527-I The table definitions of the database are being imported. KAPM06528-I The data is being imported. KAPM06536-I The data is being imported. (progress = 01/60) KAPM06536-I The data is being imported. (progress = 02/60) KAPM06536-I The data is being imported. (progress = 03/60) KAPM06536-I The data is being imported. (progress = 04/60) KAPM06536-I The data is being imported. (progress = 05/60) KAPM06536-I The data is being imported. (progress = 06/60) KAPM06536-I The data is being imported. (progress = 07/60) KAPM06536-I The data is being imported. (progress = 08/60) KAPM06536-I The data is being imported. (progress = 09/60) KAPM06536-I The data is being imported. (progress = 10/60) KAPM06536-I The data is being imported. (progress = 11/60) KAPM06536-I The data is being imported. (progress = 12/60) KAPM06536-I The data is being imported. (progress = 13/60) KAPM06536-I The data is being imported. (progress = 14/60) KAPM06536-I The data is being imported. (progress = 15/60) KAPM06536-I The data is being imported. (progress = 16/60) KAPM06536-I The data is being imported. (progress = 17/60) KAPM06536-I The data is being imported. (progress = 18/60) KAPM06536-I The data is being imported. (progress = 19/60) KAPM06536-I The data is being imported. (progress = 20/60) KAPM06536-I The data is being imported. (progress = 21/60) KAPM06536-I The data is being imported. (progress = 22/60) KAPM06536-I The data is being imported. (progress = 23/60) KAPM06536-I The data is being imported. (progress = 24/60) KAPM06536-I The data is being imported. (progress = 25/60) KAPM06536-I The data is being imported. (progress = 26/60) KAPM06536-I The data is being imported. (progress = 27/60) KAPM06536-I The data is being imported. (progress = 28/60) KAPM06536-I The data is being imported. (progress = 29/60) KAPM06536-I The data is being imported. (progress = 30/60) KAPM06536-I The data is being imported. (progress = 31/60) KAPM06536-I The data is being imported. (progress = 32/60) KAPM06536-I The data is being imported. (progress = 33/60) KAPM06536-I The data is being imported. (progress = 34/60) KAPM06536-I The data is being imported. (progress = 35/60) KAPM06536-I The data is being imported. (progress = 36/60) KAPM06536-I The data is being imported. (progress = 37/60) KAPM06536-I The data is being imported. (progress = 38/60) KAPM06536-I The data is being imported. (progress = 39/60) KAPM06536-I The data is being imported. (progress = 40/60) KAPM06536-I The data is being imported. (progress = 41/60) KAPM06536-I The data is being imported. (progress = 42/60) KAPM06536-I The data is being imported. (progress = 43/60) KAPM06536-I The data is being imported. (progress = 44/60) KAPM06536-I The data is being imported. (progress = 45/60) KAPM06536-I The data is being imported. (progress = 46/60) KAPM06536-I The data is being imported. (progress = 47/60) KAPM06537-I The data is being imported. (progress = 48/60) KAPM06536-I The data is being imported. (progress = 49/60) KAPM06536-I The data is being imported. (progress = 50/60) KAPM06536-I The data is being imported. (progress = 51/60) KAPM06536-I The data is being imported. (progress = 52/60) KAPM06536-I The data is being imported. (progress = 53/60) KAPM06536-I The data is being imported. (progress = 54/60) KAPM06536-I The data is being imported. (progress = 55/60) KAPM06536-I The data is being imported. (progress = 56/60) KAPM06536-I The data is being imported. (progress = 57/60) KAPM06536-I The data is being imported. (progress = 58/60) KAPM06536-I The data is being imported. (progress = 59/60) KAPM06536-I The data is being imported. (progress = 60/60) KAPM06530-I Processing to import data has ended. KAPM06514-I Processing ended normally. 7. Start the Common Component processes C:\Program Files\HiCommand\Base\bin\hcmdssrv /start C:\Program Files>HiCommand\Base\bin\hcmdssrv /start KAPM06440-I The HiRDB service has already started. KAPM05016-I Succeeded in starting of service. service-name=HiCommand Suite Common Web Service KAPM05016-I Succeeded in starting of service. service-name=HiCommand Suite Single Sign On Service 8. Synchronize the Device Manager database and Common Repository in starting Device Manager Server. Edit the file "C:\Program Files\HiCommand\DeviceManager\HiCommandServer\server.properties" Change from: Change to: 9. Start HDvM Server C:\Program Files\HiCommand\DeviceManager\hicommand start C:\Program Files>HiCommand\DeviceManager\hicommand start The HiCommandServer service is starting. The HiCommandServer service was started successfully. Press any key to continue . . . 10. Login to the HDvM WebGUI and verify the imported database information is present. Product Sun StorageTek 9990 System Sun StorageTek 9985 System Sun StorageTek 9980 System Sun StorageTek 9970 System Sun StorageTek 9960 System Sun StorageTek 9910 Sun StorageTek 9900V Series Array Sun StorageTek 9900 HiCommand Device Manager 4.2 Software Sun StorageTek 9900 HiCommand Device Manager 4.1 Software hicommand, device, manager, HDvM, hdvm, migrate, move, import, export, solaris, windows Previously Published As 85471 Change History Date: 2006-05-14 User Name: 97961 Action: Approved Comment: - Applied trademarking - Made simple sentence/grammatical corrections - Tidied up formatting Version: 3 Date: 2006-05-14 User Name: 97961 Action: Accept Comment: Version: 0 Date: 2006-05-12 User Name: 124974 Action: Approved Comment: Looks good Version: 0 Date: 2006-04-28 User Name: 90779 Action: Add Comment Comment: If you can get hold on hcmdsgetlogs command utility output the database is in HiCommand_log.csv.jar and can be imported. Very useful to reproduce customer issues. I have done that on some escalations already. Change title to "Sun StorEdgeâ„¢ 9900 HiCommand Device Manager: How to move, migrate HDvM 4.x/5.x HiRDB database" Include in description following: - Manual export/import HiRDB database content into ASCII format. Well known procedure with every database. - Manual import HiRDB database content from HiCommand_log.csv.jar. See article #77324. Please allow one other comment. What about the user and passwords? I remember you should know at least the password for builtin user id system. Otherwise you might not be able to login. In the previous releases 3.x there were the workaround with the intrbase adminstrator login. Version: 0 Date: 2006-04-28 User Name: 90779 Action: Add Comment Comment: I was just attempting to write an article about export/import for troubleshooting. Since it does cover the same method but different source could we add that to the article. Additional I would suggest Audiance = Contract to avoid copyright and trademark issue. The HDVM documentation is not public available at HDS/Hitachi therefore should not be at Sun. Version: 0 Date: 2006-04-27 User Name: 124974 Action: Accept Comment: Version: 0 Date: 2006-04-27 User Name: 90724 Action: Approved Comment: please review and publish Version: 0 Date: 2006-04-27 User Name: 90724 Action: Created Comment: Version: 0 Product_uuid 15644879-f179-11d8-ab63-080020a9ed93|Sun StorageTek 9990 System 73084edc-dc32-11d9-8a74-080020a9ed93|Sun StorageTek 9985 System c2428fbe-8ab7-41d0-8b6e-ab489823c9d4|Sun StorageTek 9980 System 4ea4b951-9fc9-4f1f-b64e-69572a400fb4|Sun StorageTek 9970 System 2a94fb3c-0a18-11d6-90a8-c9c08656284f|Sun StorageTek 9960 System 2a918ae2-0a18-11d6-834a-c679537eebe7|Sun StorageTek 9910 f55c65ae-16a0-11d7-82ad-99701a4c6e31|Sun StorageTek 9900V Series Array 2a244897-e4d8-11d9-89e6-080020a9ed93|Sun StorageTek 9900 HiCommand Device Manager 4.2 Software 0780207c-c280-11d9-8a74-080020a9ed93|Sun StorageTek 9900 HiCommand Device Manager 4.1 Software Attachments This solution has no attachment |
||||||||||||
|