- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- resize the root filesystem
Operating System - Linux
1758539
Members
1735
Online
108872
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО04-01-2006 06:35 PM
тАО04-01-2006 06:35 PM
Hi All,
Is it possible to resize the root filesystem in linux?
Thanks and Regards,
Bond
Is it possible to resize the root filesystem in linux?
Thanks and Regards,
Bond
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2006 09:44 PM
тАО04-01-2006 09:44 PM
Solution
It depends on many things.
1.) Is your root filesystem on a LVM logical volume? If not, resizing will be very difficult. Some prefer setting up the root filesystem in a "traditional" non-LVM partition, to make it simpler to recover if something goes wrong.
2.) What is the type of the filesystem you're using? Some filesystem types can be extended in practice, some can in theory be extended but the tools needed for extending may not be available for your distribution.
3.) Since you're asking specifically about the root filesystem, I assume you mean "can it be resized _online_"? To do that, you need a kernel that has the online resize functionality: I understand that the 2.6 series of kernels has it by default.
If you're using a 2.4 series kernel, I think some patches are needed - but most makers of server-related distributions have probably already included these patches in their standard kernel packages.
On HP-UX, the boot sequence and the crash dump facility require that the /stand partition, the primary swap/dump area and the root filesystem are in the beginning of the boot disk, in the specific order and contiguous.
Linux has different (and more relaxed) requirements: the most important thing is that the chosen bootloader must be able to find and load the kernel (and the initrd image, if it is needed). If that can be arranged, any necessary tools to go on from there can be packed in the initrd image.
1.) Is your root filesystem on a LVM logical volume? If not, resizing will be very difficult. Some prefer setting up the root filesystem in a "traditional" non-LVM partition, to make it simpler to recover if something goes wrong.
2.) What is the type of the filesystem you're using? Some filesystem types can be extended in practice, some can in theory be extended but the tools needed for extending may not be available for your distribution.
3.) Since you're asking specifically about the root filesystem, I assume you mean "can it be resized _online_"? To do that, you need a kernel that has the online resize functionality: I understand that the 2.6 series of kernels has it by default.
If you're using a 2.4 series kernel, I think some patches are needed - but most makers of server-related distributions have probably already included these patches in their standard kernel packages.
On HP-UX, the boot sequence and the crash dump facility require that the /stand partition, the primary swap/dump area and the root filesystem are in the beginning of the boot disk, in the specific order and contiguous.
Linux has different (and more relaxed) requirements: the most important thing is that the chosen bootloader must be able to find and load the kernel (and the initrd image, if it is needed). If that can be arranged, any necessary tools to go on from there can be packed in the initrd image.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2006 05:52 PM
тАО04-02-2006 05:52 PM
Re: resize the root filesystem
Providin gyou have the sufficient amounts of free space, Powerquest's Partition Magic (now integrated into Norton Ghost) can do this for many Linux filesystems.
One other, slightly less elegant way is to tar/cpio your complete filesytem contents to another place, and then do a basic re-install with the required filesytem sizes, then copy the original files back and reboot.
One other, slightly less elegant way is to tar/cpio your complete filesytem contents to another place, and then do a basic re-install with the required filesytem sizes, then copy the original files back and reboot.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP