- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extending root fileystem
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
06-16-2008 12:56 PM
06-16-2008 12:56 PM
Extending root fileystem
I need to extend / filesystem by 100 MB on one of our HP-UX server having version 11.00.
The logical volume for it is /dev/vg00/lvol3 and it is mirrored. I have 1 GB free space in vg00.
I need proper commands to be executed for this as / filesystem is contiguous so we cannot just run lvextend and fsadm.
Thanks a lot for the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2008 01:23 PM
06-16-2008 01:23 PM
Re: Extending root fileystem
You can't extend root per say because it must be contiguous.
What you can do is one of the following:
relocate the logical volume next to root on the disk (see pvdisplay) and then attempt to extend. I don't recall if this is supported, but it would be hard in any event.
Or:
Make a make_tape_recovery or make_net_recovery with ignite, restore the system but intervene to change the filesystem size on root to a larger number.
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
06-16-2008 04:23 PM
06-16-2008 04:23 PM
Re: Extending root fileystem
# du -kx / | sort -rn | head
/etc and /sbin should be about 30MB. And /dev should be a few KB:
# du -kx /dev | sort -rn | head
Now if /dev is several MB, there is a bad file or files in /dev. Find them with:
find /dev -type f -exec ll {} \;
Then remove them -- no regular files in /dev.
Now the one exception for /etc staying about 30MB is for systems that have very large disk farms and lots of lvols and volume groups. The /etc/lvmconf could be very large and justify expanding / by using Ignite/UX.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 01:02 AM
06-17-2008 01:02 AM
Re: Extending root fileystem
If you have a test sytem, do it on it and once you satisfied with the result you can go for the production one.
For immediate solution, just follow Bill's suggestion to save the space.
You can also check whether you have any core files on the / file system.
find / -xdev -type f -name core
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 07:40 AM
06-17-2008 07:40 AM
Re: Extending root fileystem
I tried to do the same thing some days back but failed, see:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1239422
So ignite is the way to go, do not use lvextend/pvmove and fsadm(I am still not sure what went wrong in my case)
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 07:56 AM
06-17-2008 07:56 AM
Re: Extending root fileystem
Actually Bill's way is the best way.
It should be remembered there is absolutely no reason to store files in the root filesystem. Thats not what its meant for.
I've gotten into the habit of having at least a CD-ROM worth of free space on root because people have a habit of dumping them on the root fs and killing the system. Thats actually a waste of disk space. The HP-UX install program, Ignite provides more than enough space to operate an HP-UX system with patches and updates and such for many years without extending root.
The best path is to clean up root and look for the old "hidden file" trick where files are hidden in the folders that file systems mount on and taking up space but are invisible due to the file system sitting on top of the location.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com