Transferência e atualização do diretório de dados do MongoDB

2

Acabei de transferir meu diretório de dados (do Mongo 1.6.5) para um novo servidor e instalei o Mongo 2.0 nele. Eu configurei o caminho do diretório de dados e fiz sudo server mongod restart .

Ele falhou e a saída do arquivo de log informa isso -

***** SERVER RESTARTED *****


Sun Oct  9 07:51:47 [initandlisten] MongoDB starting : pid=8224 port=27017 dbpath=/database/mongodb 64-bit host=domU-12-31-39-09-35-81
Sun Oct  9 07:51:47 [initandlisten] db version v2.0.0, pdfile version 4.5
Sun Oct  9 07:51:47 [initandlisten] git version: 695c67dff0ffc361b8568a13366f027caa406222
Sun Oct  9 07:51:47 [initandlisten] build info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
Sun Oct  9 07:51:47 [initandlisten] options: { auth: "true", config: "/etc/mongod.conf", dbpath: "/database/mongodb", fork: "true", logappend: "true", logpath: "/var/log/mongo/mongod.log", nojournal: "true" }
Sun Oct  9 07:51:47 [initandlisten] couldn't open /database/mongodb/local.ns errno:1 Operation not permitted
Sun Oct  9 07:51:47 [initandlisten] error couldn't open file /database/mongodb/local.ns terminating
Sun Oct  9 07:51:47 dbexit: 
Sun Oct  9 07:51:47 [initandlisten] shutdown: going to close listening sockets...
Sun Oct  9 07:51:47 [initandlisten] shutdown: going to flush diaglog...
Sun Oct  9 07:51:47 [initandlisten] shutdown: going to close sockets...
Sun Oct  9 07:51:47 [initandlisten] shutdown: waiting for fs preallocator...
Sun Oct  9 07:51:47 [initandlisten] shutdown: closing all files...
Sun Oct  9 07:51:47 [initandlisten] closeAllFiles() finished
Sun Oct  9 07:51:47 [initandlisten] shutdown: removing fs lock...
Sun Oct  9 07:51:47 dbexit: really exiting now

Já o executei com --upgrade uma vez.

    
por kapeels 09.10.2011 / 09:59

1 resposta

2

Tive que alterar o proprietário do arquivo para mongod e funcionou.

    
por 22.03.2012 / 17:56