RH AS 4U2 - LVM extend

Lunt, Nick Nick.Lunt at wesleyan.co.uk
Mon Jan 16 09:00:12 UTC 2006


Hi,




> -----Original Message-----
> From: Chiu, PCM (Peter) [mailto:P.C.M.Chiu at rl.ac.uk]
> 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.





More information about the redhat-list mailing list