{"action":"closed","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/329","repository_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples","labels_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/329/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi-community-samples/issues/329/events","html_url":"https://github.com/vmware/pyvmomi-community-samples/issues/329","id":207776470,"number":329,"title":"How to create a datastore using a physical disk?","user":{"login":"ruiruige","id":8370100,"avatar_url":"https://avatars.githubusercontent.com/u/8370100?v=3","gravatar_id":"","url":"https://api.github.com/users/ruiruige","html_url":"https://github.com/ruiruige","followers_url":"https://api.github.com/users/ruiruige/followers","following_url":"https://api.github.com/users/ruiruige/following{/other_user}","gists_url":"https://api.github.com/users/ruiruige/gists{/gist_id}","starred_url":"https://api.github.com/users/ruiruige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruiruige/subscriptions","organizations_url":"https://api.github.com/users/ruiruige/orgs","repos_url":"https://api.github.com/users/ruiruige/repos","events_url":"https://api.github.com/users/ruiruige/events{/privacy}","received_events_url":"https://api.github.com/users/ruiruige/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-15T11:21:26Z","updated_at":"2017-02-15T11:46:09Z","closed_at":"2017-02-15T11:46:09Z","body":"I have 30 disks in my machine.\r\nI can add a single datastore from a single disk from the client.\r\n\r\nI searched an example:\r\n\r\n\r\n            dp = \"/vmfs/devices/disks/naa.5000cca250e1519c\"\r\n            hostdssystem = esx_host.configManager.datastoreSystem\r\n            dssystem = vim.host.DatastoreSystem\r\n            vmfs_ds_options = dssystem.QueryVmfsDatastoreCreateOptions(\r\n                                                       hostdssystem, dp, 5)\r\n            if dsname is not None:\r\n                vmfs_ds_options[0].spec.vmfs.volumeName = dsname\r\n\r\n            new_ds = dssystem.CreateVmfsDatastore(hostdssystem,\r\n                                                  vmfs_ds_options[0].spec)\r\n\r\nHowever , I can not get the disk's UUID , so I can not run this example successfully,\r\n\r\nSo I think there may be 2 solutions for me:\r\n1. find another way to `create a datastore using a physical disk`\r\n2. use some functions to get many uuids of the disks , and the uuids must be from the unused disks.\r\nI mean the uuid I get should not be the one which is related to an existing datastore\r\n\r\nWho can help me , I really searched a lot but not found\r\n\r\n\r\n\r\n\r\n![Uploading image.png…]()\r\n\r\n"}}
{"actor":{"display_login":"ruiruige"}}