From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wangpan" Subject: How to get the real device in guest os after attached a disk? Date: Tue, 17 Jul 2012 11:40:59 +0800 Message-ID: <1936723074.42171.1342496460585.JavaMail.hzwangpan@corp.netease.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: "kvm" Return-path: Received: from corp.netease.com ([220.181.31.109]:34104 "EHLO corp.netease.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753319Ab2GQDlE (ORCPT ); Mon, 16 Jul 2012 23:41:04 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I have a question as the subject above, the reason I want to know this is that, if I attach some disks on the guest, for example, I specified /dev/vdc&/dev/vdd(target device) at the cmd line by using 'virsh attach-disk', but they may be /dev/vdb&/dev/vdc in the guest os, so if the guest user want to detach the /dev/vdb(guest device), he\she will be confused with the two target devices /dev/vdb&/dev/vdc, because he\she doesn't know the corresponding relation of the guest device and target device, he\she may detach an error device /dev/vdd(target device) which corresponding to /dev/vdc(guest device). Could anyone give me some idea? Thanks in advance. Best Regards Wangpan