LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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: 18,811

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
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


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
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


All times are GMT -5. The time now is 12:25 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration