/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.
|
Hi,
1)move one or some large files to /home 2)create symbolic links under /var points to /home/FILES.. |
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. |
Quote:
|
Quote:
you mean to say in the following way i need to move? mv /var/lib/mysql /home1 ln -s /var/lib/mysql /home1/mysql |
Quote:
Code:
dd if=/dev/zero of=/home/myloopfile.img bs=1M count=1024 Code:
mkfs.ext3 /home/myloopfile.img Code:
mount -t ext3 -o loop /home/myloopfile.img /var/lib/mysql |
Quote:
|
to increase partition size
I could successfully increase size of the partition, using Gparted livecd.
Thanks to you all |
All times are GMT -5. The time now is 11:47 AM. |