Got it

How to find the corresponding device of the virtual machine non-virtualized data storage on the host

1051 0 5 0 0

1. In the background of the host where the VM resides, run the following command to find the device name of the VM disk on the host.

virsh domblklist <vm_id>

162857a0wwjcwwk1z883wy.png


Echo description:

Target: The corresponding drive letter of the disk inside the virtual machine.

Source: The device name of the disk on the host. Its naming format is:

System disk: /dev/mapper/<vm id>-root

User disk: /dev/mapper/<volume uuid>-user

2. Run the lsblk command to check the corresponding drive letter of the VM device on the host and the device relationship it depends on.

163017prcb4zqke41xxqoe.png
Echo description:

The system disk of the virtual machine i-0000022C corresponds to the device on the host, which is dm-6, and is subordinate to sda.

The device corresponding to the host disk of the user disk is dm-7, which is subordinate to sda.

3. Use the command to view the IO status of the virtual machine disk on the host.

iostat -kx 1 <device>

163558czl240dl5dl0h4rc.png

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.