Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. [oneadmin@mguezuraga (devkvm) ~]$ onedb upgrade -v -S mydatabase.server -u oneadmin -d opennebula_testing
  2. MySQL Password:
  3. Version read:
  4. Shared tables 5.2.0 : OpenNebula 5.2.1 daemon bootstrap
  5. Local tables 4.90.0 : OpenNebula 5.2.1 daemon bootstrap
  6.  
  7. mysqldump: [Warning] Using a password on the command line interface can be insecure.
  8. MySQL dump stored in /var/lib/one/mysql_mydatabase.server_opennebula_testing_2017-10-18_14:49:5.sql
  9. Use 'onedb restore' or restore the DB using the mysql command:
  10. mysql -u user -h server -P port db_name < backup_file
  11.  
  12.  
  13. >>> Running migrators for shared tables
  14. > Running migrator /usr/lib/one/ruby/onedb/shared/5.2.0_to_5.3.80.rb
  15. > Done in 0.00s
  16.  
  17. > Running migrator /usr/lib/one/ruby/onedb/shared/5.3.80_to_5.4.0.rb
  18. > Done in 0.00s
  19.  
  20. > Running migrator /usr/lib/one/ruby/onedb/shared/5.4.0_to_5.4.1.rb
  21. > Done in 0.00s
  22.  
  23. Database migrated from 5.2.0 to 5.4.1 (OpenNebula 5.4.1) by onedb command.
  24.  
  25. >>> Running migrators for local tables
  26. > Running migrator /usr/lib/one/ruby/onedb/local/4.90.0_to_5.3.80.rb
  27. > Old EC2 file not found, skipping EC2 host migration
  28. > Done in 0.42s
  29.  
  30. > Running migrator /usr/lib/one/ruby/onedb/local/5.3.80_to_5.4.0.rb
  31. > Done in 0.00s
  32.  
  33. > Running migrator /usr/lib/one/ruby/onedb/local/5.4.0_to_5.4.1.rb
  34. > Done in 0.06s
  35.  
  36. Database migrated from 4.90.0 to 5.4.1 (OpenNebula 5.4.1) by onedb command.
  37.  
  38. Total time: 0.49s
  39. [oneadmin@mguezuraga-base7-01 (devkvm) ~]$ onedb fsck -S mydatabase.server -u oneadmin -d opennebula_testing
  40. MySQL Password:
  41. mysqldump: [Warning] Using a password on the command line interface can be insecure.
  42. MySQL dump stored in /var/lib/one/mysql_mydatabase.server_opennebula_testing_2017-10-18_14:49:59.sql
  43. Use 'onedb restore' or restore the DB using the mysql command:
  44. mysql -u user -h server -P port db_name < backup_file
  45.  
  46.  
  47.  
  48. Mysql2::Error: Table 'old_user_quotas' already exists
  49. /usr/local/share/gems/gems/mysql2-0.4.9/lib/mysql2/client.rb:120:in `_query'
  50. /usr/local/share/gems/gems/mysql2-0.4.9/lib/mysql2/client.rb:120:in `block in query'
  51. /usr/local/share/gems/gems/mysql2-0.4.9/lib/mysql2/client.rb:119:in `handle_interrupt'
  52. /usr/local/share/gems/gems/mysql2-0.4.9/lib/mysql2/client.rb:119:in `query'
  53. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/adapters/mysql2.rb:137:in `block in _execute'
  54. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/database/logging.rb:44:in `log_connection_yield'
  55. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/adapters/mysql2.rb:132:in `_execute'
  56. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/adapters/utils/mysql_mysql2.rb:36:in `block in execute'
  57. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/database/connecting.rb:251:in `block in synchronize'
  58. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/connection_pool/threaded.rb:107:in `hold'
  59. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/database/connecting.rb:251:in `synchronize'
  60. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/adapters/utils/mysql_mysql2.rb:36:in `execute'
  61. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/adapters/mysql2.rb:71:in `execute_dui'
  62. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/database/query.rb:45:in `execute_ddl'
  63. /usr/local/share/gems/gems/sequel-4.38.0/lib/sequel/database/query.rb:78:in `run'
  64. /usr/lib/one/ruby/onedb/fsck/quotas.rb:22:in `check_fix_user_quotas'
  65. /usr/lib/one/ruby/onedb/fsck.rb:465:in `fsck'
  66. /usr/lib/one/ruby/onedb/onedb.rb:280:in `fsck'
  67. /bin/onedb:397:in `block (2 levels) in <main>'
  68. /usr/lib/one/ruby/cli/command_parser.rb:449:in `call'
  69. /usr/lib/one/ruby/cli/command_parser.rb:449:in `run'
  70. /usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize'
  71. /bin/onedb:286:in `new'
  72. /bin/onedb:286:in `<main>'
  73.  
  74. Error running fsck version 5.4.1
  75. The database will be restored
  76. mysql: [Warning] Using a password on the command line interface can be insecure.
  77. MySQL DB opennebula_testing at mydatabase.server restored.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement