RE: RH AS 4U2 - LVM extend



Thanks a lot, Nick,

Ext2online does extend a mounted an ext3 file system live.

While checking the man page on ext2online, I have also found ext2resize
and ext2prepare being mentioned for the better support of resizing at
larger capacity.

But I cannot locate ext2resize nor ext2prepare binaries, and they man
pages.

Do you have any experience on them, or do you know which package they
belong to?

Peter

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Lunt, Nick
Sent: 16 January 2006 09:00
To: General Red Hat Linux discussion list; Getting started with Red Hat
Linux
Subject: RE: RH AS 4U2 - LVM extend

Hi,




> -----Original Message-----
> From: Chiu, PCM (Peter) [mailto:P.C.M.Chiu@xxxxxxxx]
> Sent: 16 January 2006 08:55
> To: General Red Hat Linux discussion list; Getting started with Red
> Hat Linux
> Cc: Chiu, PCM (Peter)
> Subject: RH AS 4U2 - LVM extend
>
>
> Hi,
>
> I recall in the past that I was able to extend a lvm file system
> without the need of reformatting and restoring the contents, but I
> don't seem to be able to do under RH AS 4U2.
>
> Below are the steps that I take. vgdisplay shows the volume group
> capacity is extended, but lvdisplay shows the logical volume is not.
> Have I missed something here?
>
> Thanks.
>
> fdisk /dev/had to make new partitions 7 and 8 with type 8e
>
> pvcreate /dev/hda7
> vgcreate peter-vg /dev/hda7
> lvcreate -L 2G /dev/peter-vg -n peter-lv mke2fs -j
> /dev/peter-vg/peter-lv mount /dev/peter-vg/peter-lv /data
> - A 2GB /data is mounted and works ok.
>
> umount /data
> pvcreate /dev/hda8
> vgextend peter-vg /dev/hda8
> lvextend -L 4G /dev/peter-vg/peter-lv
>
> The last command is accepted but no action is taken.
> The /dev/peter-vg/peter-lv is still mounted as a 2GB file system.
> Tried reboot, vgscan and vgchange -ay, no luck.
>

have you tried ext2online /dev/peter-vg/peter-lv ?

This should work with the filesystem mounted. Having said that, I've
only ever used it on ext3 (journalling), but the man page says it's ext2
so you should be fine.

The filesystem should be extended after that. As it stands at the moment
you've just extended the nr of extents available but not yet used them.
Some shops do that to make it easy to extend filesystems when they fill
up.

Good luck,
Nick .


Wesleyan Administration Services Ltd registered number 5188850 and
Wesleyan Unit Trust Managers Ltd registered number 2114859 ("WUTM Ltd")
are wholly owned subsidiary companies of Wesleyan Assurance Society,
whose registered number is ZC145.
WUTM Ltd is a member of IMA. For ISA/PEP/Unit Trusts Administration
Centre: PO Box 9033, Chelmsford, SM99 2WQ Telephone: 0870 601 6129
Wesleyan Assurance Society and WUTM Ltd are authorised and regulated by
the Financial Services Authority.
Head Office, Colmore Circus, Birmingham B4 6AR. Telephone: 0121 200 3003
Fax 0121 200 2971.
Website: www.wesleyan.co.uk Telephone calls may be recorded for
monitoring and training purposes.

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the
person or organisation to whom it is addressed. Its contents are
confidential and may be protected in law. Unauthorised use, copying or
disclosure of any of it may be unlawful. If you are not the intended
recipient, please contact us immediately.

The contents of any attachments in this e-mail may contain software
viruses, which could damage your own computer system. While every
reasonable precaution to minimise this risk has been taken, we cannot
accept liability for any damage that you sustain as a result of software
viruses. You should carry out your own virus checking procedure before
opening any attachment.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Extending a File System Partition for Windows XP
    ... This hotfix includes a new Diskpart.exe utility command (extend filesystem) ... that you can use to extend the file system only. ... Diskpart prompt: ...
    (microsoft.public.windowsxp.configuration_manage)
  • Extend file system
    ... I have a quick question on extending a file system. ... have extend my virtual disk by 100gig. ... The reason I'm asking the question is the system admin guide has you reading ...
    (Tru64-UNIX-Managers)
  • Re: Extending a File System Partition for Windows XP
    ... You can't extend the system volume other than by mounting another volume to ... Make sure you have a backup of all partitions before attempting this. ... filesystem) that you can use to extend the file system only. ... following commands at the Diskpart prompt: ...
    (microsoft.public.windowsxp.configuration_manage)
  • Summary: Extend file system
    ... grow the file system which I know how to do and have done many times. ... disklabel: partition c: partition extends past end of unit ... when I tried to write the new label back to the disk. ... have extend my virtual disk by 100gig. ...
    (Tru64-UNIX-Managers)
  • Re: vms versus solaris
    ... > lot of file features transpararently to existing applications. ... A Unix environment could be extended as well: their interfaces may not ... > possible without major rewrite of the file system. ... extend the RMS parameter-block interface somewhat less kludgily than the ...
    (comp.os.vms)