Amir, Basic steps are:
1, Add tags to the storage you want to keep, then add different tags to the storage you want to retire 2. Change all Service Offerings, adding the tag you just set on the storage you want to keep - (this is prevent new VMs being placed on the storage you want to retire) - Don't forget to update offerings for Virtual Routers and System VMs 3. Migrate all VMs off of the storage you want to retire: a. If using XenServer 6.2 you can live migrate VMs across different storage pools b. If using an older version of XenServer, VMware or KVM you will need to stop the VM, migrate the Volumes, then restart the VM. c. Place the store into Maintenance Mode, this will force the migration (re-creation) of System VMs on alternate storage 4. Once all VMs have been migrated check the storage in the DB to confirm there are no volumes allocated to it: a. Identify the ID of the storage pool you want to retire mysql> SELECT id, name FROM cloud.storage_pool; b. Append the ID of the storage pool identified in previous step to this SQL statement, it should return no rows mysql> SELECT * FROM cloud.volumes WHERE pool_id=<ID>; AND removed IS NULL; 5. If step 4 returns any records investigate further as there may be Data Volumes present on the storage which are no longer assigned to a VM. Either expunge these Volumes or migrate them to alternate storage. 6. Once step 4a returns no records the storage is no longer being used and you will be able to remove it from CloudStack. Ensure all Hosts which are using the storage are online so that CloudStack can un-mount the storage from east Host. 7. Optionally remove the Tags added in steps 1&2 from remaining Storage Pools and Service Offerings. Regards Geoff Higginbottom D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 [email protected] -----Original Message----- From: Amir Abbasi [mailto:[email protected]] Sent: 28 April 2014 07:38 To: [email protected] Subject: How to add Storage tags to current disk offerings Hello, I want to remove older Primary storage, so I should add tags to storages and then remove old disk offerings. Will that affct attached volumes to VM's? Need Enterprise Grade Support for Apache CloudStack? Our CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> offers the best 24/7 SLA for CloudStack Environments. Apache CloudStack Bootcamp training courses **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/cloudstack-training/> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.com/cloudstack-training/> 16th-20th June 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 23rd-27th June 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 15th-20th September 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 22nd-27th September 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 1st-6th December 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 8th-12th December 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
