Hi all,

I'm trying to delete via vdsm-client toolan illegal volume that is not listed 
in the engine database. The volume ID is 5cb3fe58-3e01-4d32-bc7c-5907a4f858a8:

[root@ovirthost ~]# vdsm-tool dump-volume-chains 
e25db7d0-060a-4046-94b5-235f38097cd8

Images volume chains (base volume first)

   image:    4d79c1da-34f0-44e3-8b92-c4bcb8524d83

             Error: more than one volume pointing to the same parent volume 
e.g: (_BLANK_UUID<-a), (a<-b), (a<-c)

             Unordered volumes and children:

             - 00000000-0000-0000-0000-000000000000 <- 
5aad30c7-96f0-433d-95c8-2317e5f80045
               status: OK, voltype: INTERNAL, format: COW, legality: LEGAL, 
type: SPARSE, capacity: 214748364800, truesize: 165493616640

             - 5aad30c7-96f0-433d-95c8-2317e5f80045 <- 
5cb3fe58-3e01-4d32-bc7c-5907a4f858a8
               status: OK, voltype: LEAF, format: COW, legality: ILLEGAL, type: 
SPARSE, capacity: 214748364800, truesize: 8759619584

             - 5aad30c7-96f0-433d-95c8-2317e5f80045 <- 
674e85d8-519a-461f-9dd6-aca44798e088
               status: OK, voltype: LEAF, format: COW, legality: LEGAL, type: 
SPARSE, capacity: 214748364800, truesize: 200704

With the command vdsm-client Volume getInfo I can retrieve the info about the 
volume 5cb3fe58-3e01-4d32-bc7c-5907a4f858a8:

 vdsm-client Volume getInfo storagepoolID=c0e7a0c5-8048-4f30-af08-cbd17d797e3b 
volumeID=5cb3fe58-3e01-4d32-bc7c-5907a4f858a8 
storagedomainID=e25db7d0-060a-4046-94b5-235f38097cd8 
imageID=4d79c1da-34f0-44e3-8b92-c4bcb8524d83
{
    "apparentsize": "8759676160",
    "capacity": "214748364800",
    "children": [],
    "ctime": "1634958924",
    "description": "",
    "disktype": "DATA",
    "domain": "e25db7d0-060a-4046-94b5-235f38097cd8",
    "format": "COW",
    "generation": 0,
    "image": "4d79c1da-34f0-44e3-8b92-c4bcb8524d83",
    "lease": {
        "offset": 0,
        "owners": [],
        "path": 
"/rhev/data-center/mnt/ovirthost.com:_data/e25db7d0-060a-4046-94b5-235f38097cd8/images/4d79c1da-34f0-44e3-8b92-c4bcb8524d83/5cb3fe58-3e01-4d32-bc7c-5907a4f858a8.lease",
        "version": null
    },
    "legality": "ILLEGAL",
    "mtime": "0",
    "parent": "5aad30c7-96f0-433d-95c8-2317e5f80045",
    "pool": "",
    "status": "ILLEGAL",
    "truesize": "8759619584",
    "type": "SPARSE",
    "uuid": "5cb3fe58-3e01-4d32-bc7c-5907a4f858a8",
    "voltype": "LEAF"
}

I can't remove it due to the following error:

vdsm-client Volume delete storagepoolID=c0e7a0c5-8048-4f30-af08-cbd17d797e3b 
volumeID=5cb3fe58-3e01-4d32-bc7c-5907a4f858a8 
storagedomainID=e25db7d0-060a-4046-94b5-235f38097cd8 
imageID=4d79c1da-34f0-44e3-8b92-c4bcb8524d83 force=true
vdsm-client: Command Volume.delete with args {'storagepoolID': 
'c0e7a0c5-8048-4f30-af08-cbd17d797e3b', 'volumeID': 
'5cb3fe58-3e01-4d32-bc7c-5907a4f858a8', 'storagedomainID': 
'e25db7d0-060a-4046-94b5-235f38097cd8', 'imageID': 
'4d79c1da-34f0-44e3-8b92-c4bcb8524d83', 'force': 'true'} failed:
(code=309, message=Unknown pool id, pool not connected: 
('c0e7a0c5-8048-4f30-af08-cbd17d797e3b',))

I'm performing the operation directly on the SPM. I searched for a while but I 
didn't find anything usefull. Any tips or doc that I missed?
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/OYJY72UW4KZCYJZY3KRSOLR7ASQPPUVZ/

Reply via email to