> 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.
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
> > 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.
> > -- > > You received this message because you are subscribed to the Google > > Groups "mongodb-user" group. > > To post to this group, send email to mongod...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > mongodb-user...@googlegroups.com <javascript:> > > See also the IRC channel -- freenode.net#mongodb
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.
>> > 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.
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "mongodb-user" group.
>> > To post to this group, send email to mongod...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > mongodb-user...@googlegroups.com
>> > See also the IRC channel -- freenode.net#mongodb
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
> 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 > <yukihiro01...@g.softbank.co.jp <javascript:>> wrote: > > 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:
> >> On Thu, Oct 4, 2012 at 2:45 AM, David Hows <david...@10gen.com> wrote: > >> > Hi Gowest,
> >> > MongoDB stores all its data under one folder which is controlled by > the > >> > DBPath variable.
> >> > 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.
> >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "mongodb-user" group. > >> > To post to this group, send email to mongod...@googlegroups.com > >> > To unsubscribe from this group, send email to > >> > mongodb-user...@googlegroups.com > >> > See also the IRC channel -- freenode.net#mongodb
> > -- > > You received this message because you are subscribed to the Google > > Groups "mongodb-user" group. > > To post to this group, send email to mongod...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > mongodb-user...@googlegroups.com <javascript:> > > See also the IRC channel -- freenode.net#mongodb
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
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
--
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
> 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 <yukihiro01...@g.softbank.co.jp<javascript:>
> > wrote:
>> Hi, Scott.
>> Its been a while.
>> Now, I need your addvise.
>> I made 2 databases under same directory like this,
>> (under /var/db/mongo)
>> -- >> You received this message because you are subscribed to the Google
>> Groups "mongodb-user" group.
>> To post to this group, send email to mongod...@googlegroups.com<javascript:>
>> To unsubscribe from this group, send email to
>> mongodb-user...@googlegroups.com <javascript:>
>> See also the IRC channel -- freenode.net#mongodb
> --
> 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