linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Magnus Hyllander <mhylist1@hyllander.org>
To: Linux LVM list <linux-lvm@redhat.com>
Subject: [linux-lvm] Different sizes being reported for logical volume after extend
Date: Thu, 30 Nov 2006 21:39:50 +0100	[thread overview]
Message-ID: <456F4196.4020603@hyllander.org> (raw)

  Hi,

I have a little problem with a logical volume: in short, the size of the 
volume is different depending on if I boot from the FC5 rescue CD or 
from the installed FC5.

I have two mirrored disks. On the mirror I have created a logical volume 
/dev/VolGroup00/LogVol00 which contains the root filesystem. Initially I 
made the volume 4GB. Later I needed more space, so I decided to extend 
the volume to 8GB. I booted from the FC5 rescue CD and ran the following 
commands:

    dmraid -a y
    lvm vgscan
    lvm vgchange -a y
    lvm lvextend -L +4G /dev/VolGroup00/LogVol00
    fsck /dev/VolGroup00/LogVol00
    resize2fs /dev/VolGroup00/LogVol00

So far so good. Then I rebooted the system from disk and got the 
following error:

    Checking filesystems
    /dev/VolGroup00/LogVol00: The filesystem size (according to the
    superblock) is 2097152 blocks
    The physical size of the device is 1048576 blocks
    Either the superblock or the partition table is likely to be corrupt!

    /dev/VolGroup/LogVol00: UNEXPECTED INCONSISTENCY, run fsck manually.

I entered the system administration mode and checked the size of 
/dev/VolGroup/LogVol00 with "lvm lvs": 4.00G
Strange... so I booted with the rescue CD again and checked the size 
once more from the rescue environment: 8.00G.

So it seems that when I boot the system normally it doesn't "see" that 
the size of the logical volume has changed. Can someone explain this, 
and hopefully help me fix the problem?

/Magnus

             reply	other threads:[~2006-11-30 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30 20:39 Magnus Hyllander [this message]
2007-01-15 22:41 ` [linux-lvm] Different sizes being reported for logical volume after extend Magnus Hyllander
2007-02-11  2:23   ` Magnus Hyllander

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=456F4196.4020603@hyllander.org \
    --to=mhylist1@hyllander.org \
    --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;
as well as URLs for NNTP newsgroup(s).