Hi Adrian,

CloudStack will not allow you to remove storage if there are still
volumes/images referencing it (volumes that are not destroyed, in case of
Primary Storage, or Snapshots/templates/Isos/UploadedVolumes in case of
Secondary Storage)

You would need to check the DB - there is at least one reference in your
case.

Something like like      SELECT * from cloud.volumes where pool_id=<YOUR
POOL ID FROM the STORAGE_POOL table> and state="READY" or "ALLOCATED" (you
can also experiment with      and REMOVED IS NULL condition)
there also might be a case where (for whatever reason...) some snapshots
are referencing Primary Storage - check with     SELECT * from
cloud.snapshot_store_ref where store_role="Primary"

Best,

On Wed, 3 Feb 2021 at 09:17, Adrian Morris <
[email protected]> wrote:

> Hi Everyone,
>
>
>
> I have some old primary storage I what to decommission. I have migrated
> all the disks to a new storage cluster and the old storage is now in
> maintenance mode, but the system won’t let me remove the storage as it says
> there is still images on it. I have checked inside XCP and I can still see
> the old images, but they have no VMs attached to them.
>
>
>
> What is the correct way to now remove them?
>
>
>
> Also to kill 2 birds with one stone, I want to add additional secondary
> storage. This is a single zone. If it just a case of adding the new NFS
> servers in or do I need to run additional steps prior to adding to
> Cloudstack?
>
>
>
> TIA for the help.
>
>
>
> Many Thanks
>
> Adrian Morris CIIT
>
> Director
>
>
>
>
>
> SDC Hosting and Support Ltd
>
> 890 The Crescent, Colchester Business Park, Colchester, CO4 9YQ
>
>
>
> This e-mail (and any attachments) contains confidential information which
> may be legally privileged and protected from disclosure. It is intended
> solely for the individual or entity to whom it is addressed and others
> authorised to receive it. If you are not the intended recipient of this
> e-mail or any parts of it please telephone 07802 665733 immediately upon
> receipt. No other person is authorized to copy, forward or disclose,
> distribute or retain this e-mail in any form
>
>
>


-- 

Andrija Panić

Reply via email to