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

本文介绍了如何在vSphere Client中启用虚拟机磁盘的UUID属性,通过编辑设置,配置参数,添加disk.EnableUUID参数并设置为TRUE,从而解决使用scsi_id查询不到磁盘unid的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值