LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2013, 01:14 PM   #1
KhanT
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Rep: Reputation: Disabled
vnc log file increases


Dear All,

I'm facing issue in one of my linux servers... we connect to it via vnc 192.168.x.x:3 .. we have observed that vnc log file of this session took a lot of space in filesystem and we need to delete it after every 2 days and it shows free space after restarting of linux server. We need permanent solution of it .. is there any permanent remedy present?

Thanks,
 
Old 07-08-2013, 02:07 PM   #2
KhanT
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
plz help me

please help me... i can't restart everytime my linux server..there r dbs running....
 
Old 07-08-2013, 02:17 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by KhanT View Post
Dear All,
I'm facing issue in one of my linux servers... we connect to it via vnc 192.168.x.x:3 .. we have observed that vnc log file of this session took a lot of space in filesystem and we need to delete it after every 2 days and it shows free space after restarting of linux server. We need permanent solution of it .. is there any permanent remedy present?
...and....
Quote:
Originally Posted by KhanT
please help me... i can't restart everytime my linux server..there r dbs running....
First, this is a VOLUNTEER forum; we don't just wait for you to post, so coming back after LESS THAN AN HOUR, and asking for help again is fairly rude. Second, all you managed to do is remove your thread from the zero-reply list, making it LESS VISIBLE, and LESS LIKELY TO BE ANSWERED. And spell out your words, please.

Your problem lacks a good amount of detail to give any in-depth answer. You don't say what version/distro of Linux, what kind of server (hosted? local? VM server?), or why you're connecting to it over VNC. VNC isn't a good way to connect to servers, since most of what an admin does can be done via SSH...replicating an entire X window GUI login is fairly pointless.

You don't have to restart the server to restart VNC...just restart that ONE service. If you want to remove old log files, then you can use logrotate (that's what its for), or just write a simple script to cat /dev/null into that log file, and put it in CRON to run automatically. For a more in-depth answer, post useful details.
 
1 members found this post helpful.
Old 07-08-2013, 02:53 PM   #4
KhanT
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
...and....

First, this is a VOLUNTEER forum; we don't just wait for you to post, so coming back after LESS THAN AN HOUR, and asking for help again is fairly rude. Second, all you managed to do is remove your thread from the zero-reply list, making it LESS VISIBLE, and LESS LIKELY TO BE ANSWERED. And spell out your words, please.

Your problem lacks a good amount of detail to give any in-depth answer. You don't say what version/distro of Linux, what kind of server (hosted? local? VM server?), or why you're connecting to it over VNC. VNC isn't a good way to connect to servers, since most of what an admin does can be done via SSH...replicating an entire X window GUI login is fairly pointless.

You don't have to restart the server to restart VNC...just restart that ONE service. If you want to remove old log files, then you can use logrotate (that's what its for), or just write a simple script to cat /dev/null into that log file, and put it in CRON to run automatically. For a more in-depth answer, post useful details.
thanks - it's a Redhat linux server, locally hosted VM server but we experienced the same with a physical one..
thanks for the suggestion of script .. we will test it.. we didnt restart the server for VNC SERVICE.. we restart it after deleting huge log file size (in GBs) of vnc as free space didnt show up there untill we restart the server.
 
Old 07-08-2013, 03:04 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by KhanT View Post
thanks - it's a Redhat linux server,
Well, "Red Hat Linux" server doesn't tell us much. There's Red Hat ENTERPRISE, which has been around for a LONG time, with numerous versions, and there's the old Red Hat distro. Which do you have?
Quote:
locally hosted VM server but we experienced the same with a physical one..
Ok, so now what kind of virtual server? VMware? Virtual Box? What's the host OS that the VM guest is hosted under?
Quote:
thanks for the suggestion of script .. we will test it..
Actually, I suggested logrotate first, which is what you SHOULD use. A script isn't the best solution.
Quote:
we didnt restart the server for VNC SERVICE.. we restart it after deleting huge log file size (in GBs) of vnc as free space didnt show up there untill we restart the server.
No, the logs didn't shrink until you restarted the VNC service, which gets restarted when the server does. If you stop the service first, then clear the logs, you can restart it...same effect.

And again, WHY are you using VNC?? What's the point? Why can't you use SSH?
 
Old 07-08-2013, 03:21 PM   #6
KhanT
LQ Newbie
 
Registered: Jul 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
yeah- we should use logrotate ... i will be back after config it..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC Log hmutual2 Linux - Newbie 6 02-18-2011 02:14 PM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
setting file permissions for file /var/log/Xorg.0.log mfb Linux - Security 1 07-07-2009 01:41 PM
CPU % suddenly increases which affect the database log trups8 Programming 1 02-08-2009 10:34 AM
VNC server available without log on mteixeira Linux - Newbie 3 11-08-2005 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration