- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: increasing root file system
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
12-08-2003 11:31 AM
12-08-2003 11:31 AM
increasing root file system
* Performing task "Unmount a file system on a logical volume.": ^ ³
³ ³ Unmounting the file system on /dev/vg00/lvol3. ³
³³*Executing the following ommand: ³
³ ³ /usr/sbin/umount /dev/vg00/lvol3 ³
³ ³ * Command completed with exit status 1. ³
³ ³ ERROR umount: cannot unmount / : Device busy
i guess the problem is that
1) i dont have online jfs
2) because it is root, i need to g
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 11:36 AM
12-08-2003 11:36 AM
Re: increasing root file system
# /opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/?mn
You can the latest ignite version from here, it is free.
http://www.software.hp.com/products/IUX/download.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 11:40 AM
12-08-2003 11:40 AM
Re: increasing root file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 11:40 AM
12-08-2003 11:40 AM
Re: increasing root file system
It is not easy to increase the root filesystem (/dev/vg00/lvol3) even if you had OnlineJFS. Because root LV should be contiguous, you need to have free space after the end of /dev/vg00/lvol3 which you probably wont have since you might have created other LV just after that. So there are to options to increase root LV.
1. Move the other LV which is just after lvol3 say lvol4 to another free place. and then extend the root by booting the system in single user mode.
2. Take a Ignite backup of you system and then boot through the make_recovey tape and in advanced options change the layout, which allows you to choose different filesystem sizes compared to what you had originally.
I hope this makes clear, if not let me know
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 11:43 AM
12-08-2003 11:43 AM
Re: increasing root file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 11:46 AM
12-08-2003 11:46 AM
Re: increasing root file system
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=86340
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=242644
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=112663
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=112393
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 11:54 AM
12-08-2003 11:54 AM
Re: increasing root file system
Thanks for correcting me
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 12:09 PM
12-08-2003 12:09 PM
Re: increasing root file system
-rw------- 1 root sys 8615436 Sep 25 2002 ./dev/vg00/core
---------- 1 root root 0 Dec 9 09:57 core
1) i just trim the core file. basically, i change the mode of the file to 000 so that it is not writable. but the system can still write to that file as evidenced by the timestamp. what is wrong?
2) also, can i trim the ./dev/vg00/core without causing any hapzard to the system?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 12:16 PM
12-08-2003 12:16 PM
Re: increasing root file system
# fuser /core
This should give you the process(es) to investigate.
Yes you can safely remove /dev/vg00/core
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 12:29 PM
12-08-2003 12:29 PM
Re: increasing root file system
>fuser /core
/core:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 12:45 PM
12-08-2003 12:45 PM
Re: increasing root file system
file core
The zero-length file is of no value, remove it. The core file in /dev/vg00 does not belong there either. Use the file command so you know the program that is not working properly. Then remove the core file. The only value for a core file is when you have the source code for the program, knowledgeable programmers and compiler+tools to find the bad code and fix it.
To avoid core files inthe future, put this in /etc/profile:
ulimit -Sc 0
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2003 01:37 PM
12-08-2003 01:37 PM
Re: increasing root file system
currently, my ulimit -a gives "coredump(blocks) 4194303"
my shell is /sbin/sh. so in this case, /etc/profile is sourced. if its other shells, it will not be sourced?
all i need is to add this "ulimit -Sc 0" to my /etc/profile so that my core file will not grow?
thanks for your advise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:05 AM
12-09-2003 02:05 AM
Re: increasing root file system
file core
Then post the results and we can help you find the bad program and perhaps a fix for it. As far as other shells, if you loaded bash on your system and some users are running that, it will also use /etc/profile. For csh users, the file is /etc/csh.login and of course the syntax is quite different. Any other shells, you'll have to read the man page for it to see how profiles are setup.
AS far as the current core file that seems to grow, remove the corefile after running the file command on it. Then make sure /dev and /dev/vg00 both have 755 permissions. If either directory has 777 permissions, you have a huge security problem..change /dev to 555 and bin:bin, and vg00 to 755 root:root. And if /dev is wrong, there may be many other bad directory and file permissions throughout your system. Type the command: umask as root and if it says 00 then you have a lot of work to do. First, put umask 022 in /etc/profile. Then have an HP-UX security specialist look over your system. You can do it yourself but it will take a while and you'll need to ask a lot of questions. A quick way to see how bad things are is to run this report:
find / -perm -002 \( type f -o -type d \) -exec ll -d {} \;
Now you can ignore man page directories as these must be writable by all, and also ignore /var/tmp and /tmp for the same reason. The rest will require a knowledgeble decision on what the correct permissions should be.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:22 PM
12-09-2003 02:22 PM
Re: increasing root file system
and the situation happened on tuesday, since from friday, there are 4 days of interval.. and it grew beyond what it can contain.. and hence full..
i had to go to
gsp> rs
at the risk of my oracle, application to get it restart.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 12:27 AM
12-10-2003 12:27 AM
Re: increasing root file system
cat /dev/null > /etc/rc.log
and assuming that rc.log is dozens of megabytes in size, the root filesystem will be closer to normal. Now find out what other problems there are in the / filesystem:
du -kx / | sort -rn | more
This should produce a list something like this:
71408 /
32984 /sbin
32208 /etc
14736 /etc/vx
13448 /etc/opt
12536 /etc/vx/type
8056 /etc/opt/resmon
6368 /etc/opt/resmon/lbin
If /sbin and /etc are *NOT* the first directories after /, then those directories are misplaced and must be moved.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 01:41 AM
12-10-2003 01:41 AM
Re: increasing root file system
ln -s logfile /emptyfilesystem/file2
to create a link from a filesystem with space to files or directories in the root dir, like some of your log files.
This way, if they grow quickly, they won't fill up root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 12:09 PM
12-10-2003 12:09 PM
Re: increasing root file system
>> yup. i agree. but i only knew this way to handle this root file system full issue
Once you know the reason for the root filesystem being full, you can zero out the file with:
cat /dev/null > /etc/rc.log
>> we have to do this manually, right?
du -kx / | sort -rn | more
>> gives the below
88111 /
41917 /etc
18690 /sbin
You can consider using some soft links
ln -s logfile /emptyfilesystem/file2
to create a link from a filesystem with space to files or directories in the root dir, like some of your log files.
This way, if they grow quickly, they won't fill up root.
>> i think this is fine , right?
basically, now i do manually housekeeping.. of /etc/rc.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 01:00 PM
12-10-2003 01:00 PM
Re: increasing root file system
A few points that may help with understanding the / filesystem.
The / fileystem on 11.00 doesn't need to be more than around 120-130MB. If your / fileystem is around this size there should be no need to increase it.
Secondly there should only be a few log files in / fileystem (under the /etc directory) & these should be very small in size (eg /etc/shutdownlog & /etc/rc.log).
The rc.log file is used at system boot & that's it. Nothing else should ever write to this log. Therefore once the system is up the size remains static. As a result you shouldn't need to do regular maintenance on this log file. There shouldn't be a need to link log files from the / filesystem. Almost all log files should be in /var.
As Bill already mentioned I'd look very carefully at /etc/rc.log & ensure that only startup scripts write to this log. As I said once the system has booted this log should never be written to.
The / fileystem should be almost static in size and only fills up if some process(es) accidentally writes to it or core files are dumped there. From your du output, your / filesystem look pretty healthy at about 88MB.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 02:19 PM
12-10-2003 02:19 PM
Re: increasing root file system
i have monitor for a few days. and this file keeps growing each day.
-rw-r--r-- 1 root root 33476148 Dec 11 02:01 ./etc/rc.log
and yes , u are right, some applications are writing to this log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 02:28 PM
12-10-2003 02:28 PM
Re: increasing root file system
Can you identify the script/application?
What is being written? This should give you a clue as to the application/script.
Possibly a root cronjob?
Check root cron jobs that run around this time & see if anything is there.
Once you fix this problem you'll be fine.
33MB for this file is way too big - should be around 100K or so.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 11:39 PM
12-10-2003 11:39 PM
Re: increasing root file system
ll -t /sbin/init.d | more
find /sbin/rc?.d -type f
In the first listing, the items at the top of the listing were changed most recently. In the second listing, there should be no entries at all since these directories should have only symlinks. And of course, the information wastefully logged into rc.log should be examined...it will tell you the program that is not working properly. My guess is that someone has added a startup script that was not designed correctly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 04:14 PM
12-11-2003 04:14 PM
Re: increasing root file system
gives the files with 2002 entries at the top
find /sbin/rc?.d -type f
gives no entries
my proposed solution is to have a crontab entry that housekeep this file. what do u think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 04:47 PM
12-11-2003 04:47 PM
Re: increasing root file system
As I said before nothing should be writing to /etc/rc.log after system boot.
If this file is growing on a daily basis then it is not a startup script that is responsible.
I'd advise fixing the problem as opposed to housekeeping on this file.
What is being written to the file?
Find the application/script that is writing to /etc/rc.log and stop it from writing to it.
Cheers
Con