Re: [sipx-users] yum updates to mongo-2.0.7

2012-09-12 Thread Douglas Hubler
On Wed, Sep 12, 2012 at 9:25 AM, Tony Graziano  wrote:

> I did a move. I made sure the folder and file were set for mongodb:mongodb
> and the files were 0600 while the directory was 0755. The issue I had was
> not having js installed which is a lately introduced dependency.
>
> Would be nice if the directory were auto renamed/ownership before mongo
> updates somehow.
>

Interesting how this manifested.  CentOS 6 decided to add mongo, which is
great, now we don't have to build it.  Problem is CentOS team (really
fedora team) builds things slightly different then how 10gen builds it.
 10gen hasn't accepted Fedora's patches yet.  Because we started with
10gens that's how we hit this.

CentOS package team has a real bug that js is not installed, we easily have
work around already implemented so this is not an issue going forward.
Someone at CentOS will catch this soon I'm sure.

So for posterity, if you ever had to install mongo from 10gen's repo, it
would be possible by simply moving database as this thread describes.

There is another issue w/arbiter for those using that, I'm looking into
that now.
  http://track.sipfoundry.org/browse/XX-10433
but we plan to keep compatibility w/10gen's file structure as it's not that
difficult and may come in handy again some day.






>
> On Wed, Sep 12, 2012 at 9:13 AM, Douglas Hubler  wrote:
>
>>
>>
>> On Wed, Sep 12, 2012 at 8:05 AM, Tony Graziano <
>> tgrazi...@myitdepartment.net> wrote:
>>
>>> I did that, in my case I moved the files, not copied them which if the
>>> DB resides in mongodb directory we shouldn't have to leave a trail of files
>>> all over I would assume.
>>
>>
>> move is fine
>>
>>
>>> I get mongo dead but subsys locked now when restarting mongo. What gives?
>>
>>
>>  check permissions on /var/lib/mongodb and all files within
>>
>> [root@openuc lib]# ls -alh /var/lib/mongodb
>> total 3.8G
>> drwxr-xr-x  3 mongodb root4.0K Sep 12 05:35 .
>> drwxr-xr-x 28 rootroot4.0K Sep 12 08:54 ..
>> -rw---  1 mongodb mongodb  64M Sep 12 05:36 imdb.0
>> -rw---  1 mongodb mongodb 128M Aug  7 05:50 imdb.1
>> -rw---  1 mongodb mongodb  16M Sep 12 05:36 imdb.ns
>> drwxr-xr-x  2 mongodb mongodb 4.0K Sep 12 08:12 journal
>> ...
>>
>> Barring that, check for errors in
>>/var/log/mongodb/mongodb.log
>>
>>
>> ___
>> sipx-users mailing list
>> sipx-users@list.sipfoundry.org
>> List Archive: http://list.sipfoundry.org/archive/sipx-users/
>>
>
>
>
> --
> ~~
> Tony Graziano, Manager
> Telephone: 434.984.8430
> sip: tgrazi...@voice.myitdepartment.net
> Fax: 434.465.6833
> ~~
> Linked-In Profile:
> http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
> Ask about our Internet Fax services!
> ~~
>
> Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
> 2013!
>  
>
>
> LAN/Telephony/Security and Control Systems Helpdesk:
> Telephone: 434.984.8426
> sip: helpdesk@voice.myitdepartment.**net
>
> Helpdesk Customers: 
> http://myhelp.myitdepartment.**net
> Blog: http://blog.myitdepartment.net
>
> ___
> sipx-users mailing list
> sipx-users@list.sipfoundry.org
> List Archive: http://list.sipfoundry.org/archive/sipx-users/
>
___
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Re: [sipx-users] yum updates to mongo-2.0.7

2012-09-12 Thread Tony Graziano
I did a move. I made sure the folder and file were set for mongodb:mongodb
and the files were 0600 while the directory was 0755. The issue I had was
not having js installed which is a lately introduced dependency.

Would be nice if the directory were auto renamed/ownership before mongo
updates somehow.

On Wed, Sep 12, 2012 at 9:13 AM, Douglas Hubler  wrote:

