mogilefsd cannot see mogstored's running

j.ignacio.leon at gmail.com j.ignacio.leon at gmail.com
Thu Jul 14 14:29:40 PDT 2005


> try finding the line in mogstored that looks like this:
>         next unless $disk =~ /^$path/;
> and change it to
>         next unless $path =~ /^$disk/;
Tried that. Still getting same failure messages from mogilefsd.

> 
> > mogtool hangs at the file close...
> 
> what does
> $ mogtool  --debug inject /etc/motd /etc/motd
> output
> 

----mogtool output----
[root at centos2 tmp]# mogtool  --debug inject /etc/motd /etc/motd
MogileFS object: [MogileFS=ARRAY(0x9b0c888)]
$VAR1 = bless( [
                 bless( {
                          'domain' => 2,
                          'backend' => 3,
                          'root' => 1
                        }, 'pseudohash' ),
                 undef,
                 'test',
                 bless( [
                          bless( {
                                   'sock_cache' => 5,
                                   'hosts' => 1,
                                   'timeout' => 7,
                                   'pref_ip' => 6,
                                   'lasterr' => 3,
                                   'host_dead' => 2,
                                   'lasterrstr' => 4
                                 }, 'pseudohash' ),
                          [
                            '192.168.5.142:7001'
                          ],
                          {},
                          undef,
                          undef,
                          undef,
                          undef,
                          3
                        ], 'MogileFS::Backend' )
               ], 'MogileFS' );

file /etc/motd: 68b329da9893e34099c7d8ad5cb9c940, len = 1
Spawned child 26589 to deal with chunk number 1.
MogileFS object: [MogileFS=ARRAY(0x9c3a644)]
$VAR1 = bless( [
                 bless( {
                          'domain' => 2,
                          'backend' => 3,
                          'root' => 1
                        }, 'pseudohash' ),
                 undef,
                 'test',
                 bless( [
                          bless( {
                                   'sock_cache' => 5,
                                   'hosts' => 1,
                                   'timeout' => 7,
                                   'pref_ip' => 6,
                                   'lasterr' => 3,
                                   'host_dead' => 2,
                                   'lasterrstr' => 4
                                 }, 'pseudohash' ),
                          [
                            '192.168.5.142:7001'
                          ],
                          {},
                          undef,
                          undef,
                          undef,
                          undef,
                          3
                        ], 'MogileFS::Backend' )
               ], 'MogileFS' );

SOCK: Sock_192.168.5.142:7001, REQ: create_open
domain=test&class=normal&multi_d                            
est=1&key=/etc/motd
$VAR1 = undef;

RESPONSE: OK dev_count=2&devid_2=1&path_1=http://192.168.5.141:7500/dev2/0/000/0
                           
00/0000000078.fid&fid=78&devid_1=2&path_2=http://192.168.5.142:7500/dev1/0/000/0
                            00/0000000078.fid
$VAR1 = undef;

RETURN_VARS:
$VAR1 = {
          'dev_count' => '2',
          'devid_2' => '1',
          'path_1' => 'http://192.168.5.141:7500/dev2/0/000/000/0000000078.fid',
          'fid' => '78',
          'devid_1' => '2',
          'path_2' => 'http://192.168.5.142:7500/dev1/0/000/000/0000000078.fid'
        };
----------------end mogtool output--------------
Then it hangs.

> after running that, does the file in /var/mogdata/devN referenced in the
> tempfile table contain anything, or is its size 0?
> 
Both /var/mogdata/devN folders are empty. No files in them at all.

My mogstored.conf file looks like this:
SERVER max_connections = 10000
CREATE SERVICE mogstored
SET mogstored.role = web_server
SET mogstored.listen = 0.0.0.0:7500
SET mogstored.docroot = /var/mogdata/     
#the line above used to have #MOGSTORED_DOCROOT and would cause an error.
SET mogstored.dirindexing = 0
SET mogstored.enable_put = 1
SET mogstored.enable_delete = 1
SET mogstored.min_put_directory = 1
ENABLE mogstored


thanks for all the help Justin, I just can't seem to track this down.
J


More information about the mogilefs mailing list