- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to extend VG and LVs in RHEL
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
Forums
Discussions
Discussions
Discussions
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
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
08-03-2006 01:44 AM
08-03-2006 01:44 AM
Kindly help me......
"How can we extend VG and LVs in RHEL AS4 (Update3)".
I've tried "vgextend" and "lvextend". But this doesn't help me as I think I need to use "extendfs" as well. Please correct me and suggest me the steps as well.
Are there any complications in this and what parameters/steps do I need to keep in mind while doing that.
--
ATUL
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 01:55 AM
08-03-2006 01:55 AM
SolutionA volume group is extended onto a new disk.
I think examples will help here.
lets say i have a volume group that owns /dev/hdc1 the volume group is vg02
I want it to have a new disk I put in called /dev/hdd1
pvcreate /dev/dsk/hdd1
vgextend vg02 /dev/dsk/hdd1
Now I want to extend a filesystem called oradata form its current size 80 MB to 160 MB on the new disk
lvextend -L 160 /dev/vg02/oradata /dev/dsk/hdd1
Next extend the filesystem and we're done.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 02:09 AM
08-03-2006 02:09 AM
Re: How to extend VG and LVs in RHEL
umount /filesystem
resize2fs /filesystem
mount /filesystem
OR
ext2online -d -v /filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 02:40 AM
08-03-2006 02:40 AM
Re: How to extend VG and LVs in RHEL
After doing vgextend and lvextend, you have to run ext2online, for ex:
ext2online /dev/TestVG/TestLV
After I prefer to run e2fsck to Check the file system integrity after the resize.
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 03:23 AM
08-04-2006 03:23 AM
Re: How to extend VG and LVs in RHEL
If I summarize all the points then ----
1) pvcreate /dev/dsk/hdd1
2) vgextend vg02 /dev/dsk/hdd1
3) lvextend -L 160 /dev/vg02/oradata /dev/dsk/hdd1
4) umount /filesystem
5) resize2fs /filesystem
6) mount /filesystem
OR
6) ext2online /dev/TestVG/TestLV
Kindly correct me if I'm wrong.
--
ATUL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 03:47 AM
08-04-2006 03:47 AM
Re: How to extend VG and LVs in RHEL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 04:02 AM
08-04-2006 04:02 AM
Re: How to extend VG and LVs in RHEL
I will first try these steps and then if I'll be successful in what I wanna do...then I'll close this thread.
But thanks a lot for the kind help that I will continue receiving from this grrreat forum.
--
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2006 03:40 PM
08-13-2006 03:40 PM
Re: How to extend VG and LVs in RHEL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2006 02:46 AM
08-17-2006 02:46 AM
Re: How to extend VG and LVs in RHEL
Atul