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] Using xm block-{attach,detach}

To: dbareiro@xxxxxxx
Subject: Re: [Xen-users] Using xm block-{attach,detach}
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Wed, 4 Apr 2007 10:43:10 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 03 Apr 2007 22:12:16 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=obXya3zF4DyaTE3OfdhXsqE2bzNU+8SzB5YyIqwX/QVroC9MyvMORgzzfi/ErOovo9hPVeT+LpIZn2PeqzS01IGuVtLB6C4DuL6YkTj2+6dSNkb1oeGxfm5LlPP+vAMRDwNB050nqTVwNjQpvHO/rPboVGBSlP6pKjp1CnB/Kpk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=CtnYhKg+EDwFpilRVBvz6SNq9yyjuZBkBzTPwPeKZZ4jOKJLo3Ji1YPQzASRWqwxEOfc8Ss6LQ/Qc8hNR7ZSzPJ/ziEwwdA+FCQ0vI52T3oL92V3vV9NeIaNXRECDm5FtROlvCcnoGasUnx2YdS/kNQJZUyP3rGuHrOITlAB3wY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070403191553.GA22857@xxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20070403011707.GA17815@xxxxxxxxxxxxxxxxxxxxxxx> <f58fc26d0704030118o7b2d6ab4oe124b8f8ba0e611@xxxxxxxxxxxxxx> <20070403191553.GA22857@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Are u using para or HVM domain ?
I think, In case of HVM u cant attach a disk partition. U have to attach the full disk.

But in case of para it should work fine.
What your #cat /proc/partition is showing.


On 4/4/07, Daniel Bareiro <daniel-listas@xxxxxxx> wrote:
On Tuesday, 03 April 2007 13:48:14 +0530,
trilok nuwal wrote:

Hi trilok.

> How are you attaching the devices ?
> For file baked partition are shoud use

> xm block-attach 20 file:/home/disk /dev/hdb2 w

> and for physical partition u have to use
> xm block-attach 20 phy:/dev/sdb4 /dev/hda2 w

> Are you using the same method ?

Yes. In dom0:

sirius:~# xm block-list 5
Vdev  BE handle state evt-ch ring-ref BE-path
771    0    0     4      6      8     /local/domain/0/backend/vbd/5/771
770    0    0     4      7      9     /local/domain/0/backend/vbd/5/770
769    0    0     4      8      10    /local/domain/0/backend/vbd/5/769

sirius:~# xm block-attach 5 phy:/dev/vm/ws1.space /dev/hda4 w
sirius:~# xm block-list 5
Vdev  BE handle state evt-ch ring-ref BE-path
771    0    0     4      6      8     /local/domain/0/backend/vbd/5/771
770    0    0     4      7      9     /local/domain/0/backend/vbd/5/770
769    0    0     4      8      10    /local/domain/0/backend/vbd/5/769
772    0    0     4      10     643   /local/domain/0/backend/vbd/5/772

Inside domU:

ws1:/dev# mkfs.reiserfs /dev/hda [tab][tab]
hda1  hda2  hda3

The domU is Debian GNU/Linux Sarge. It's necessary to do something more
inside domU?

Thanks for you answer.

Regards,
Daniel
--
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGEqfpZpa/GxTmHTcRAiSVAJ9dkhuAgDas56R2vJ4ZpVdut4miXgCggYkL
cR6TtR+63D4bq6RjP9X5roo=
=PbaW
-----END PGP SIGNATURE-----

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

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