关闭

虚拟机中为何使用scsi_id无法查到磁盘的unid

标签: scsi_id虚拟机
1653人阅读 评论(0) 收藏 举报
分类:
There is no link in /dev/disk/by-id for SCSI (sdx) devices.
The OS is running as a host on VMWare ESX

Resolution

By default VMWare doesn't provide information needed by udev to generate /dev/disk/by-id.
This can be done by setting the following:
  1. Start the vSphere Client, and log in to a vCenter Server.
  2. Select Virtual Machines and Templates and click the Virtual Machines tab.
  3. Right-click the virtual machine for which you are enabling the disk UUID attribute, and select Power > Power Off.
    The virtual machine powers off.
  4. Right-click the virtual machine, and click Edit Settings.
  5. Click the Options tab, and select the General entry in the settings column.
  6. Click Configuration Parameters. The Configuration Parameters window appears.
  7. Click Add Row.
  8. In the Name column, enter disk.EnableUUID.
  9. In the Value column, enter TRUE.
  10. Click OK and click Save.
  11. Power on the virtual machine.

虚拟机磁盘类型是选择的scsi,但是在使用scsi_id -g -u -s /block/sda 确无法得到unid;
以上操作后就可以得到磁盘的unid
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:136853次
    • 积分:2725
    • 等级:
    • 排名:第13721名
    • 原创:99篇
    • 转载:244篇
    • 译文:0篇
    • 评论:0条