Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: How to expand the file created by xenguest-install?: msg#00212

Subject: Re: How to expand the file created by xenguest-install?
Thanks, but I still miss how to grow the partition inside the disk inside the lvg (lvg -> /dev/xvda -> /dev/xvda1)

To summarize, the steps should be (from dom0):
1) grow the lvg used for domU (=/dev/xvda from the domU point of view)
   -> lvextend -L +1024 /dev/vg_domU/lv_FC55
2) grow the partition used by "/" in the lvg (/dev/xvda1) with parted
   -> parted /dev/mapper/vg_domU-lv_FC55
   -> resize 1 32kB 9664MB (This does not work, see below)
3) resize the fs with resize2fs (from dom0) or with ext2online from domU (thanks to Jeremy)
   -> resize2fs /dev/mapper/vg_domU-lv_FC55

Here's the output from parted:
  Using /dev/mapper/vg_domU-lv_FC55
  (parted) print
  Disk geometry for /dev/mapper/vg_domU-lv_FC55: 0kB - 9664MB
  Disk label type: msdos
  Number  Start   End     Size    Type      File system  Flags
  1       32kB    8587MB  8587MB  primary   ext3         boot
  (parted) resize 1
  Start?  [32kB]? 32kB
  End?  [8587MB]? 9660MB
  Error: File system has an incompatible feature enabled.

Is there a tool other than parted I could use to resize the partition /dev/xvda1 inside the lvg?

Jeremy Katz wrote:
On Mon, 2006-04-24 at 20:29 -0400, Denis Forveille wrote:
After that I'm stucked:
- I cant expand the filesystem for "/" from domU: "fdisk" gives the
correct (new) size for "/dev/xvda", but I can't use parted or
rezise2fs on "/dev/xvda1" as it is mounted...

Take a look at ext2online for online resizing of ext[23] filesystems

- Maybe, from dom0, a combination of "lomount" and "parted" or
"resize2fs" or other tools could do the job but I don't know how to do
it.

Take a look at kpartx (I think it's in the device-mapper-multipath
package for whatever reason, but that's neither here nor there) -- it'll
let you set up device mapper devices based on a partition table if you
want to do manipulation of guest filesystems from dom0

Jeremy

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe