weixin_39559079
weixin_39559079
2020-12-02 09:17

Update README.md to add a known issue regarding storage vmotion of VM [SKIP CI]

Update README.md to add a known issue regarding storage vmotion of VM.

Fixes #1618

该提问来源于开源项目:vmware-archive/vsphere-storage-for-docker

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

9条回答

  • weixin_39617470 weixin_39617470 5月前

    Yes, we do allow X-vMotion of a vm from powered-on state. X-vMotion does not needs vm to be shutdown.

    点赞 评论 复制链接分享
  • weixin_39559079 weixin_39559079 5月前

    I have addressed your comments, and please review it. Thanks!

    点赞 评论 复制链接分享
  • weixin_39617470 weixin_39617470 5月前

    Please make sure to update gh-pages as well.

    点赞 评论 复制链接分享
  • weixin_39559079 weixin_39559079 5月前

    See my answer to your questions below.

    Actually are we even able to svmotion when attaching the volume in the default independent mode? [Liping] Yes. In the step that Anup gave, the volume is attached as "

    
    root-rdops-vm02-dhcp-52-237:~# docker volume inspect testVolXXX-0
    [
        {
            "Driver": "vsphere:latest",
            "Labels": null,
            "Mountpoint": "/mnt/vmdk/testVolXXX-0",
            "Name": "testVolXXX-0",
            "Options": {},
            "Scope": "global",
            "Status": {
                "access": "read-write",
                "attach-as": "independent_persistent",
                "capacity": {
                    "allocated": "13MB",
                    "size": "100MB"
                },
                "clone-from": "None",
                "created": "Fri Jul 21 19:07:53 2017",
                "created by VM": "ubuntu-VM0.0",
                "datastore": "sharedVmfs-0",
                "diskformat": "thin",
                "fstype": "ext4",
                "status": "detached"
            }
        }
    ]
    
    点赞 评论 复制链接分享
  • weixin_39559079 weixin_39559079 5月前

    We have two mode for disk attach, "independent_persistent" and "persistent". I am not quite understand how the disk attach mode will affect the svmotion. Could you explain more? I believe if the volume is not attached, then svmotion will not affect it, but I need to do some test to verify it.

    Address volume via qualified name - vol may not solve this issue if the ds is the datastore where VM resides. For example, svmotion move the vm from ds to ds1, then the volume attached to vm will be put in to the vm folder in ds1 instead of the dockervol folder as we hope.

    点赞 评论 复制链接分享
  • weixin_39559079 weixin_39559079 5月前

    We allow two attach mode. "independent_persistent"(default mode) and "persistent" mode. So both mode attach disk as "persistent". So svmotion should work.

    点赞 评论 复制链接分享
  • weixin_39617470 weixin_39617470 5月前

    Issue #1618 also happens in case of X-vMotion as well since in X-vMotion, we change datastore as well as host of a vm. Can you please add X-vMotion also? Something like Storage vMotion/X-vMotion

    点赞 评论 复制链接分享
  • weixin_39559079 weixin_39559079 5月前

    As far as I know, you need to shut down VM before running X-vmotion. So it is not a valid test to running X-vmotion when Vm is not shut down.

    点赞 评论 复制链接分享
  • weixin_39559079 weixin_39559079 5月前

    I have addressed your comments and please take a look.

    点赞 评论 复制链接分享