Re: Re: How to get the real device in guest os after attached a disk?

2012-07-18 Thread Stefan Hajnoczi
On Wed, Jul 18, 2012 at 5:01 AM, Wangpan hzwang...@corp.netease.com wrote: But how can I get the serial info in the guest os? General documentation on persistent block device naming (just grabbed the first useful link of Google):

Re: How to get the real device in guest os after attached a disk?

2012-07-17 Thread Stefan Hajnoczi
On Tue, Jul 17, 2012 at 4:40 AM, Wangpan hzwang...@corp.netease.com wrote: 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

Re: Re: How to get the real device in guest os after attached a disk?

2012-07-17 Thread Wangpan
Thanks Stefan, But how can I get the serial info in the guest os? I have tried 'hdparm', 'sdparm', 'lshw', 'smartctl' and failed finally. for example, root@debian:~# hdparm -i /dev/vdc /dev/vdb: HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device HDIO_GET_IDENTITY failed: