
Okay, i will try this option, if i was to consider moving var, do you think the file mysql.sock will be able to move, have you ever tried copying it? On Mon, Jun 4, 2012 at 1:03 PM, Anthony Lenya <tlensya@gmail.com> wrote:
hhmmm.... U should consider moving your database files to the other disk/partition. I would only consider moving /var as a very last resort so as to avoid breaking stuff.
Regards.
On Mon, Jun 4, 2012 at 12:53 PM, Felix mwai <flxxmw@gmail.com> wrote:
@anthony, i have restarted this server severally, it's quite funny the way the server fills the /var space, i store all the file uploads in mounted hard disks, my /var/www has only the web apps that never increase in size, the databases in /var/lib/mysql are not that big to consume about 1GB of space every 3-5hours, this is the problem am having.
On Mon, Jun 4, 2012 at 12:42 PM, Anthony Lenya <tlensya@gmail.com> wrote:
Felix,
In addition to the above suggestions, If you have done a clean up and u still cant seem to recover more space then your problem could be that you deleted a file which was open by some application. As a result the file (inode) was cleared from the file system but not released by the application. You may clear lots of files but not gain any additional space on the drive/partition. My best bet would be a system restart but if thats out of question then you may use a tool like lsof to check which apps have open files (even deleted ones) and restart the application in order to release the file.
my 2 cents
On Mon, Jun 4, 2012 at 12:11 PM, Felix mwai <flxxmw@gmail.com> wrote:
@bernard, my first option to solve this problem was to clean all the unnecessary data from the server including all the logs, the problem is that even after clean up the /var still remains full, i have actually done du -hs on almost all the folders in /var, their total space doesnt add up the total allocated to /var from the df -h results. @wash i am about to test on creating a symbolic links as you indicated, only that i don't know whether the mysql.sock will work with this setting.
On Mon, Jun 4, 2012 at 11:44 AM, Odhiambo Washington < odhiambo@gmail.com> wrote:
On Mon, Jun 4, 2012 at 11:16 AM, Felix mwai <flxxmw@gmail.com> wrote:
Thanks Benard, Do you think some services might stop working if i completely migrate the entire var to the external hard disk?
Drop to single user mode Mount the new filesystem on whatever mountpoint you wish (let's call it /bigstore) mkdir /bigstore/var cd / dump -L0af - /var | (cd /bigstore/var; restore -rf -) umount /var vi /etc/fstab and comment it out ln -s /bigstore/var /var reboot into multiuser mode
I hope Linux supports growfs so you could reclaim the partition you just umounted into /
On Mon, Jun 4, 2012 at 11:13 AM, Bernard Mwagiru <bmwagiru@gmail.com>wrote:
> I believe you can mount extra storage and soft link /var to it. > Or you can NFS share a network storage to /var. > > > ./bernard > > > > On Mon, Jun 4, 2012 at 11:10 AM, Felix mwai <flxxmw@gmail.com>wrote: > >> Hi Guys, >> One of my web server runs ubuntu server 10.10. I installed it on a >> 200GB harddisk and assigned /var 70GB but now seems to be full, anyone know >> whether i can mount a 1TB external harddisk on var and manage to extend the >> space to 1070GB, i have tried using LVM in vain. >> >> >> >> _______________________________________________ >> Skunkworks mailing list >> Skunkworks@lists.my.co.ke >> ------------ >> List info, subscribe/unsubscribe >> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks >> ------------ >> >> Skunkworks Rules >> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 >> ------------ >> Other services @ http://my.co.ke >> > > > _______________________________________________ > Skunkworks mailing list > Skunkworks@lists.my.co.ke > ------------ > List info, subscribe/unsubscribe > http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks > ------------ > > Skunkworks Rules > http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 > ------------ > Other services @ http://my.co.ke >
-- Regards Felix Mwai Software Developer. Mobile 0720453684.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards Felix Mwai Software Developer. Mobile 0720453684.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards Felix Mwai Software Developer. Mobile 0720453684.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards Felix Mwai Software Developer. Mobile 0720453684.