Erlon

Untitled

Jun 22nd, 2015
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. mysql> use cinder
  2. Reading table information for completion of table and column names
  3. You can turn off this feature to get a quicker startup with -A
  4.  
  5. Database changed
  6. mysql> I
  7. -> ;
  8. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'I' at line 1
  9. mysql> delete from volume_metadata;
  10. Query OK, 4 rows affected (0.04 sec)
  11.  
  12. mysql> delete from volume_glance_metadata;
  13. Query OK, 0 rows affected (0.00 sec)
  14.  
  15. mysql> delete from snapshot_metadata;
  16. Query OK, 0 rows affected (0.00 sec)
  17.  
  18. mysql> delete from volume_admin_metadata;
  19. Query OK, 8 rows affected (0.01 sec)
  20.  
  21. mysql> delete from transfers;
  22. Query OK, 0 rows affected (0.00 sec)
  23.  
  24. mysql> delete from snapshots;
  25. Query OK, 0 rows affected (0.00 sec)
  26.  
  27. mysql> delete from volume_attachment;
  28. Query OK, 4 rows affected (0.02 sec)
  29.  
  30. mysql> delete from volumes;
  31. Query OK, 12 rows affected (0.06 sec)
  32.  
  33. mysql> quit
  34. Bye
  35. ubuntu@ubuntu:~$ cinder create 1
  36. +---------------------+--------------------------------------+
  37. | Property | Value |
  38. +---------------------+--------------------------------------+
  39. | attachments | [] |
  40. | availability_zone | nova |
  41. | bootable | false |
  42. | created_at | 2015-06-22T15:22:42.747265 |
  43. | display_description | None |
  44. | display_name | None |
  45. | encrypted | False |
  46. | id | 2847b1b2-bbf8-4874-a3c9-511e3ffc661d |
  47. | metadata | {} |
  48. | multiattach | false |
  49. | size | 1 |
  50. | snapshot_id | None |
  51. | source_volid | None |
  52. | status | creating |
  53. | volume_type | None |
  54. +---------------------+--------------------------------------+
  55. ubuntu@ubuntu:~$ cinder list
  56. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  57. | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
  58. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  59. | 2847b1b2-bbf8-4874-a3c9-511e3ffc661d | available | - | 1 | - | false | |
  60. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  61. ubuntu@ubuntu:~$ cinde show 2847b1b2-bbf8-4874-a3c9-511e3ffc661d
  62. No command 'cinde' found, did you mean:
  63. Command 'cinder' from package 'python-cinderclient' (main)
  64. Command 'cindex' from package 'codesearch' (universe)
  65. cinde: command not found
  66. ubuntu@ubuntu:~$ cinder show 2847b1b2-bbf8-4874-a3c9-511e3ffc661d
  67. +---------------------------------------+---------------------------------------+
  68. | Property | Value |
  69. +---------------------------------------+---------------------------------------+
  70. | attachments | [] |
  71. | availability_zone | nova |
  72. | bootable | false |
  73. | created_at | 2015-06-22T15:22:42.000000 |
  74. | display_description | None |
  75. | display_name | None |
  76. | encrypted | False |
  77. | id | 2847b1b2-bbf8-4874-a3c9-511e3ffc661d |
  78. | metadata | {u'type': u'Normal', u'ldev': u'103'} |
  79. | multiattach | false |
  80. | os-vol-host-attr:host | ubuntu@hus110#hus110 |
  81. | os-vol-mig-status-attr:migstat | None |
  82. | os-vol-mig-status-attr:name_id | None |
  83. | os-vol-tenant-attr:tenant_id | f09e3a587762408e94db26143ff68486 |
  84. | os-volume-replication:driver_data | None |
  85. | os-volume-replication:extended_status | None |
  86. | size | 1 |
  87. | snapshot_id | None |
  88. | source_volid | None |
  89. | status | available |
  90. | volume_type | None |
  91. +---------------------------------------+---------------------------------------+
  92. ubuntu@ubuntu:~$ cinder --os-volume-api-version 2 retype 2847b1b2-bbf8-4874-a3c9-511e3ffc661d hnas-nfs --migration-policy on-demand
  93. ubuntu@ubuntu:~$ cinder list
  94. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  95. | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
  96. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  97. | 2847b1b2-bbf8-4874-a3c9-511e3ffc661d | retyping | - | 1 | - | false | |
  98. | 6d85a17f-403e-43cc-98db-4a40033f4c2c | available | - | 1 | hnas-nfs | false | |
  99. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  100. ubuntu@ubuntu:~$ cinder list
  101. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  102. | ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
  103. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  104. | 2847b1b2-bbf8-4874-a3c9-511e3ffc661d | available | - | 1 | - | false | |
  105. | 6d85a17f-403e-43cc-98db-4a40033f4c2c | available | - | 1 | hnas-nfs | false | |
  106. +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
Advertisement
Add Comment
Please, Sign In to add comment