vdsm-client命令行
时间:2020-01-11 18:27 来源:linux.it.net.cn 作者:IT
vdsm-client命令行
1.获取主机的状态信息
vdsm-client Host getStats
2.获取存储域的状态
vdsm-client Host getStorageRepoStats
3.获取主机的capabilities
vdsm-client Host getCapabilities
4.获取主机连接的存储池
vdsm-client Host getConnectedStoragePools
5.获取主机连接的存储域
vdsm-client Host getStorageDomains
6.获取存储设备列表
vdsm-client Host getDeviceList
7.获取卷组信息
vdsm-client Host getLVMVolumeGroups
8.获取主机的硬件信息
vdsm-client Host getHardwareInfo
9.获取所有虚拟机的状态信息
vdsm-client Host getAllVmStats
10.获取所有虚拟机的IOTune Policies
vdsm-client Host getAllVmIoTunePolicies
11.获取主机的状态信息
vdsm-client Host getStats
12.设置主机的日志级别([‘INFO’, ‘CRITICAL’, ‘WARN’, ‘DEBUG’, ‘WARNING’, ‘ERROR’, ‘CRIT’])
vdsm-client Host setLogLevel level=DEBUG
13.获取虚拟机列表
vdsm-client Host getVMList
14.主机启用全局或本地HA mode (‘GLOBAL’ or ‘LOCAL’)
vdsm-client Host setHaMaintenanceMode enabled=True mode=GLOBAL
vdsm-client Host setHaMaintenanceMode enabled=True mode=LOCAL
15.主机禁用全局HA
vdsm-client Host setHaMaintenanceMode enabled=False mode=GLOBAL
(注:在实际使用时,vmID, storagepoolID, storagedomainID, imageID,volumeID时自己环境中的ID,读者应该替换为自己实际环境对应的ID)
16.获取存储池的状态
vdsm-client StoragePool getInfo storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86
17.获取导出域中的虚拟机列表
vdsm-client StoragePool getBackedUpVmsList storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=d669e3ad-422b-4582-a742-1a76d327997a
18.查看SPM的状态(只有在SPM主机上执行才正确)
vdsm-client StoragePool getSpmStatus storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86
19.停止SPM
vdsm-client StoragePool spmStop storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86
20.获取卷的信息
vdsm-client Volume getInfo storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86
storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7
imageID=c05a5e10-c576-4316-ad95-69c6afa58c81
volumeID=31bd5de5-83dd-42ff-95fa-3809add7bf2c
21.获取存储域的状态
vdsm-client StorageDomain getStats storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7
22.获取存储域的信息
vdsm-client StorageDomain getInfo storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7
23.获取存储域下的镜像列表
vdsm-client StorageDomain getImages storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7
24.获取存储域下的卷列表
vdsm-client StorageDomain getVolumes storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7
25.验证存储域是否有效
vdsm-client StorageDomain validate storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7
26.注销windows虚拟机(windows虚拟机需要安装guesttools工具)
vdsm-client VM desktopLogoff vmID=406a6232-2f7d-49b2-af1f-e436d5fc1102 force=false
27.获取虚拟机的信息
vdsm-client VM getInfo vmID=7ef5aece-bbb6-4a35-9a89-32c55c8b918d
28.获取虚拟机的状态信息
vdsm-client VM getStats vmID=7ef5aece-bbb6-4a35-9a89-32c55c8b918d
29.获取迁移的状态
vdsm-client VM getMigrationStatus vmID=7ef5aece-bbb6-4a35-9a89-32c55c8b918d
(责任编辑:IT)
vdsm-client命令行 1.获取主机的状态信息 vdsm-client Host getStats 2.获取存储域的状态 vdsm-client Host getStorageRepoStats 3.获取主机的capabilities vdsm-client Host getCapabilities 4.获取主机连接的存储池 vdsm-client Host getConnectedStoragePools 5.获取主机连接的存储域 vdsm-client Host getStorageDomains 6.获取存储设备列表 vdsm-client Host getDeviceList 7.获取卷组信息 vdsm-client Host getLVMVolumeGroups 8.获取主机的硬件信息 vdsm-client Host getHardwareInfo 9.获取所有虚拟机的状态信息 vdsm-client Host getAllVmStats 10.获取所有虚拟机的IOTune Policies vdsm-client Host getAllVmIoTunePolicies 11.获取主机的状态信息 vdsm-client Host getStats 12.设置主机的日志级别([‘INFO’, ‘CRITICAL’, ‘WARN’, ‘DEBUG’, ‘WARNING’, ‘ERROR’, ‘CRIT’]) vdsm-client Host setLogLevel level=DEBUG 13.获取虚拟机列表 vdsm-client Host getVMList 14.主机启用全局或本地HA mode (‘GLOBAL’ or ‘LOCAL’) vdsm-client Host setHaMaintenanceMode enabled=True mode=GLOBAL vdsm-client Host setHaMaintenanceMode enabled=True mode=LOCAL 15.主机禁用全局HA vdsm-client Host setHaMaintenanceMode enabled=False mode=GLOBAL (注:在实际使用时,vmID, storagepoolID, storagedomainID, imageID,volumeID时自己环境中的ID,读者应该替换为自己实际环境对应的ID) 16.获取存储池的状态 vdsm-client StoragePool getInfo storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 17.获取导出域中的虚拟机列表 vdsm-client StoragePool getBackedUpVmsList storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=d669e3ad-422b-4582-a742-1a76d327997a 18.查看SPM的状态(只有在SPM主机上执行才正确) vdsm-client StoragePool getSpmStatus storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 19.停止SPM vdsm-client StoragePool spmStop storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 20.获取卷的信息 vdsm-client Volume getInfo storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7 imageID=c05a5e10-c576-4316-ad95-69c6afa58c81 volumeID=31bd5de5-83dd-42ff-95fa-3809add7bf2c 21.获取存储域的状态 vdsm-client StorageDomain getStats storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7 22.获取存储域的信息 vdsm-client StorageDomain getInfo storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7 23.获取存储域下的镜像列表 vdsm-client StorageDomain getImages storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7 24.获取存储域下的卷列表 vdsm-client StorageDomain getVolumes storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7 25.验证存储域是否有效 vdsm-client StorageDomain validate storagepoolID=b0984a46-e196-11e8-b0a2-00123e6b7c86 storagedomainID=0beb923d-a375-4e0a-b5ea-34244d45c7d7 26.注销windows虚拟机(windows虚拟机需要安装guesttools工具) vdsm-client VM desktopLogoff vmID=406a6232-2f7d-49b2-af1f-e436d5fc1102 force=false 27.获取虚拟机的信息 vdsm-client VM getInfo vmID=7ef5aece-bbb6-4a35-9a89-32c55c8b918d 28.获取虚拟机的状态信息 vdsm-client VM getStats vmID=7ef5aece-bbb6-4a35-9a89-32c55c8b918d 29.获取迁移的状态 vdsm-client VM getMigrationStatus vmID=7ef5aece-bbb6-4a35-9a89-32c55c8b918d (责任编辑:IT) |