Linux LVM users
 help / color / mirror / Atom feed
From: Klaus Strebel <klaus.strebel@gmx.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to increase/decrease space
Date: Thu, 16 Dec 2004 17:22:02 +0100	[thread overview]
Message-ID: <41C1B62A.8020200@gmx.net> (raw)
In-Reply-To: <OFE9BB603A.48ABDE42-ON86256F6C.00557C0E-86256F6C.00573F84@schneider.com>

AdabalaP@schneider.com wrote:
Hi Abdala,

seem's that you mix disks, partions, and filesystems. Here a little 
PC-primer that you get an idea what all the other people are talking about.

1. You have a disk - obviously an IDE-drive 'caue the Linux device name 
is hda.

2. On the disk, you have 2 Partitions, named hda1 and hda2.

3. On the first partition, you have an ext3 filesystem (?) probably for 
/boot ??, the second partition is the only phisical volume of your 
volume group VolGrp00 managed by LVM2, countaining several logical volumes.

4. The logical volumes in your volume group VolGrp00 containing are 
formatted with a ext3 filesystem.

> Austine,
> 
> I have a hard disk of 4.8GB which i partitioned it into 2 parts (hda1 = 100
> meg, hda2 = 4.7gb). The whole disk is of ext3 file system type.
This means, that /dev/hda is an ext3 filesystem ... if that's the case, 
then the filesystem spans all partiotions and all the logical volumes 
and if you were able to mount it, you will surely damage all the other 
stuff on you drive ... well, you can't : i think Linux doesn't allow 
mounting of overlapping devices/partitions, and if it does, the 
filesystem is surely already damaged ...

> The hda2 is managed by using lvm2.
But you said, all drive is ext3 - well, seems you mixed something up ;-)

> Following is the partition sizes of the hda2 disk;
> 
> hda2        VolGrp00          4.6 gb
> 
> /           VolGrp00/LogVol00 450 meg     35% used
> /usr        VolGrp00/LogVol04 1.9 gb      92% used
> /usr/local  VolGrp00/LogVol05 128 meg     25% used
> /home       VolGrp00/LogVol03 128 meg     60% used
> /opt        VolGrp00/LogVol02 128 meg     35% used
> /var        VolGrp00/LogVol07 450 meg     30 % used
> swap        VolGrp00/LogVol01 342 meg
> 
> Here is sequence of steps that i have performed to inc/dec the partition
> sizes;
> 
> tried to increase /usr size by 400 meg.
> 
>       #lvresize -L +450 VolGrp00/LogVol04
> 
>       when i display using the "lvdisplay VolGrp00/LogVOl04" i see 2.4 gig
> allocated to this partition, but when i   see it through "df -m /usr" it
> hasn't changed.
> 
>       So, As per Jason's email i have done the below;
> 
>       #lvextend -L2.4G VolGrp00/LogVol04
So you resized the logical volumes, which is a kind of 'virtual 
partition', but the filesystem is still of the same size, it doesn't 
recognize the the 'device' or 'partition' it lives on has grown, so you 
have to tell him to (Jason Martin told you earlier, and pointed you to 
the LVM-HOWTO <http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html>).

Instead of complainig you should have better read that doc, and you'd 
know what to do.

> 
>       But again this hasn't changed my "df -m /usr" output.
> 
> I thought using LVM commands one should be able to take care of the inc/dec
> of partitions sizes under a given VG. Why should i be using "fdisk" and
> "e2fsadm" ?
Well, if you'd read the e2fsadm man page before growing your lvol, you'd 
  have known what to do. For an offline ext3 (don't know Fedora, 
propably they aleady use the online resize patches for ext3 ?), you can 
use resize2fs to grow your filesystem.

> 
> If i have missed or done any thing wrong while resizing the partitions can
> please provide me an example so that i could try it.
Jason pointed you there in the first reply to your request, so Read That 
Fucking Manual ;-).

Ciao
Klaus

-- 
Mit freundlichen Gr�ssen / best regards

Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net

/"\
\ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
/ \

  reply	other threads:[~2004-12-16 16:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-16 15:52 [linux-lvm] How to increase/decrease space AdabalaP
2004-12-16 16:22 ` Klaus Strebel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-20 17:02 AdabalaP
2004-12-16 21:20 Nicoya Helm
2004-12-16 20:05 AdabalaP
2004-12-16 17:09 Nicoya Helm
2004-12-16  3:01 Gonyou, Austin
2004-12-16  2:15 AdabalaP
2004-12-15 19:45 AdabalaP
2004-12-15 20:20 ` Jason Martin
2004-12-15 18:11 AdabalaP
2004-12-15 18:15 ` Jason Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41C1B62A.8020200@gmx.net \
    --to=klaus.strebel@gmx.net \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox