install problems

Brian Kaino ganthirogani at hotmail.com
Fri Apr 21 01:29:52 UTC 2006


I hope someone can help me, I really would like to use MogileFS, and I think 
I'm close to getting it working, but the file just won't store on the 
storage node!!!

This is my setup - 192.168.40.152 is my tracker, .151 is my storage

Here's my test script:
#!/usr/bin/perl

use MogileFS;
my $mogfs = MogileFS->new(domain => 'testdomain',
                        hosts => [ '192.168.40.152:7001' ]);
die "unable to initialize MogileFS object.\n" unless $mogfs;
open(TEST, "test.txt") or die "Can't open file";
$mogfs->store_file("test","txt",TEST);

--------------------------------------

With DEBUG on, i get this from the script:

MogileFS object: [MogileFS=ARRAY(0x8e71b3c)]
$VAR1 = bless( [
                 bless( {
                          'readonly' => 4,
                          'domain' => 2,
                          'backend' => 3,
                          'root' => 1
                        }, 'pseudohash' ),
                 undef,
                 'testdomain',
                 bless( [
                          bless( {
                                   'sock_cache' => 5,
                                   'hosts' => 1,
                                   'timeout' => 7,
                                   'pref_ip' => 6,
                                   'lasterr' => 3,
                                   'host_dead' => 2,
                                   'lasterrstr' => 4
                                 }, 'pseudohash' ),
                          [
                            '192.168.40.152:7001'
                          ],
                          {},
                          undef,
                          undef,
                          undef,
                          undef,
                          3
                        ], 'MogileFS::Backend' ),
                 0
               ], 'MogileFS' );

SOCK: Sock_192.168.40.152:7001, REQ: create_open 
domain=testdomain&fid=0&class=txt&multi_dest=1&key=test
$VAR1 = undef;

RESPONSE: OK 
dev_count=1&path_1=http://192.168.40.151:7500/dev1/0/000/000/0000000029.fid&fid=29&devid_1=1
$VAR1 = undef;

RETURN_VARS:
$VAR1 = {
          'dev_count' => '1',
          'path_1' => 
'http://192.168.40.151:7500/dev1/0/000/000/0000000029.fid',
          'fid' => '29',
          'devid_1' => '1'
        };

-------------------------------------------------------

Looks like it goes in, but nothing is in the storage node in the 
/var/mogdata/dev1 directory except the usage file, and I don't see the 
0/000/000 directories either.

This is my output from the different mogadm reports

mogadm check
Checking hosts...
        [ 1] storage1 ... OK

Checking devices...
        host device            size(G)    used(G)    free(G)   use%
        ---- --------------- ---------- ---------- ---------- ------
        [ 1] dev1               19.040      1.749     17.291   9.19%
        ---- --------------- ---------- ---------- ---------- ------
                      total:    19.040      1.749     17.291   9.19

mogadm device list
storage1 [1]: alive
                   used(G) free(G) total(G)
  dev1: alive      1.748   17.291  19.03

mogadm host list
storage1 [1]: alive
  IP:       192.168.40.151:7500
  GET Port: 7500


mogadm domain list
domain               class                mindevcount
-------------------- -------------------- -------------
testdomain           default                   2
testdomain           txt                       2


-------------------------------------------

I'm using code from CVS that I pulled a couple days ago.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the mogilefs mailing list