- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to extend Logical Volume in RHEL AS 3
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 07:35 AM
тАО04-17-2009 07:35 AM
What is the procedure for extending a logical volume in RHEL AS 3?
I know how to extend a logical volume in RHEL AS4 using lvm commands lvextend and ext2online but there is no ext2online command in RHEL AS 3.
Can anyone advise me how to this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 09:09 AM
тАО04-17-2009 09:09 AM
Re: How to extend Logical Volume in RHEL AS 3
I typically use resize2fs:
lvextend -L +1G /dev/vg00/lvol8
resize2fs /dev/vg00/lvol8
You never have to even unmount the filesystem, it does it all live.
Hope this helps :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 10:12 PM
тАО04-17-2009 10:12 PM
Re: How to extend Logical Volume in RHEL AS 3
Check the following link which may help you:
http://www.softpanorama.org/Commercial_linuxes/logical_volume_manager.shtml
http://magazine.redhat.com/2008/07/16/tips-and-tricks-what-is-the-procedure-to-resize-an-lvm2-logical-volume-and-the-ext2-or-ext3-filesystem/
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2009 01:46 PM
тАО04-18-2009 01:46 PM
SolutionI don't think the 2.4.21 kernel originally supported on-line filesystem resizing. Maybe it has been added as a back-ported kernel patch in later errata kernels, but I would not assume that.
As Danesh already mentioned, the command-line tools for on-line extension are not available, which would seem to indicate that RedHat won't support on-line extension in RHEL 3 version.
If the kernel support for on-line filesystem extension is missing, even compiling the ext2online/resize2fs command-line tools yourself won't help. (I think I tried this once: if the kernel is too old, the tools will just report "kernel does not support on-line resizing" and exit.)
RedHat System Administration Guide for RHEL 3 refers to LVM-HOWTO, which offers this procedure:
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
After extending the LV using the lvextend command:
# umount /dev/myvg/somevol
# resize2fs /dev/myvg/somevol
# mount /dev/myvg/somevol
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:26 AM
тАО04-21-2009 11:26 AM
Re: How to extend Logical Volume in RHEL AS 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 03:18 AM
тАО04-22-2009 03:18 AM
Re: How to extend Logical Volume in RHEL AS 3
I found a very useful Red Hat article id:5502 which explained how to use e2fsadm to grow or extend a partition on an existing logical volume on RHEL AS 3.
This is how I extended /data1 partition by 6400 physical extents on RHEL AS 3 from root:-
# vgdisplay (check you have enough free physical extents)
# umount /data1 (unmount the filesystem in my /data1)
# e2fsadm -l +6400 /dev/volgroup/data1
The above command took quite a long time to complete so be patient
# vgdisplay (check again for physical and allocated extents)
# mount /data1 (remount the file system)
All done.
Thank you all for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 03:23 AM
тАО04-22-2009 03:23 AM