LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-22-2011, 10:10 AM   #1
praveenhari
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Rep: Reputation: 0
interview question, Databases and disk space.


HI my /var/database/ directory is filled..!
Is there any way to redirect some databases to another directory ...! help me out plz.this question is asked by my trainer..!

Last edited by praveenhari; 06-22-2011 at 10:28 AM.
 
Old 06-22-2011, 10:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Nothing to do with Networking. Moved to Linux - Newbie.

We are also not here to do your homework for you. That's called cheating.
 
Old 06-22-2011, 10:44 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Your first mistake is not to mention what you're using. If you have sqlite databases, each database can be moved to wherever you want if the application that uses them is properly written.

Database systems like MySql work different and it depends on the table types; I don't know if you can move a few; maybe with symlinks? And maybe you can use partitioning.

To move all databases to a bigger disk, check where the startup scripts indicate that the databases are located and take it from there.
 
Old 06-22-2011, 12:11 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by Wim Sturkenboom View Post
Your first mistake is not to mention what you're using. If you have sqlite databases, each database can be moved to wherever you want if the application that uses them is properly written.

Database systems like MySql work different and it depends on the table types; I don't know if you can move a few; maybe with symlinks? And maybe you can use partitioning.

To move all databases to a bigger disk, check where the startup scripts indicate that the databases are located and take it from there.
But then seeing as this is a test of their knowledge, it's quite the non starter, huh?
 
Old 06-22-2011, 02:23 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by praveenhari View Post
HI my /var/database/ directory is filled..!
Is there any way to redirect some databases to another directory ...! help me out plz.this question is asked by my trainer..!
As you were asked before, SPELL OUT YOUR WORDS.

And the answer is "maybe"....since you don't provide any details, that's the best answer anyone can give you.
 
  


Reply



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
A question about showing disk space thomas2004ch Linux - Newbie 3 10-20-2009 03:30 AM
Disk space question! ntrudaglich Linux - Newbie 9 07-03-2007 05:26 AM
Disk Space Usage Question kaplan71 Linux - General 6 04-11-2005 02:22 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 PM.

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
Open Source Consulting | Domain Registration