Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In my server partions are like /=70gb, /boot=400Mb /var=30GB /home=20Gb swap=6gb, /opt=10gb /usr=10gb and all the partions are created my using lvm. with that we can increase r descrease the size.
Coming to my problem in my server am runnig NTP server. it should must be always on only which is installed in / partion. In / more than 40Gb space is free . Presently my /var is almost full and i need to increase the size of /var by reducing the / only.
other partions are also full. with out restarting the server and with out unmounting the / partion can we reduse it.
Please friends help me.
Thanks in advance.
You should check first why all your partitions are full and eliminate the cause or solve the problem if any. Have a look at this howto for an easy to understand guide on LVM and the commands/procedures uses.
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem.
First off: what is your distribution? Second: Why such a large '/var'? You do have 'logrotate' running? Your log files are filling '/var/log' (find out what's happening)? How many users on the server? '70GB' for '/'? It looks to me like you have not setup a good project design for the server.
Quote:
excerpt from 'man logrotate';
LOGROTATE(8) System Administrator's Manual LOGROTATE(8)
NAME
logrotate - rotates, compresses, and mails system logs
DESCRIPTION
logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation,
compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.
Normally, logrotate is run as a daily cron job. It will not modify a log multiple times in one day unless the criterium for that
log is based on the log's size and logrotate is being run multiple times each day, or unless the -f or -force option is used.
Any number of config files may be given on the command line. Later config files may override the options given in earlier files, so
the order in which the logrotate config files are listed is important. Normally, a single config file which includes any other
config files which are needed should be used. See below for more information on how to use the include directive to accomplish
this. If a directory is given on the command line, every file in that directory is used as a config file.
If no command line arguments are given, logrotate will print version and copyright information, along with a short usage summary.
If any errors occur while rotating logs, logrotate will exit with non-zero status.
Just a few links to aid you to gaining some understanding;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.