- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending root FS
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
Discussions
Discussions
Discussions
Forums
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
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
тАО09-06-2009 03:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 03:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 09:48 AM
тАО09-06-2009 09:48 AM
Re: Extending root FS
There are three ways to achieve what you want:
1. Clear the root file system by deleting unwanted files.
a) du -kx | sort -rn | head -20
Now look for file you don't require and delete or move them.
Also, keep a track of yout root files sys growth size....it should not growing heavily.
2. Add another disk to Vg00 and do a pvmove of lvol4 and the extend lvol3 because lvol1,2,3 needs to be contiguous (a hectic and time taking method).
#/usr/sbin/pvmove -n lvol4_path source_pv_path dest_pv_path (you do this only for lvol4 or even for lvol5 depends on space requirement)
Extend the root LV.
#lvextend -L 4000 /dev/vg00/lvol3
#fsadm -b 4000M /
For illustrative examples on this have a look on this link.
http://www.symmetricwebsites.com/articles/HP-UX/hpuxDynamicallyExtendSlashAndOrStand.php
3. Take ignite backup of VG00 and restore it, while restoring you can change the root fs size. This would be easy I suppose. But if you are going with this, take at least two good ignite backups. While booting from tape you can select "interactive" snd "advance" optons to set file sizes.
Hope this help !!
Regds..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 07:16 PM
тАО09-06-2009 07:16 PM
Re: Extending root FS
The reason root fills up is due to mistakes and junk files in the wrong directories. The first step in cleaning up the root directory is to sort the largest directories (not the largest files):
du -kx | sort -rn | head -20
The two largest directories are /sbin and /etc. The root user probably has / as the HOME directory -- not a good idea. Look for files in the / directory -- they don't belong there. Only directories should be in /.
/ (along with /var, /usr /tmp and /opt) will always have to be monitored to prevent full filesystems.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 08:00 PM
тАО09-06-2009 08:00 PM
Re: Extending root FS
no fsadm will not extend the root fs, the best option is take a ignite backup of vg00 with ignite and restore it.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 09:10 PM
тАО09-06-2009 09:10 PM
Re: Extending root FS
here are the steps :
1. Create an ignite tape
#make_recovery -iv
2. shutdown the system
3. remove the existing disk
4. Replace disk with higher capacity disk
5. Power on system, and boot thru tape
6. Select disk and start partitioning the new hard drive.
7. after the final reboot your system is ready for use with extended file system partition.
Hope this helps.
Cheers !!
Pratyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2009 06:02 AM
тАО09-26-2009 06:02 AM
Re: Extending root FS
Couldn't hold my mouth shut because, as you know for sure, the main reason old systems / filesystems fill up is not "... due to mistakes and junk files in the wrong directories."
It's because around 2004 HP considered 200MB / as having plenty of room. Nowadays the same good old HP fills the same / to the brim with /etc content.. Needless to say I'm disappointed and fighting the very same problem. SWA (Software Assistant) reported that "Sup-Tool-Mgr" needs upgrade because of security issue. This in turn needed EMS which with one flick turned root 99% full because it added ~35MB as /etc/opt/resmon. To add insult to the injury HP considers adding /etc/opt/resmon/log as best practice.
I remember that when the OnlineJFS expiry mess hit us, we had to (re)install newer version of it. This took good chunk of / as /etc/vx.. So it goes.