Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
to allocate collection on specified disk device
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gowest  
View profile  
 More options Oct 3 2012, 12:37 am
From: gowest <yukihiro01.nishik...@g.softbank.co.jp>
Date: Tue, 2 Oct 2012 21:37:56 -0700 (PDT)
Local: Wed, Oct 3 2012 12:37 am
Subject: to allocate collection on specified disk device

I have 2 disk devices for the database of MongoDB like this

$ df
Filesystem           Mount Position
/dev/xxx1            /
/dev/xxx2            /work

If I make the database and the collection, is it impossible like below?
And on each case how do I write the command.(for example createCollection)

1.To allocate each collection to each disk device on same database

database user
collecttion  data1 --->  /dev/xxx1
collecttion  data2 --->  /dev/xxx2

2.To allocate each collection and each databases to each disk device

database user1
collecttion  data1 --->  /dev/xxx1
database user2
collecttion  data2 --->  /dev/xxx2


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Hows  
View profile  
 More options Oct 4 2012, 2:45 am
From: David Hows <david.h...@10gen.com>
Date: Wed, 3 Oct 2012 23:45:09 -0700 (PDT)
Local: Thurs, Oct 4 2012 2:45 am
Subject: Re: to allocate collection on specified disk device

Hi Gowest,

MongoDB stores all its data under one folder which is controlled by the
DBPath variable.

http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo#Start...

There are no methods within mongo to direct the output for different
databases to different locations.

Hope that clears things up,

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gowest  
View profile  
 More options Oct 4 2012, 5:14 am
From: gowest <yukihiro01.nishik...@g.softbank.co.jp>
Date: Thu, 4 Oct 2012 02:14:23 -0700 (PDT)
Local: Thurs, Oct 4 2012 5:14 am
Subject: Re: to allocate collection on specified disk device

Hi David. Thanks a lot !!

>>There are no methods within mongo to direct the output for different

databases to different locations.

I got it.

But that link is very available.

I'll make effort to decrease the data amount, or re-build the database on a
larger space than current.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options Oct 4 2012, 6:10 am
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Thu, 4 Oct 2012 06:10:06 -0400
Local: Thurs, Oct 4 2012 6:10 am
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device

On Thu, Oct 4, 2012 at 2:45 AM, David Hows <david.h...@10gen.com> wrote:
> Hi Gowest,

> MongoDB stores all its data under one folder which is controlled by the
> DBPath variable.

> http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo#Start...

> There are no methods within mongo to direct the output for different
> databases to different locations.

You can specify the directoryperdb option to have each database in a
different directory, under dbpath. In this way you can store different
databases on difference devices using symlinks or mount points.

http://www.mongodb.org/display/DOCS/--directoryperdb

This allows you to do number 2.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gowest  
View profile  
 More options Oct 4 2012, 10:32 pm
From: gowest <yukihiro01.nishik...@g.softbank.co.jp>
Date: Thu, 4 Oct 2012 19:32:21 -0700 (PDT)
Local: Thurs, Oct 4 2012 10:32 pm
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device

Hi, Scott. Thanks a lot for an available massage.

I think it might be the way to do waht I want.

But, It is impposible to use the option when I create  the database.

Best Regards.

2012年10月4日木曜日 19時10分37秒 UTC+9 Scott Hernandez:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options Oct 4 2012, 11:08 pm
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Thu, 4 Oct 2012 23:08:02 -0400
Local: Thurs, Oct 4 2012 11:08 pm
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device
It is a mode you start the server in. You can create the db
directories and move the files over if you started without it. Just
create the directories with the same name as the database, and put all
the database files in there with that name.

On Thu, Oct 4, 2012 at 10:32 PM, gowest


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gowest  
View profile  
 More options Oct 8 2012, 10:47 pm
From: gowest <yukihiro01.nishik...@g.softbank.co.jp>
Date: Mon, 8 Oct 2012 19:47:45 -0700 (PDT)
Local: Mon, Oct 8 2012 10:47 pm
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device

Thanks, Scott.

I got it.

I’ll try that.

Best Regards.

2012年10月5日金曜日 12時08分41秒 UTC+9 Scott Hernandez:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gowest  
View profile  
 More options Oct 24 2012, 12:56 am
From: gowest <yukihiro01.nishik...@g.softbank.co.jp>
Date: Tue, 23 Oct 2012 21:56:35 -0700 (PDT)
Local: Wed, Oct 24 2012 12:56 am
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device

Hi, Scott.

Its been a while.

Now, I need your addvise.

I made 2 databases under same directory like this,
(under /var/db/mongo)

db1 col1.0 col1.1 col1.ns
db2 col2.0 col2.1 col2.ns

I want to move db2 database to other directory(/home/mongo).

So, I do the mongod command like this

/opt/mongodb/bin/mongod --dbpath /home/mongo/col2.0 --directoryperdb

But it didn't work well.

How do I write the command?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Vo  
View profile  
 More options Oct 24 2012, 2:12 am
From: Tom Vo <tom...@nexcel.vn>
Date: Wed, 24 Oct 2012 13:11:47 +0700
Local: Wed, Oct 24 2012 2:11 am
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device

Hi Gowest

I think you should make directory "db2" in "/home/mongo" . And you could
start your database by command: /opt/mongodb/bin/mongod --dbpath
/home/mongo/db2 --directoryperdb

Thanks.

On Wed, Oct 24, 2012 at 11:56 AM, gowest <

--

Thanks and Best Regards
--------------------------------------------------------------------------- ----------------------------------
*Vo Tan Hau* (*TOM*)
*Senior Database Administrator*
NEXCEL SOLUTIONS LTD
*SMS Tower,Lot 40, Quang Trung Software City, District 12, HCMC, Vietnam.*
*Tel*:+84-8-37154278 *-* *Fax*:+84-8-37154279 www.nexcel.vn*
Messenger *(*Skype+Yahoo+Live*): Vohau2002


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gowest  
View profile  
 More options Oct 25 2012, 1:04 am
From: gowest <yukihiro01.nishik...@g.softbank.co.jp>
Date: Wed, 24 Oct 2012 22:04:39 -0700 (PDT)
Local: Thurs, Oct 25 2012 1:04 am
Subject: Re: [mongodb-user] Re: to allocate collection on specified disk device

Hi Tom. Thank you for your reply.

At that example, db1 and db2 are not directories but databases.

If I make new database with dedault sessing by createCollection command,
New database is build under a default directory.

Can I make db2 under another directoty ?

Best Regard.

2012年10月24日水曜日 15時12分02秒 UTC+9 Tom Vo:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »