您的位置:首页 > 其它

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

2015-11-18 21:12 399 查看
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 provi
4000
de information needed by udev to generate /dev/disk/by-id.
This can be done by setting the following:

Start the vSphere Client, and log in to a vCenter Server.

Select Virtual Machines and Templates and click the Virtual Machines tab.

Right-click the virtual machine for which you are enabling the disk UUID attribute, and select Power > Power Off.
The virtual machine powers off.

Right-click the virtual machine, and click Edit Settings.

Click the Options tab, and select the General entry in the settings column.

Click Configuration Parameters. The Configuration Parameters window appears.

Click Add Row.

In the Name column, enter disk.EnableUUID.

In the Value column, enter TRUE.

Click OK and click Save.

Power on the virtual machine.

虚拟机磁盘类型是选择的scsi,但是在使用scsi_id -g -u -s /block/sda 确无法得到unid;
以上操作后就可以得到磁盘的unid
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  scsi_id 虚拟机