[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rajesh Battala updated CLOUDSTACK-2189:
---------------------------------------

    Status: Ready To Review  (was: In Progress)
    
> volume is stuck in resizing state 
> ----------------------------------
>
>                 Key: CLOUDSTACK-2189
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2189
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Volumes
>    Affects Versions: 4.2.0
>         Environment: KVM setup
>            Reporter: Srikanteswararao Talluri
>            Assignee: Rajesh Battala
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: management-server.zip
>
>
> Try to resize a data volume on a KVM setup. It is gettting stuck in 
> "resizing" state for ever.
> mgmt server log:
> [root@ms2 sec]# grep resizeVolume 
> /var/log/cloudstack/management/management-server.log
> 2013-04-25 20:37:45,519 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) 
> ===START===  10.252.249.118 -- GET  
> command=resizeVolume&id=a9b83e5a-201c-4326-a115-e5f92ab15667&shrinkok=false&diskofferingid=7eead9b9-5754-4512-8046-ccd1d6803e36&response=json&sessionkey=CS%2FBDP8Lhe20WrnlbVSjoo5ikbs%3D&_=1366882898959
> 2013-04-25 20:37:45,627 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) 
> ===END===  10.252.249.118 -- GET  
> command=resizeVolume&id=a9b83e5a-201c-4326-a115-e5f92ab15667&shrinkok=false&diskofferingid=7eead9b9-5754-4512-8046-ccd1d6803e36&response=json&sessionkey=CS%2FBDP8Lhe20WrnlbVSjoo5ikbs%3D&_=1366882898959
> 2013-04-25 22:44:02,095 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) 
> ===START===  10.252.249.118 -- GET  
> command=resizeVolume&id=48df5a92-9224-448f-90bd-d6ae17279b89&shrinkok=false&diskofferingid=7eead9b9-5754-4512-8046-ccd1d6803e36&response=json&sessionkey=Flq9qpK61LFE6m2OSiOprv1KVoQ%3D&_=1366890475573
> 2013-04-25 22:44:02,148 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) 
> ===END===  10.252.249.118 -- GET  
> command=resizeVolume&id=48df5a92-9224-448f-90bd-d6ae17279b89&shrinkok=false&diskofferingid=7eead9b9-5754-4512-8046-ccd1d6803e36&response=json&sessionkey=Flq9qpK61LFE6m2OSiOprv1KVoQ%3D&_=1366890475573
> On the KVM host:
> [root@Rack1Pod1Host24 agent]# grep -i resize *.*
> resizevolume.log:Thu Apr 25 05:41:39 EDT 2013 - performed successful resize - 
> currentsize:5368709120 newsize:21474836480 
> path:/mnt/fe2baec4-311a-302c-bac0-1ab7ed2c08f1/54d77107-5ce2-450e-baae-aedac44fe316
>  type:QCOW2 vmname:i-2-18-QA live:true shrink:false
> resizevolume.log:Thu Apr 25 07:47:56 EDT 2013 - performed successful resize - 
> currentsize:5368709120 newsize:21474836480 
> path:/mnt/fe2baec4-311a-302c-bac0-1ab7ed2c08f1/e6cf4941-b811-422d-b41f-4f5d6a637bcb
>  type:QCOW2 vmname:i-2-18-QA live:true shrink:false
> [root@Rack1Pod1Host24 log]# virsh vol-info 
> 54d77107-5ce2-450e-baae-aedac44fe316 --pool 
> fe2baec4-311a-302c-bac0-1ab7ed2c08f1
> Name:           54d77107-5ce2-450e-baae-aedac44fe316
> Type:           file
> Capacity:       20.00 GB
> Allocation:     85.10 MB
> [root@Rack1Pod1Host24 log]# virsh vol-info 
> e6cf4941-b811-422d-b41f-4f5d6a637bcb --pool 
> fe2baec4-311a-302c-bac0-1ab7ed2c08f1
> Name:           e6cf4941-b811-422d-b41f-4f5d6a637bcb
> Type:           file
> Capacity:       20.00 GB
> Allocation:     144.00 KB
> db entries:
> mysql> select * from volumes where state="resizing"\G;
> *************************** 1. row ***************************
>                         id: 15
>                 account_id: 2
>                  domain_id: 1
>                    pool_id: 2
>               last_pool_id: NULL
>                instance_id: 18
>                  device_id: 1
>                       name: c3
>                       uuid: a9b83e5a-201c-4326-a115-e5f92ab15667
>                       size: 21474836480
>                     folder: /export/home/talluri/kvmp
>                       path: 54d77107-5ce2-450e-baae-aedac44fe316
>                     pod_id: 1
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: DATADISK
>                  pool_type: NetworkFilesystem
>           disk_offering_id: 4
>                template_id: NULL
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2013-04-25 14:57:13
>                   attached: 2013-04-25 15:03:13
>                    updated: 2013-04-25 15:07:45
>                    removed: NULL
>                      state: Resizing
>                 chain_info: NULL
>               update_count: 3
>                  disk_type: NULL
> *************************** 2. row ***************************
>                         id: 19
>                 account_id: 2
>                  domain_id: 1
>                    pool_id: 2
>               last_pool_id: NULL
>                instance_id: 18
>                  device_id: 4
>                       name: vol1
>                       uuid: 48df5a92-9224-448f-90bd-d6ae17279b89
>                       size: 21474836480
>                     folder: /export/home/talluri/kvmp
>                       path: e6cf4941-b811-422d-b41f-4f5d6a637bcb
>                     pod_id: 1
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: DATADISK
>                  pool_type: NetworkFilesystem
>           disk_offering_id: 4
>                template_id: NULL
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2013-04-25 17:10:46
>                   attached: 2013-04-25 17:13:39
>                    updated: 2013-04-25 17:14:02
>                    removed: NULL
>                      state: Resizing
>                 chain_info: NULL
>               update_count: 3
>                  disk_type: NULL
> 2 rows in set (0.00 sec)
> ERROR:
> No query specified
> mysql> select * from disk_offering where 
> uuid="7eead9b9-5754-4512-8046-ccd1d6803e36"\G;
> *************************** 1. row ***************************
>                id: 4
>         domain_id: NULL
>              name: Medium
>              uuid: 7eead9b9-5754-4512-8046-ccd1d6803e36
>      display_text: Medium Disk, 20 GB
>         disk_size: 21474836480
>              type: Disk
>              tags: NULL
>       recreatable: 0
> use_local_storage: 0
>       unique_name: Cloud.Com-Medium
>        system_use: 0
>        customized: 0
>           removed: NULL
>           created: 2013-04-25 11:49:32
>          sort_key: 0
> 1 row in set (0.00 sec)
> ERROR:
> No query specified

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to