>
>
> On Wed, Sep 12, 2012 at 8:05 AM, Tony Graziano <
> tgrazi...@myitdepartment.net> wrote:
>
>> I did that, in my case I moved the files, not copied them which if the DB
>> resides in mongodb directory we shouldn't have to leave a trail of files
>> all over I would assume.
>
>
> move is fine
>
>
>> I get mongo dead but subsys locked now when restarting mongo. What gives?
>
>
> check permissions on /var/lib/mongodb and all files within
>
> [root@openuc lib]# ls -alh /var/lib/mongodb
> total 3.8G
> drwxr-xr-x  3 mongodb root4.0K Sep 12 05:35 .
> drwxr-xr-x 28 rootroot4.0K Sep 12 08:54 ..
> -rw---  1 mongodb mongodb  64M Sep 12 05:36 imdb.0
> -rw---  1 mongodb mongodb 128M Aug  7 05:50 imdb.1
> -rw---  1 mongodb mongodb  16M Sep 12 05:36 imdb.ns
> drwxr-xr-x  2 mongodb mongodb 4.0K Sep 12 08:12 journal
> ...
>
> Barring that, check for errors in
>/var/log/mongodb/mongodb.log
>
>
> ___
> sipx-users mailing list
> sipx-users@list.sipfoundry.org
> List Archive: http://list.sipfoundry.org/archive/sipx-users/
>



-- 
~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: tgrazi...@voice.myitdepartment.net
Fax: 434.465.6833
~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
2013!


-- 
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: helpd...@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
___
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Re: [sipx-users] yum updates to mongo-2.0.7

2012-09-12 Thread Douglas Hubler
On Wed, Sep 12, 2012 at 8:05 AM, Tony Graziano  wrote:

> I did that, in my case I moved the files, not copied them which if the DB
> resides in mongodb directory we shouldn't have to leave a trail of files
> all over I would assume.


move is fine


> I get mongo dead but subsys locked now when restarting mongo. What gives?


check permissions on /var/lib/mongodb and all files within

[root@openuc lib]# ls -alh /var/lib/mongodb
total 3.8G
drwxr-xr-x  3 mongodb root4.0K Sep 12 05:35 .
drwxr-xr-x 28 rootroot4.0K Sep 12 08:54 ..
-rw---  1 mongodb mongodb  64M Sep 12 05:36 imdb.0
-rw---  1 mongodb mongodb 128M Aug  7 05:50 imdb.1
-rw---  1 mongodb mongodb  16M Sep 12 05:36 imdb.ns
drwxr-xr-x  2 mongodb mongodb 4.0K Sep 12 08:12 journal
...

Barring that, check for errors in
   /var/log/mongodb/mongodb.log
___
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Re: [sipx-users] yum updates to mongo-2.0.7

2012-09-12 Thread George Niculae
On Wed, Sep 12, 2012 at 3:05 PM, Tony Graziano  wrote:

> I did that, in my case I moved the files, not copied them which if the DB
> resides in mongodb directory we shouldn't have to leave a trail of files
> all over I would assume. I get mongo dead but subsys locked now when
> restarting mongo. What gives?
>
>
Can you check /var/log/mongodb/mongodb.log for errors?

George
___
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Re: [sipx-users] yum updates to mongo-2.0.7

2012-09-12 Thread Tony Graziano
I did that, in my case I moved the files, not copied them which if the DB
resides in mongodb directory we shouldn't have to leave a trail of files
all over I would assume. I get mongo dead but subsys locked now when
restarting mongo. What gives?

On Wed, Sep 12, 2012 at 7:34 AM, George Niculae  wrote:

> All,
>
> If you have 4.6 installed from RPMs / ISO and yum upgrade please mind
> that it will upgrade MongoDB as well (from 2.0.2 within sipxecs repo
> to 2.0.7 published in epel-release). While mongo 2.0.2 stores data in
> /var/lib/mongod the new one will store it in /var/lib/mongodb.
> So if you want to preserve data after yum update, you just have to
> copy files from /var/lib/mongod to /var/lib/mongodb and change
> permissions to mongodb:mongodb then restart mongo
>
> George
> ___
> sipx-users mailing list
> sipx-users@list.sipfoundry.org
> List Archive: http://list.sipfoundry.org/archive/sipx-users/
>



-- 
~~
Tony Graziano, Manager
Telephone: 434.984.8430
sip: tgrazi...@voice.myitdepartment.net
Fax: 434.465.6833
~~
Linked-In Profile:
http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet Fax services!
~~

Using or developing for sipXecs from SIPFoundry? Ask me about sipX-CoLab
2013!


-- 
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: helpd...@voice.myitdepartment.net

Helpdesk Customers: http://myhelp.myitdepartment.net
Blog: http://blog.myitdepartment.net
___
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users/