WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] hdparm/sdparm/smartctl from the DomU

To: Ryan Kennedy <rkennedy@xxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] hdparm/sdparm/smartctl from the DomU
From: Takeshi HASEGAWA <hasegaw@xxxxxxxxx>
Date: Sat, 18 Apr 2009 04:11:20 +0900
Cc:
Delivery-date: Fri, 17 Apr 2009 12:12:15 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3x+K/294wkzmgW7SNnhSRsLYmsX/L/VHa1alqzQ2B/U=; b=V+83XhWvQd1SNHFDBhS2vRGwjdAt5ce/JVMRF42fQqS9jZ9Lce3yc9bGy0N1Ha/cTu xB+7juPDfGUvKPaSjHcvhkc7wu2Dq/ZteBbmbSsvE4bnGsHE30rwXHnEnCNXdu6FlWfc GyXGhE8Z9rhCLQGvpS5/ukK5PZdaEVPnxs1rM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=b8BudCKtEQTsJ028v9+/llCYZvCMV+YjWsO/l0K2/5kwfIFC++/dDvjKyqaaM1rB7q mCT3y/BuRbDCwd7aY+B76+J+HYZigDEBcQSWTui4dqWMoF1KQ5dU8AyYdZ9rgJDqZDkQ SSGdbuZLM/fwqV/fB/04SOYpjkEwbqNe6nTmo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49E8D1A2.6030102@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <49E8BFF2.8030606@xxxxxxxxxxxxxx> <87e595630904171128w67cce80bxe11915e4a076382a@xxxxxxxxxxxxxx> <49E8D1A2.6030102@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
If you are mounting sda, sdb from domain-0, you know,
it's impossible to unbind.

In this method, you need to prepare dedicated disk controller(s)
for domain-U to try that.

-- 
Takeshi HASEGAWA <hasegaw@xxxxxxxxx>



2009/4/18 Ryan Kennedy <rkennedy@xxxxxxxxxxxxxx>:
> Yes, that is exactly how I have them configured.
> I was afraid that the virtual block device driver wouldn't allow me to
> hdparm the device.
> I did a PCI passthrough of the SATA controller's PCI address.  Is that
> what you mean by "assign disk controllers to the DomU directly"?
> It didn't make any difference, although I did not unbind it from the
> Dom0.  Seeing as how Dom0's sda/sdb drivers are using that controller I
> don't think I can unbind it without crashing the system. :-)
> Is there some other method for presenting the disk controllers to the domU?
>
> Thanks.
>
> Takeshi HASEGAWA wrote:
>> Configured like this?
>>
>> disk=[ "phy:/dev/sda,sda,w", "phy:/dev/sdb,sdb,w", ]
>>
>> If so, the /dev/sd[ab] in Domain-U are not SCSI devices,
>> even though they're named like "sdX."
>> I guess your sd[abc] devices in domain-U should be shown below:
>>
>> [root@vm182 sdc]# ls -l /sys/block/sdc/
>> total 0
>> -r--r--r-- 1 root root 4096 Apr 18 03:22 dev
>> lrwxrwxrwx 1 root root    0 Apr 18 03:22 device -> ../../devices/xen/vbd-2080
>> drwxr-xr-x 2 root root    0 Apr 18 03:22 holders
>> drwxr-xr-x 3 root root    0 Apr 18 03:22 queue
>>
>> They're actually xen's virtual block devices, so It's impossible to hdparm 
>> them.
>> Maybe you need to do that from domain-0, or assign disk controllers
>> to domain-U directly.
>>
>>
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users