All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] filesystem does not reflect new LV size
@ 2002-06-06 11:39 Vladimir G. Ivanovic
  2002-06-06 12:00 ` Joe Thornber
  0 siblings, 1 reply; 8+ messages in thread
From: Vladimir G. Ivanovic @ 2002-06-06 11:39 UTC (permalink / raw)
  To: linux-lvm

I must be doing something wrong on my Red Hat 7.3 system with a stock
2.4.18-4 kernel.

I created a logical volume on one physical disk, /dev/hde1, added it to
a (new) volume group, and I mounted it. No problems so far.

  # df /dev/ds/lvol1
  Filesystem           1k-blocks      Used Available Use% Mounted on
  /dev/ds/lvol1        156882796  90418200  58495420  61% /mnt/ds

I then created another physical volume on another physical drive

  # pvcreate /dev/hda1

and then extended my volume group with the new physical volume

  # vgextend ds /dev/hda1

Then I extended the logical volume to it's maximum size on both physical
volumes.

  # lvextend -l +168   /dev/ds/lvol1 /dev/hde1
  # lvextend -l +14308 /dev/ds/lvol1 /dev/hda1

I don't see any errors when I query the volume group (appended below).
But I can't get the mounted file system to recognize the new size.

  # df /dev/ds/lvol1
  Filesystem           1k-blocks      Used Available Use% Mounted on
  /dev/ds/lvol1        156882796  90418200  58495420  61% /mnt/ds

I've dismounted /dev/ds/lvol1 and remounted it. Still no change.

What am I missing?

Thanks.

--- Vladimir

--------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         vladimir@acm.org
Palo Alto, CA 94306-2447                                 +1 650 678 8014

--------
# vgdisplay -v
--- Volume group ---
VG Name               ds
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                1
Open LV               1
MAX LV Size           255.99 GB
Max PV                256
Cur PV                2
Act PV                2
VG Size               208.55 GB
PE Size               4 MB
Total PE              53388
Alloc PE / Size       53388 / 208.55 GB
Free  PE / Size       0 / 0
VG UUID               uYpJV8-FqdY-n7sW-il1A-v8Np-dvhk-yDCuPp

--- Logical volume ---
LV Name                /dev/ds/lvol1
VG Name                ds
LV Write Access        read/write
LV Status              available
LV #                   1
# open                 1
LV Size                208.55 GB
Current LE             53388
Allocated LE           53388
Allocation             next free
Read ahead sectors     1024
Block device           58:0


--- Physical volumes ---
PV Name (#)           /dev/hde1 (1)
PV Status             available / allocatable
Total PE / Free PE    39080 / 0

PV Name (#)           /dev/hda1 (2)
PV Status             available / allocatable
Total PE / Free PE    14308 / 0



_______________________________________________
Valhalla-list mailing list
Valhalla-list@redhat.com
https://listman.redhat.com/mailman/listinfo/valhalla-list



--- Vladimir

--------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         vladimir@acm.org
Palo Alto, CA 94306-2447                                 +1 650 678 8014

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [linux-lvm] filesystem does not reflect new LV size
@ 2002-06-06 12:06 Vladimir G. Ivanovic
  0 siblings, 0 replies; 8+ messages in thread
From: Vladimir G. Ivanovic @ 2002-06-06 12:06 UTC (permalink / raw)
  To: linux-lvm

Joe Thornber writes: 

  > Resizing is always done in two steps, these steps are done in a
  > different order depending whether you are extending or reducing.
  > 
  > Extending:
  > 
  > i) Resize the LV (lvextend)
  > ii) Resize the filesystem (eg, ext2resize, resize_reiserfs)
  > 
  > Reducing:
  > 
  > i) Resize filesystem.
  > ii) Resize the LV (lvreduce)
  > 
  > 
  > There is a tool called e2fsadm provided in LVM1 which performs both of
  > these steps iff you are using an ext2 filesystem.

Thanks! I assume that ext2resize also works for ext3 filesystems. Do I
have to do anything special about the journal file, which is a hidden
inode.

--- Vladimir

--------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         vladimir@acm.org
Palo Alto, CA 94306-2447                                 +1 650 678 8014

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [linux-lvm] filesystem does not reflect new LV size
@ 2002-06-06 12:12 Vladimir G. Ivanovic
  0 siblings, 0 replies; 8+ messages in thread
From: Vladimir G. Ivanovic @ 2002-06-06 12:12 UTC (permalink / raw)
  To: linux-lvm

Actually, my question should have been about resize2fs because that's
what I have on my system.

--- Vladimir

--------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         vladimir@acm.org
Palo Alto, CA 94306-2447                                 +1 650 678 8014

"VGI" == Vladimir G Ivanovic <vladimir@acm.org> writes:

  VGI> Joe Thornber writes: 

  >> Resizing is always done in two steps, these steps are done in a
  >> different order depending whether you are extending or reducing.
  >> 
  >> Extending:
  >> 
  >> i) Resize the LV (lvextend)
  >> ii) Resize the filesystem (eg, ext2resize, resize_reiserfs)
  >> 
  >> Reducing:
  >> 
  >> i) Resize filesystem.
  >> ii) Resize the LV (lvreduce)
  >> 
  >> 
  >> There is a tool called e2fsadm provided in LVM1 which performs both of
  >> these steps iff you are using an ext2 filesystem.

  VGI> Thanks! I assume that ext2resize also works for ext3 filesystems. Do I
  VGI> have to do anything special about the journal file, which is a hidden
  VGI> inode.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [linux-lvm] filesystem does not reflect new LV size
@ 2002-06-06 14:02 Vladimir G. Ivanovic
  2002-06-06 14:09 ` Jason L Tibbitts III
  0 siblings, 1 reply; 8+ messages in thread
From: Vladimir G. Ivanovic @ 2002-06-06 14:02 UTC (permalink / raw)
  To: linux-lvm

Well, I ran with the bit between my teeth.... (/dev/ds/lvol1 is my LV)

  # tune2fs -O ^has_journal /dev/ds/lvol1
  # fsck.ext2 -f /dev/ds/lvol1
  # resize2fs /dev/ds/lvol1
  # tune2fs -j /dev/ds/lvol1
  # mount /dev/ds/lvol1 /mnt/ds
  # df /mnt/ds

--- Vladimir

--------
Vladimir G. Ivanovic                        http://leonora.org/~vladimir
2770 Cowper St.                                         vladimir@acm.org
Palo Alto, CA 94306-2447                                 +1 650 678 8014

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-06-06 20:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06 11:39 [linux-lvm] filesystem does not reflect new LV size Vladimir G. Ivanovic
2002-06-06 12:00 ` Joe Thornber
2002-06-06 12:09   ` Tim
2002-06-06 20:16     ` Wolfgang Weisselberg
  -- strict thread matches above, loose matches on Subject: below --
2002-06-06 12:06 Vladimir G. Ivanovic
2002-06-06 12:12 Vladimir G. Ivanovic
2002-06-06 14:02 Vladimir G. Ivanovic
2002-06-06 14:09 ` Jason L Tibbitts III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.