VMware Cloud Community
RanjnaAggarwal
VMware Employee
VMware Employee

Find out the CID of a disk

How to find out the CID of the disk if vm has only one disk and vm has no snapshots?

Regards, Ranjna Aggarwal
Reply
0 Kudos
6 Replies
a_p_
Leadership
Leadership

There might be several option to do this. The easiest one is probably to run s.th. like grep CID vmname.vmdk from the command line.

André

Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

a.p my question if that vmdk gets deleted then how to find out the MOID to create the new vmdk.

Regards, Ranjna Aggarwal
Reply
0 Kudos
FritzBrause
Enthusiast
Enthusiast

Your problem is a little bit unclear to me.

It could be that the flat file (data) is still there, but the descriptor file is missing.

Is that correct?

Then please follow http://kb.vmware.com/kb/1002511.


Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

yes that's my question but in .vmdk file what should be the CID value if i don't have any other parent for this disk as i mentioned then can i use any value as an CID?

Regards, Ranjna Aggarwal
Reply
0 Kudos
a_p_
Leadership
Leadership

The CID can basically be anything between 0000001 and ffffffd. It's a random eight bytes hex value, which is used to ensure the snapshot chain is valid, i.e. the parentCID of a snapshot has to match the CID of its parent.

André

RanjnaAggarwal
VMware Employee
VMware Employee

Thanks a.p.

Regards, Ranjna Aggarwal
Reply
0 Kudos