HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Disk druid
Operating System - Linux
1827781
Members
2644
Online
109969
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
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
06-23-2006 08:34 AM
06-23-2006 08:34 AM
When I installed RedHat EL4 I took the defaults as far as disk partitioning. I'm now in a situation where I have:
/dev/mapper/VolGroup00-LogVol00
67829336 2903260 61480524 5% /
/dev/cciss/c0d0p1 101086 19008 76859 20% /boot
none 517328 0 517328 0% /dev/shm
Rather than have a 68gb lvol mounted on / I'd like to break things up. I was thinking I'd leave 8gb for / and then create various other lvols and filesystems for Oracle.
I guess it's probably too late to get back into Disk Druid to set this up? Can I just lvreduce using something like this?
lvreduce -L -58 VolGroup00-LogVol00 ??
Thanks,Tim
/dev/mapper/VolGroup00-LogVol00
67829336 2903260 61480524 5% /
/dev/cciss/c0d0p1 101086 19008 76859 20% /boot
none 517328 0 517328 0% /dev/shm
Rather than have a 68gb lvol mounted on / I'd like to break things up. I was thinking I'd leave 8gb for / and then create various other lvols and filesystems for Oracle.
I guess it's probably too late to get back into Disk Druid to set this up? Can I just lvreduce using something like this?
lvreduce -L -58 VolGroup00-LogVol00 ??
Thanks,Tim
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2006 09:08 AM
06-23-2006 09:08 AM
Solution
Ouch. You've managed to create a thorny little problem.
Before reducing the logical volume with lvreduce, you must first shrink the filesystem. Otherwise you'll end up with a filesystem that is trying to store things beyond the end of its container (the logical volume) which will mean bad error messages and data loss when the system starts trying to access the "extra" space.
Looks like ext2online cannot shrink a filesystem online, only enlarge it. So you would need to umount the filesystem to shrink it with resize2fs... but we're talking about the root filesystem, which cannot really be unmounted while the system is running.
IF the RedHat ES4 installation CD's rescue mode has resize2fs available, you could boot in rescue mode (boot from CD and see the instructions for rescue mode in the boot prompt) and resize the root filesystem from there.
After successfully shrinking the filesystem with resize2fs, you can do the lvreduce while the system is running normally.
When re-sizing a combination of a filesystem and its logical volume, always be very careful that the filesystem size stays smaller or equal to the size of its logical volume at all times. So, when reducing size, you first shrink the filesystem and then the underlying logical volume. When enlarging, you grow the logical volume first.
There is a tool called "fsadm" in development which could greatly simplify filesystem/LV resizing operations, but it seems it isn't included in RHES4. Probably RedHat has judged it's not yet mature enough for production use...
Before reducing the logical volume with lvreduce, you must first shrink the filesystem. Otherwise you'll end up with a filesystem that is trying to store things beyond the end of its container (the logical volume) which will mean bad error messages and data loss when the system starts trying to access the "extra" space.
Looks like ext2online cannot shrink a filesystem online, only enlarge it. So you would need to umount the filesystem to shrink it with resize2fs... but we're talking about the root filesystem, which cannot really be unmounted while the system is running.
IF the RedHat ES4 installation CD's rescue mode has resize2fs available, you could boot in rescue mode (boot from CD and see the instructions for rescue mode in the boot prompt) and resize the root filesystem from there.
After successfully shrinking the filesystem with resize2fs, you can do the lvreduce while the system is running normally.
When re-sizing a combination of a filesystem and its logical volume, always be very careful that the filesystem size stays smaller or equal to the size of its logical volume at all times. So, when reducing size, you first shrink the filesystem and then the underlying logical volume. When enlarging, you grow the logical volume first.
There is a tool called "fsadm" in development which could greatly simplify filesystem/LV resizing operations, but it seems it isn't included in RHES4. Probably RedHat has judged it's not yet mature enough for production use...
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2006 09:16 AM
06-23-2006 09:16 AM
Re: Disk druid
Thanks Matti.
It's just a test machine so I think I'll cheat and create /oracle and others just as directories on lvol00.
This is good information to know for next time though! My experience is all with HPUX, very little with Linux.
I'd like to know if most folks bother creating separate logical volumes for the root filesystems. For example on HPUX by default you get lvol1-lvol8 with /stand, swap, /, /var,/usr,/home all mounted as separate filesystems. Seems like in Redhat it wants to put all the root filesystems under lvol00.
For next round seems like 8gb is plenty for the OS and I'll leave the rest unallocated for future use.
THanks, Tim
It's just a test machine so I think I'll cheat and create /oracle and others just as directories on lvol00.
This is good information to know for next time though! My experience is all with HPUX, very little with Linux.
I'd like to know if most folks bother creating separate logical volumes for the root filesystems. For example on HPUX by default you get lvol1-lvol8 with /stand, swap, /, /var,/usr,/home all mounted as separate filesystems. Seems like in Redhat it wants to put all the root filesystems under lvol00.
For next round seems like 8gb is plenty for the OS and I'll leave the rest unallocated for future use.
THanks, Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2006 05:59 AM
06-25-2006 05:59 AM
Re: Disk druid
Shalom Tim,
Since you have used lvm, you can resize, destory, rebuild, do anything you need with an LVM volume with the GUI that ships with the OS.
I know its not real systems administration, but it is a great time saver. LVM is almost as good as disk druid.
As far as I know, there is no way to use disk druid except at installation time.
SEP
Since you have used lvm, you can resize, destory, rebuild, do anything you need with an LVM volume with the GUI that ships with the OS.
I know its not real systems administration, but it is a great time saver. LVM is almost as good as disk druid.
As far as I know, there is no way to use disk druid except at installation time.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP