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: Thu, 5 Apr 2007 10:15:44 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 04 Apr 2007 21:44:49 -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=Gt9bSZbLb4AOq7aXj9LsUadbihpIdAL7hFUG3Xi+MTbSyTcg8XUZ/IcLIlxXTCHCNKVIs4OIC0kIm9SilNmLWqQz2CmFLnr91TdOzCledWztf2qQ6dqt8fC/z64rzHPIrFhV0YnxOaOyCrqWvEgdOorfNQmiuM3JwYugsWxG3+E=
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=aMbRF5Fo/rKQGmpBeiGXOO9+hQWqbZx1LSxLCZLZZwB4Dcv65ngLJoX3Mz9FOXqL1M4tU1yXAsi/U710LgXJQBrVlvij8J+wNAQobJkkFZiXpdRtFLWjvnVFdX7+qPremN8Oj4XjhOB99g2i5K8qt8NnPRQVh7qHlqlZKAy2Fvk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070404183039.GA26581@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> <f58fc26d0704032213m4771e874nc8e9d62d17e82b19@xxxxxxxxxxxxxx> <20070404183039.GA26581@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
so that partition is exported to domU. then u can create FS and mount this. What is the problem ?

On 4/5/07, Daniel Bareiro < daniel-listas@xxxxxxx> wrote:
On Wednesday, 04 April 2007 10:43:10 +0530,
trilok nuwal wrote:

> Are u using para or HVM domain ?

I'm using para.

> 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.

In dom0:

sirius:~# lvs|grep ws1
  ws1.mirror      vm   -wi-ao  30,00G
  ws1.raiz        vm   -wi-ao   5,00G
  ws1.space       vm   -wi-ao   5,00G
  ws1.swap        vm   -wi-ao 256,00M

sirius:/etc/xen# cat ws1|grep phy
disk = [ 'phy:vm/ws1.mirror,hda3,w',
  'phy:vm/ws1.raiz,hda2,w','phy:vm/ws1.swap,hda1,w' ]

In domU:

ws1:~# cat /proc/partitions
major minor  #blocks  name

   3     3   31457280 hda3
   3     2    5242880 hda2
   3     1     262144 hda1
   3     4    5242880 hda4

It appears to recognize the new lvm-backed vbd, but I can't access to
it:

------------------------------------------------------------------------
ws1:~# mkfs.reiserfs /dev/hda4
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Jeremy  Fitzhardinge  wrote  the  teahash.c  code  for  V3.  Colin Plumb
also contributed to that.

Yury Umanets  (aka Umka)  developed  libreiser4,  userspace  plugins,
and  all userspace tools (reiser4progs) except of fsck.


Stat of the device '/dev/hda4' failed.
------------------------------------------------------------------------
ws1:~# fdisk /dev/hda [TAB][TAB]
hda1  hda2  hda3
ws1:~# fdisk /dev/hda


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)

iD8DBQFGE+7PZpa/GxTmHTcRAq//AJoDtE/0EvR3WpKNeLW9Fo7wAm4fhQCeOd2N
30LreIPAZda1oy2TM0MTrnU=
=lt/j
-----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