HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- extend partition
Operating System - Linux
1828629
Members
2173
Online
109983
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-02-2011 05:22 PM
05-02-2011 05:22 PM
extend partition
greetings folks,
Now i need to extend a partition on a VM running RHEL 5.5. Not sure on the approach of unmounting and using resize2fs. Following is what i need to grow.
/dev/sdb1 1 33418 268430053+ 83 Linux
Dmidecode output
===============
dmidecode | grep -i manu
Manufacturer: VMware, Inc.
Any thoughts ideas are really appreciated.
TIA
Now i need to extend a partition on a VM running RHEL 5.5. Not sure on the approach of unmounting and using resize2fs. Following is what i need to grow.
/dev/sdb1 1 33418 268430053+ 83 Linux
Dmidecode output
===============
dmidecode | grep -i manu
Manufacturer: VMware, Inc.
Any thoughts ideas are really appreciated.
TIA
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2011 09:56 PM
05-02-2011 09:56 PM
Re: extend partition
Before you can extend the filesystem, you must extend the partition it's in. Is /dev/sdb1 the only partition on this (virtual) disk, or does /dev/sdb[2-9] exist?
What is the output of these commands?
cat /proc/partitions |grep sdb
fdisk -l /dev/sdb
If you've already extended the /dev/sdb virtual device at the VMware host level, the system might already indicate the new size for /dev/sdb, while /dev/sdb1 still has its old size. If it doesn't, run "partprobe" and check again.
Since it doesn't seem like you're using LVM, if /dev/sdb has other partitions, you must move them so that /dev/sdb1 has free space immediately after it. This can be done with the "move" command of "parted", but requires that the partition being moved must be unmounted.
If /dev/sdb1 is the only partition on this (virtual) disk, you can extend it relatively easily. On RHEL 5, it should be possible to do this while the partition is still mounted. You can use the "resize" command of "parted", or even "fdisk" if you're very careful. After resizing the partition, you may have to run "partprobe" again to make the system detect the new size.
Once /proc/partitions indicates the new size for /dev/sdb1, you can use "resize2fs /dev/sdb1" to make the new space usable to the filesystem. You don't even have to unmount the filesystem for this: in RHEL 5, resizefs will simply say "filesystem is mounted, on-line resizing required" and do the right thing.
MK
What is the output of these commands?
cat /proc/partitions |grep sdb
fdisk -l /dev/sdb
If you've already extended the /dev/sdb virtual device at the VMware host level, the system might already indicate the new size for /dev/sdb, while /dev/sdb1 still has its old size. If it doesn't, run "partprobe" and check again.
Since it doesn't seem like you're using LVM, if /dev/sdb has other partitions, you must move them so that /dev/sdb1 has free space immediately after it. This can be done with the "move" command of "parted", but requires that the partition being moved must be unmounted.
If /dev/sdb1 is the only partition on this (virtual) disk, you can extend it relatively easily. On RHEL 5, it should be possible to do this while the partition is still mounted. You can use the "resize" command of "parted", or even "fdisk" if you're very careful. After resizing the partition, you may have to run "partprobe" again to make the system detect the new size.
Once /proc/partitions indicates the new size for /dev/sdb1, you can use "resize2fs /dev/sdb1" to make the new space usable to the filesystem. You don't even have to unmount the filesystem for this: in RHEL 5, resizefs will simply say "filesystem is mounted, on-line resizing required" and do the right thing.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP