- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to recreate /etc/rc.log file
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
10-21-2003 09:16 PM
10-21-2003 09:16 PM
how to recreate /etc/rc.log file
We suppressed, by mistake, the file /etc/rc.log. We don't arrive to recreate it.
Thanks for your help
Claire
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:23 PM
10-21-2003 09:23 PM
Re: how to recreate /etc/rc.log file
If you have lost it, you can' t recreate it until next reboot.
You can restore from backup if you have one.
There is probably a previous copy in /etc/rc.log.old, unless you've rm'd that also.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:24 PM
10-21-2003 09:24 PM
Re: how to recreate /etc/rc.log file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:25 PM
10-21-2003 09:25 PM
Re: how to recreate /etc/rc.log file
ELse
#cd /etc
#touch rc.log
#chown root:root /etc/rc.log
#chmod 644 /etc/rc.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:26 PM
10-21-2003 09:26 PM
Re: how to recreate /etc/rc.log file
Take a look at those parameters. If LIST_MODE is set to off this could be the case. Otherwise it is possible the rc.log file resides in /tmp.
Hope this solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:29 PM
10-21-2003 09:29 PM
Re: how to recreate /etc/rc.log file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 09:40 PM
10-21-2003 09:40 PM
Re: how to recreate /etc/rc.log file
Can you post the output of:
bdf /etc
ls -ld /etc/rc*
ls -l [your rc.log backup]
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 10:25 PM
10-21-2003 10:25 PM
Re: how to recreate /etc/rc.log file
Filesystem
kbytes used avail %
204800 175088 29560 86% /
ll rc.log
-rw-rw-rw- 1 root sys 47715803 Oct 22 10:48 rc.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 10:34 PM
10-21-2003 10:34 PM
Re: how to recreate /etc/rc.log file
On /etc you have only 29Mb free, which is not a huge amount, but possibly enough for normal needs.
However, your rc.log file, at 47Mb, is bigger than the free space on /etc, which is why you can't replace it.
In fact for an rc.log file, it's *HUGE*.
Here's mine:
-rw-r--r-- 1 root root 36524 Oct 5 16:34 /etc/rc.log
I can only surmise that part of your boot process creates huge amounts of log output, and I suggest this needs to be investigated and addressed. What is in that 47Mb file ??
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 11:37 PM
10-21-2003 11:37 PM
Re: how to recreate /etc/rc.log file
Or have you rebooted this morning ?
Please do a fuser on your rc.log file. I think you will see that one of your processes didn't redirect its output to its own logfile and is still using it.
You could also look at the bottom lines in the file (tail is a good command for this) to see what is being written to see what needs to be fixed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 11:50 PM
10-21-2003 11:50 PM
Re: how to recreate /etc/rc.log file
When a process has a file open, it can be removed from the directory so that it does not show, but no space will be reclaimed until all processes have closed the file. Since this process is probably in your startup script, it will always be running (and making the file massively large. You'll need to move this startup script to /tmp and reboot. Then read over the details about start/stop scripts and how to handle the output from start/stop scripts. Use the 'tail' command to look at the end of the 47meg file to see what is going wrong.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 12:28 AM
10-22-2003 12:28 AM