linuxtricks
IS-IT--Management
Hello all,
One of my colleagues is trying to perform an 'alter table' command in mySQL which copies/stores files in [red]/tmp.[/red]
When he executes this command, it tends to write a very large file in /tmp - thus running out of disk space.
I have been brain storming for a way to make it so:
[red]/tmp is a link to /usr/tempstuff[/red]. So when something is written in /tmp - it actually gets written to /usr/tempstuff (which has plenty of free disk space).
I tried using the 'ln' command... but because /tmp exists already, it cannot overwrite the directory/mount point.
I started to think about 'temporarily' unmounting /tmp then creating a symbolic link so that anything attemping to write to a new /tmp would really go to /usr/tempstuff.
Will this work? Does the core of the system need to have /tmp mounted all the time. Will I break any system dependancies in doing this?
I apologize if I didn't explain this too well.
Many thanks for any suggestions/workarounds.
I HATE BEING A NEWBIE!
-grumpy smurf
One of my colleagues is trying to perform an 'alter table' command in mySQL which copies/stores files in [red]/tmp.[/red]
When he executes this command, it tends to write a very large file in /tmp - thus running out of disk space.
I have been brain storming for a way to make it so:
[red]/tmp is a link to /usr/tempstuff[/red]. So when something is written in /tmp - it actually gets written to /usr/tempstuff (which has plenty of free disk space).
I tried using the 'ln' command... but because /tmp exists already, it cannot overwrite the directory/mount point.
I started to think about 'temporarily' unmounting /tmp then creating a symbolic link so that anything attemping to write to a new /tmp would really go to /usr/tempstuff.
Will this work? Does the core of the system need to have /tmp mounted all the time. Will I break any system dependancies in doing this?
I apologize if I didn't explain this too well.
Many thanks for any suggestions/workarounds.
I HATE BEING A NEWBIE!
-grumpy smurf