Re: newbie question to increase the size of "guest OS"...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you are not using LVM you might be better off creating a brand new image > 7G and then copying the files from the existing image into the new image. The, once that is complete, simply boot into the new, larger image. I am not sure how to otherwise increase an image based installations storage space unless you are using LVM (which you said you are not).

Cheers,

Fred.

On Fri, Mar 21, 2008 at 7:10 AM, Dharmesh Kamdar <kamdard71@xxxxxxxxx> wrote:
Hi,
I tried the steps described in the link u sent me..
but at the end I am getting the following error:

$>lvextend -L+3G /dev/VolGroup00/LogVol00
 Extending logical volume LogVol00 to 10.03 GN
 device-mapper: reload ioctl failed: Invalid argument
 Failed to suspend LogVol00

My Fedora-8 guest is running following:
kernel -->2.6.21-2950.fc8xen
Device-Mapper--> device-mapper-multipath-0.4.7-11.fc7
device-mapper-libs-1.02.22-1.fc8
device-mapper-1.02.22-1.fc8

LVM-->lvm2-2.02.28-1.fc8

The last few lines of /var/log/messages (after
attempting to "lvextend" the logical volume), as
follows:

+++++++++++++++++++++++++++++++++++++++++++++++++++
[root@localhost ~]# tail -f /var/log/messages
Mar 20 22:49:12 localhost dhclient: bound to
192.168.122.199 -- renewal in 1373 seconds.
Mar 20 22:52:04 localhost kernel: device-mapper:
table: device 202:2 too small for target
Mar 20 22:52:04 localhost kernel: device-mapper:
table: 253:0: linear: dm-linear: Device lookup failed
Mar 20 22:52:04 localhost kernel: device-mapper:
ioctl: error adding target to table
Mar 20 22:53:18 localhost kernel: device-mapper:
table: device 202:2 too small for target
Mar 20 22:53:18 localhost kernel: device-mapper:
table: 253:0: linear: dm-linear: Device lookup failed
Mar 20 22:53:18 localhost kernel: device-mapper:
ioctl: error adding target to table
Mar 20 23:07:52 localhost kernel: device-mapper:
table: device 202:2 too small for target
Mar 20 23:07:52 localhost kernel: device-mapper:
table: 253:0: linear: dm-linear: Device lookup failed
Mar 20 23:07:52 localhost kernel: device-mapper:
ioctl: error adding target to table
+++++++++++++++++++++++++++++++++++++++++++++++++++

Will appreciate any further feedback.

Thanks,
kamdard.

I googled on "reload ioctl failed: Invalid
argument",found a few hits describing this to be a
possibly kernel or DM bug.

--- Todd Deshane <deshantm@xxxxxxxxx> wrote:

> On Thu, Mar 20, 2008 at 10:31 PM, Dharmesh Kamdar
> <kamdard71@xxxxxxxxx>
> wrote:
>
> > Hi,
> >
> > I've installed Fedora 8 as a guest OS on
> Fedora-7+XEN.
> > The host info:
> > $> uname -a
> > Linux hojo 2.6.21-7.fc7xen #1 SMP Tue Feb 12
> 12:32:24
> > EST 2008 i686 athlon i386 GNU/Linux
> >
> > CPU: mobile AMD Athlon(tm) XP-M 1400+
> > RAM: 1GB
> > ARCHITECTURE: x86 (32 bit)
> >
> > While creating the guest, I specified the storage
> as
> > /var/lib/xen/images/f8_xen.img (of about 7 GB).
> >
> > Unfortunately the guest OS is running out of
> storage
> > space and I want to add more storage to it (file
> > system based, no LVM or partition etc).
> >
> > I did manage to increase the size of the image
> file
> > via "dd" with dd as follows:
> >
> > dd if=/dev/zero of=/var/lib/xen/images/F8_XEN.img
> > bs=2M seek=4096 conv=notrunc count=2048
> > 2048+0 records in
> > 2048+0 records out
> > 4294967296 bytes (4.3 GB) copied, 124.617 s, 34.5
> MB/s
> > [root@hojo images]#
> > [root@hojo images]# ls -ltr
> > total 12398420
> > -rwxr-xr-x 1 root root 12884901888 2008-03-20
> 19:30
> > F8_XEN.img
> > [root@hojo images]#
> >
> > Now, I want to add some more storage space to  the
> > guest OS.
> >
> > So how do I do it ?
> >
> > Will appreciate if someone can provide some
> pointers.
> >
>
> http://xen.markmail.org/search/?q=resize+disk
>
>
> >
> > Thanks,
> > kamdard.
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
> >
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >
> > --
> > Fedora-xen mailing list
> > Fedora-xen@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/fedora-xen
> >
>



     ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux