LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2009, 06:38 AM   #1
nanda22
Member
 
Registered: Mar 2008
Posts: 58

Rep: Reputation: 15
/var full increase size in SuSE linux


in my system /var has come to 99%, it is /var/lib/mysql/ibdata1, whihc is huge in size. i've one more extra partition 'home1', where i've 50GB data free, i want to reduce that partition size and add to /var, how can i do this? Thank you in advance.
 
Old 05-04-2009, 07:04 AM   #2
jalal.hajigholamali
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Hi,

1)move one or some large files to /home
2)create symbolic links under /var points to /home/FILES..
 
Old 05-04-2009, 07:14 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,040

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
You could as well reduce the home partition a bit and create a new one, then mount it under /var/lib/mysql. Or even create a loopback file on /home and mount that with the loop option.

There's also the straight option (the risky one): resize home, move the partitions around a bit and add that space into /var using the gparted livecd or something similar.
 
Old 05-04-2009, 11:12 PM   #4
nanda22
Member
 
Registered: Mar 2008
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
You could as well reduce the home partition a bit and create a new one, then mount it under /var/lib/mysql. Or even create a loopback file on /home and mount that with the loop option.

There's also the straight option (the risky one): resize home, move the partitions around a bit and add that space into /var using the gparted livecd or something similar.
Thank you for your kind reply, can you be please bit more clear on how to create loopbacl file on /home and mounting it with loop option
 
Old 05-04-2009, 11:16 PM   #5
nanda22
Member
 
Registered: Mar 2008
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jalal.hajigholamali View Post
Hi,

1)move one or some large files to /home
2)create symbolic links under /var points to /home/FILES..
thank you jalal,
you mean to say in the following way i need to move?


mv /var/lib/mysql /home1
ln -s /var/lib/mysql /home1/mysql
 
Old 05-04-2009, 11:54 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,040

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Originally Posted by nanda22 View Post
Thank you for your kind reply, can you be please bit more clear on how to create loopbacl file on /home and mounting it with loop option
To create a file of a given size you can use dd, for example:

Code:
dd if=/dev/zero of=/home/myloopfile.img bs=1M count=1024
Will create a file full of zeros as big as 1024 MB. You then just format it:

Code:
mkfs.ext3 /home/myloopfile.img
And mount it:

Code:
mount -t ext3 -o loop /home/myloopfile.img /var/lib/mysql
Or wherever. Then you just need to add the relevant entry on the fstab file to make it permament, don't forget to include the "loop" option.
 
Old 05-06-2009, 10:43 PM   #7
nanda22
Member
 
Registered: Mar 2008
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
To create a file of a given size you can use dd, for example:

Code:
dd if=/dev/zero of=/home/myloopfile.img bs=1M count=1024
Will create a file full of zeros as big as 1024 MB. You then just format it:

Code:
mkfs.ext3 /home/myloopfile.img
And mount it:

Code:
mount -t ext3 -o loop /home/myloopfile.img /var/lib/mysql
Or wherever. Then you just need to add the relevant entry on the fstab file to make it permament, don't forget to include the "loop" option.
Thank you, it was very much helpful
 
Old 05-14-2009, 06:18 AM   #8
nanda22
Member
 
Registered: Mar 2008
Posts: 58

Original Poster
Rep: Reputation: 15
to increase partition size

I could successfully increase size of the partition, using Gparted livecd.
Thanks to you all
 
  


Reply

Tags
full, var


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 the ram size in Linux? shreeram.vk Linux - Newbie 4 04-02-2007 03:31 AM
How do i increase the size of the linux fifo's currently set to 4K in 2.6 kernel ? ayb Programming 2 06-25-2004 07:55 AM
Increase the size of linux partition sandy Linux - General 3 10-18-2002 02:53 AM
Installing a second HD: How do I increase the size of a Linux partition? entm Linux - General 3 06-01-2002 02:10 PM


All times are GMT -5. The time now is 07:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration