Trung Hoang
2007-Aug-16 01:01 UTC
Re: [Xen-users] Adding a new virtual block device to a guest
Hi! It seems i already have udev... mydom0:~# apt-get install udev Reading package lists... Done Building dependency tree... Done udev is already the newest version. mydom0:~# I notice when i mkfs -ext 3 my new vbd with dd, it says it''s not a block device.. i have a feeling im doing this wrong. can you suggest steps in: 1. creating a new block device 2. preparing it (mkfs) 3. attaching it (block-attach) 4. mounting it (inside the domU) Will really help! On 8/15/07, xen-users-request@lists.xensource.com < xen-users-request@lists.xensource.com> wrote:> > > Message: 2 > Date: Wed, 15 Aug 2007 02:37:47 +0200 > From: Denny Schierz <linuxmail@4lin.net> > Subject: Re: [Xen-users] Adding a new virtual block device to a guest > os > To: "''xen-users@lists.xensource.com''" <xen-users@lists.xensource.com> > Message-ID: <46C24ADB.6020704@4lin.net> > Content-Type: text/plain; charset="iso-8859-1" > > hi, > > Trung Hoang schrieb: > > > My system configuration: > > - dom0 running debian etch w/ xen 3.2 (i think) (how can i find out) > > - my guest os is running debian etch. > > apt-get install udev > > and after that, remove the new block-device and add it again. > > cu denny > > -- > Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: > http://www.nopsis.de > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 252 bytes > Desc: OpenPGP digital signature > Url : > http://lists.xensource.com/archives/html/xen-users/attachments/20070815/081a968e/signature.pgp > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Denny Schierz
2007-Aug-16 08:24 UTC
Re: [Xen-users] Adding a new virtual block device to a guest
hi, Trung Hoang schrieb:> It seems i already have udev...> udev is already the newest version.> mydom0:~#is that really the Dom0? If so, you wrong. You need udev inside the Guest (DomU), cause what you doing is hotplugging a hard disc.> I notice when i mkfs -ext 3 my new vbd with dd, it says it''s not a block > device.. i have a feeling im doing this wrong. can you suggest steps in:it''s quite normal, you can ignore that warning message. cu denny -- Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: http://www.nopsis.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pradeep Parmar
2007-Aug-17 20:31 UTC
Re: [Xen-users] Adding a new virtual block device to a guest
Thats true u need udev inside domU .. and if that too doesn''t helps .. have ur reboot setting to preserve for the domU .. after a block-attach .. reboot your domU.. that should help .... On 8/16/07, Denny Schierz <linuxmail@4lin.net> wrote:> > hi, > > Trung Hoang schrieb: > > It seems i already have udev... > > > udev is already the newest version. > > > mydom0:~# > > is that really the Dom0? If so, you wrong. You need udev inside the > Guest (DomU), cause what you doing is hotplugging a hard disc. > > > > I notice when i mkfs -ext 3 my new vbd with dd, it says it''s not a block > > device.. i have a feeling im doing this wrong. can you suggest steps in: > > it''s quite normal, you can ignore that warning message. > > cu denny > > -- > Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: > http://www.nopsis.de > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Horn
2007-Aug-18 13:46 UTC
Re: [Xen-users] Adding a new virtual block device to a guest
On Thu, Aug 16, 2007 at 11:01:10AM +1000, Trung Hoang wrote:> > I notice when i mkfs -ext 3 my new vbd with dd, it says it''s not a block > device.. i have a feeling im doing this wrong. can you suggest steps in: > > 1. creating a new block device > 2. preparing it (mkfs) > 3. attaching it (block-attach) > 4. mounting it (inside the domU)The steps are correct: dom0> dd if=/dev/zero of=/mnt/storage/xen/diskfile bs=128M count=1 dom0> xm block-attach 82 tap:aio:/mnt/storage/xen/flux_diskfile sdd w 0 dom0> ssh sles10sp1 domU> cat /proc/partitions |tail -1 # now new space comes up 8 48 131072 sdd domU> mkfs.ext3 /dev/sdd # and is usable Also added to http://fluxcoil.net/doku.php/xen/docs . Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users