[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LVM management question
--- Robert Threet <rthreet@yahoo.com> wrote:
> I tried lvextend -L+1G /dev/Volume02/LogVol00 which reported that
> only "1 physical extent left" or something. This is my /usr BTW.
> Next I created a LVM partition with fdisk. Then did a pvcreate,
> then
> added this to the logical volume, then repeated "lvextend -L+1G
> /dev/Volume02/LogVol00" whiched reported success. df reports no
> change?! Although 1GB of /dev/hda8 is used somewhere.
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE PV "/dev/hda5" of VG "Volume02" [2.92 GB / 0
> free]
> pvscan -- ACTIVE PV "/dev/hda6" of VG "Volume01" [1.95 GB / 2 MB
> free]
> pvscan -- ACTIVE PV "/dev/hda7" of VG "Volume00" [500 MB / 0
> free]
> pvscan -- ACTIVE PV "/dev/hda8" of VG "Volume02" [1.95 GB / 976
> MB
> free]
> pvscan -- total: 4 [7.32 GB] / in use: 4 [7.32 GB] / in no VG: 0
> [0]
>
> Okay, I'll try it your way now... [just a min...]e2fsck 1.27
> (8-Mar-2002)
> /dev/Volume02/LogVol00: recovering journal
> Pass 1: Checking inodes, blocks, and sizes
> Pass 2: Checking directory structure
> Pass 3: Checking directory connectivity
> Pass 4: Checking reference counts
> Pass 5: Checking group summary information
> /dev/Volume02/LogVol00: 125693/382464 files (0.3% non-contiguous),
> 713885/764928 blocks
> resize2fs 1.27 (8-Mar-2002)
> /sbin/resize2fs: No space left on device while trying to resize
> /dev/Volume02/LogVol00
>
> Bummer. my / has only 427M. Is that the largest chunk I can work
> with? I'll be trying it again!
Nope! I freed up 679MB on /. I went down to only adding 100M - No
dice! I'm missing some rules somehwere... My root is LVM too. Is
that bad?
>
>
> --- Steven Pritchard <steve@silug.org> wrote:
> > On Wed, Dec 04, 2002 at 07:58:32AM -0800, Robert Threet wrote:
> > > Is anybody using this?
> >
> > I am on several systems now.
> >
> > > I have it installed. Now I need to increase the size. So far,
> the
> > > docs are pretty confusing and not much help. Google searches
> > return a
> > > lot of bum useless links. What's the quick-n-dirty howto for
> > making
> > > an LVM larger?
> >
> > First, unmount the filesystem. Then, let's assume that you have
> a
> > /dev/vg00/lv05 that you want to expand (or reduce) to 10GB.
> You'd
> > just run this:
> >
> > e2fsadm -L 10G /dev/vg00/lv05
> >
> > Of course, I'm assuming that the filesystem is ext2 or ext3 (and
> > you
> > have a recent e2fsprogs with resize2fs). If you are using
> another
> > filesystem, you'll have to do the whole thing manually with
> > whatever
> > tool resizes your filesystem and lvextend/lvreduce.
> >
> > I'm also assuming that you have room to expand in your volume
> > group.
> > If you need to expand the volume group, you'll need to use
> pvcreate
> > and vgextend.
> >
> > Steve
> > --
> > steve@silug.org | Southern Illinois Linux Users Group
> > (618)398-7360 | See web site for meeting details.
> > Steven Pritchard | http://www.silug.org/
> >
> > -
> > To unsubscribe, send email to majordomo@luci.org with
> > "unsubscribe luci-discuss" in the body.
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> -
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.