LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2008, 07:38 AM   #16
n03x3c
Member
 
Registered: Aug 2008
Location: India
Distribution: Fedora, RedHat
Posts: 101

Rep: Reputation: 17

Well buddy, these cmds will just use remaining free space of your hdd, they ain't going to screw any data of your HDD

pvcreate cmd make your hda/sda partition eligible for adding in volume group and vgextend just adds that partition in volume group and extends its total available space. Then you know what to do, just resize your partition cause you'll have free space available in your volume group then. :-)
 
Old 11-26-2008, 08:23 AM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Unless you solve the problem that filled the /var, extending it won't solve the problem for long.
You need to backup & delete some logfiles and either fix the process that's causing the problem or alter the logrotate settings (or both).
 
Old 11-27-2008, 12:13 AM   #18
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
Hello:

Just go back to my post. Instead of using /dev/hdb1, you are going to use /dev/sda5. That is the only difference. Also, I would also follow chrism01 advice. Otherwise, we will go back to square one. Check any crontab jobs that my be running or just create a crontab job to weekly remove file log files bigger than 2GB or a size of your choosing.

A script that I use to delete log files bigger thatn 2.5GB is as follows:

Quote:
find /var/log/mysql/logs -name '*.log' -type f -size +2500000k -exec /bin/rm -f'{}'\;
All of this is assuming that /dev/sda5 is a free partition.
Remember to backup your data. If you follow all the instructions, you are going to be safe, but backups do not hurt. Believe me, you can run the
Quote:
rm -rf
command by accident.
I hope this helps you.

Last edited by williebens; 07-24-2010 at 04:13 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to increase /var space arshzia Linux - Software 1 05-18-2008 06:31 AM
Missing 200megs of space in /var - where is it?? epoh Linux - Server 5 03-29-2008 04:44 PM
There is not enough space in folder var jorge_ivan Linux - General 3 07-21-2006 10:43 PM
no space left on /var BUT THERE IS!! branden_burger Linux - Software 5 05-31-2005 02:44 AM
Not enough space in /var/lib/mysql/ mtmacedo Linux - Software 1 10-22-2004 04:53 PM


All times are GMT -5. The time now is 03:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration