RE: RH AS 4U2 - LVM extend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

I dont have ext2resize or ext2prepare on my system.

The pvcreate, vgextend, lvextend, ext2online formula should do what your after when your working with LVM.
The filesystem in your example is being extended from 2G to 4G, this is not large, I work on some 50G filesystems with no probs, and have never needed ext2{resize,prepare} ;)

However, if you need ext2resize it's here http://ext2resize.sourceforge.net , it may be on RHN too, I haven't checked.

Good luck,
Nick .


> -----Original Message-----
> From: Chiu, PCM (Peter) [mailto:P.C.M.Chiu@xxxxxxxx]
> Sent: 17 January 2006 08:17
> To: General Red Hat Linux discussion list; Getting started 
> with Red Hat
> Linux
> Subject: 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
> 

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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux