- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Grow root boot disk in Red Hat Linux 5.2.
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
07-20-2010 10:09 AM
07-20-2010 10:09 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2010 12:10 PM
07-20-2010 12:10 PM
Re: Grow root boot disk in Red Hat Linux 5.2.
If you used LVM, easy.
Add the additional 10G as an extra disk/LUN.
pvcreate
vgextend
lvextend
resize2fs the filesystems
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
07-20-2010 12:19 PM
07-20-2010 12:19 PM
SolutionMethod 1:
Because this is a boot LUN, it should include a normal PC-style partition table, which contains at least one traditional partition (usually /boot) and at least one other partition with type 8e (Linux LVM).
If the system was shutdown while the storage team made the change, the system should automatically detect the new size of the boot LUN when it is started. Verify this with "fdisk -l", "cat /proc/partitions" or whatever.
Use cfdisk, fdisk, parted or your favorite partitioning tool to make a new partition out of the extra 10G of unallocated space, and set its type to 8e (Linux LVM). Since the LUN contains the root filesystem, it will obviously be in use and the partitioning tool may tell you to reboot; but try running the command "partprobe" instead. If the new partition becomes visible in /proc/partitions after that, you don't even have to reboot.
When you see the new partition in /proc/partitions, run pvcreate on it, then use the vgextend command to add it to the root VG. Now you can use the new capacity to extend any existing LV in the root VG, or to create new LVs, using standard LVM procedures.
---------
Method 2: (simpler, but somewhat more risky and might not be applicable if you have more than 2 partitions on the LUN)
Use the partitioning tool to extend the partition containing the PV to fill the new space.
(If you use fdisk, you will have to delete the PV partition, then re-add the partition in a larger size. Make sure the starting point of the partition remains exactly the same as before, and remember to set the partition type correctly. Double-check before saving the new partition table.)
Run partprobe. If it does not do the job, re-check the partition table a third time, and fix any errors. Then reboot. (If you made a mistake, your boot LUN may be corrupted and the system might be unable to boot. Better to know it sooner than later.)
Once the PV partition has been resized, run pvresize on it to make the LVM aware of the new size. The root VG should now have extra 10G of unallocated space. Now you can use the new capacity to extend any existing LV in the root VG, or to create new LVs, using standard LVM procedures.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2010 02:09 PM
07-20-2010 02:09 PM
Re: Grow root boot disk in Red Hat Linux 5.2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2010 12:01 AM
07-22-2010 12:01 AM
Re: Grow root boot disk in Red Hat Linux 5.2.
(you are obviously using LVM, but just wanted to mention this fact)