-
Notifications
You must be signed in to change notification settings - Fork 95
Do not see the old volumes after performing storage vMotion of the vm #1618
Comments
Checked vmdk_ops.txt.
|
@ashahi1 Could you check in the datastore /vmfs/volumes/sharedVmfs-0, does the vmdk file for volume "testVolXXX" exist or not? |
@lipingxue No, I do not see the VMDKs at /vmfs/volumes/sharedVmfs-0 |
I checked the Anup's setup (after migration).
The symbol link "_DEFAULT" is there, but the actual directory /vmfs/volumes/sharedVmfs-0/dockvols/11111111-1111-1111-1111-111111111111 is missing. We need to see why "/vmfs/volumes/sharedVmfs-0/dockvols/11111111-1111-1111-1111-111111111111" and vmdk files under it is missing. |
What's the behavior if the volume is attached and then svmotion is done? And if they volume is created like volume@datastore it should be accessible always. What happens if volume is created this way, then attached to the VM and then svmotion |
The volume will be in the vm's folder |
@govint I did the following test
|
@govint Yes, you are right. I tried to repro based on the steps Anup metioned, the volume "testVolXXX" is migrated to datastore "shared-Vmfs-1" along with the vmdk file which represent the VM itself. The volume is renamed and put into the VM directory on "shared-Vmfs-1". So no volume in "/vmfs/volumes/shared-Vmfs-0/dockervols " and no volume in "/vmfs/volumes/shared-Vmfs-1/dockervols. That is why "vmdkops_admin volume ls" and "docker volume ls" shows no volume after svmotion. @msterin @pdhamdhere I think it is the expected behavior of svmotion, and we should document this in the known issue. Any comments? |
we know svmotion messes up the locations and the names of attached vmdks, so yes, this is an expected behavior and yes. we should document it. |
Steps:
Logs have been attached at the end.
Steps and their output are as follows:
While container is running, migrated the vm to a sharedVmfs-1.
Docker volume ls and admin cli volume ls does not lists any volumes.
Logs:
docker-volume-vsphere.txt
vmdk_ops.txt
The text was updated successfully, but these errors were encountered: