Has anyone seen a problem with growing file systems in domU''s with xfs? I use LVM for my volumes. i grew the volume in dom0 with ''lvextend -L +10G /dev/noraid/bacdumps'' in the domU i run ''xfs_growfs /path/to/mounted/fs'' lvs in dom0 says the volume is larger. bacdumps noraid -wi-ao 25.00G but xfs_growfs prints out info of the old size (15 GB) bsize=4096 blocks=3932160 and ''df'' in the domU shows the same results only 15GB, i dont have this problem on non xen machines. Any thoughts ? Brock Palen Center for Advanced Computing brockp@umich.edu (734)936-1985 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Am Donnerstag 29 Juni 2006 16:34 schrieb Brock Palen:> Has anyone seen a problem with growing file systems in domU''s with > xfs? I use LVM for my volumes. i grew the volume in dom0 with > ''lvextend -L +10G /dev/noraid/bacdumps'' > > in the domU i run ''xfs_growfs /path/to/mounted/fs'' > > lvs in dom0 says the volume is larger. > bacdumps noraid -wi-ao 25.00G > > but xfs_growfs prints out info of the old size (15 GB) > > bsize=4096 blocks=3932160 > > and ''df'' in the domU shows the same results only 15GB, i dont have > this problem on non xen machines. Any thoughts ?Could it be that your domU kernel has to re-read the partition table? Maybe the domU kernel does not know that you have resized the "partition" but the dom0 kernel does (because you used lvextend in there). sfdisk --re-read should make your kernel reread the partition table (if you have sfdisk...). Regards Philipp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu June 29 2006 09:34, Brock Palen wrote:> Has anyone seen a problem with growing file systems in domU''s with > xfs? I use LVM for my volumes. i grew the volume in dom0 with > ''lvextend -L +10G /dev/noraid/bacdumps'' > > in the domU i run ''xfs_growfs /path/to/mounted/fs'' > > lvs in dom0 says the volume is larger. > bacdumps noraid -wi-ao 25.00G > > but xfs_growfs prints out info of the old size (15 GB) > > bsize=4096 blocks=3932160 > > and ''df'' in the domU shows the same results only 15GB, i dont have > this problem on non xen machines. Any thoughts ?Did you reboot domU or reload domU kernel mod, so the domU kernel knows the new partition size? jerry _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
sfdisk --re-read /dev/hdb gave me this: sfdisk: cannot open /dev/hdb for reading I was forced to reboot the domU and rerun xfs_growfs and it worked fine. Though this is much less than optimal. and half the reason i use xfs :( anyone else know of a reliable live filesystem grower ? Brock Palen Center for Advanced Computing brockp@umich.edu (734)936-1985 On Jun 29, 2006, at 11:01 AM, Jan Philipp Giel wrote:> Am Donnerstag 29 Juni 2006 16:34 schrieb Brock Palen: >> Has anyone seen a problem with growing file systems in domU''s with >> xfs? I use LVM for my volumes. i grew the volume in dom0 with >> ''lvextend -L +10G /dev/noraid/bacdumps'' >> >> in the domU i run ''xfs_growfs /path/to/mounted/fs'' >> >> lvs in dom0 says the volume is larger. >> bacdumps noraid -wi-ao 25.00G >> >> but xfs_growfs prints out info of the old size (15 GB) >> >> bsize=4096 blocks=3932160 >> >> and ''df'' in the domU shows the same results only 15GB, i dont have >> this problem on non xen machines. Any thoughts ? > > Could it be that your domU kernel has to re-read the partition > table? Maybe > the domU kernel does not know that you have resized the "partition" > but the > dom0 kernel does (because you used lvextend in there). > > sfdisk --re-read > > should make your kernel reread the partition table (if you have > sfdisk...). > > Regards > Philipp > > _______________________________________________ > 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
The problem might be that the change in size of the underlying block device isn''t passed through to the guest. If that''s the problem I''d imagine this ought to be fixable reasonably easily (by someone with the appropriate kernel experience / motivation) Cheers, mark On Thursday 29 June 2006 16:20, Brock Palen wrote:> sfdisk --re-read /dev/hdb > > gave me this: > sfdisk: cannot open /dev/hdb for reading > > I was forced to reboot the domU and rerun xfs_growfs and it worked > fine. Though this is much less than optimal. and half the reason i > use xfs :( > > anyone else know of a reliable live filesystem grower ? > > Brock Palen > Center for Advanced Computing > brockp@umich.edu > (734)936-1985 > > On Jun 29, 2006, at 11:01 AM, Jan Philipp Giel wrote: > > Am Donnerstag 29 Juni 2006 16:34 schrieb Brock Palen: > >> Has anyone seen a problem with growing file systems in domU''s with > >> xfs? I use LVM for my volumes. i grew the volume in dom0 with > >> ''lvextend -L +10G /dev/noraid/bacdumps'' > >> > >> in the domU i run ''xfs_growfs /path/to/mounted/fs'' > >> > >> lvs in dom0 says the volume is larger. > >> bacdumps noraid -wi-ao 25.00G > >> > >> but xfs_growfs prints out info of the old size (15 GB) > >> > >> bsize=4096 blocks=3932160 > >> > >> and ''df'' in the domU shows the same results only 15GB, i dont have > >> this problem on non xen machines. Any thoughts ? > > > > Could it be that your domU kernel has to re-read the partition > > table? Maybe > > the domU kernel does not know that you have resized the "partition" > > but the > > dom0 kernel does (because you used lvextend in there). > > > > sfdisk --re-read > > > > should make your kernel reread the partition table (if you have > > sfdisk...). > > > > Regards > > Philipp > > > > _______________________________________________ > > 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-- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
After you have done: lvextend -L +10G /dev/noraid/bacdumps'' Try: ext2online /dev/noraid/bacdumps To re-read the partition table try: partprobe -Naha _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users