MogileFS on Debian Lenny

28 views
Skip to first unread message

rajan chandi

unread,
Nov 3, 2009, 12:03:58 AM11/3/09
to mog...@googlegroups.com
Hi All,

I am trying to set up a basic MogileFS and have trackers and storage server on the same machine.

When I try to check the stuff
mglfs1_srv:/var/mogdata# mogadm --lib=/usr/local/share/perl/5.10.0/ --trackers=127.0.0.1:6001 check
Checking trackers...
  127.0.0.1:6001 ... OK

Checking hosts...
  [ 1] mogilestorage ... OK

Checking devices...
  host device         size(G)    used(G)    free(G)   use%   ob state   I/O%
  ---- ------------ ---------- ---------- ---------- ------ ---------- -----
  [ 1] dev1   REQUEST FAILURE
  ---- ------------ ---------- ---------- ---------- ------
             total:     0.000      0.000      0.000   0.00%

The Device is not working properly.

Any ideas/pointers will help.

Thanks and regards
Rajan Chandi

Robin H. Johnson

unread,
Nov 3, 2009, 12:09:33 AM11/3/09
to mog...@googlegroups.com
On Tue, Nov 03, 2009 at 10:33:58AM +0530, rajan chandi wrote:
> Checking devices...
> host device size(G) used(G) free(G) use% ob state I/O%
> ---- ------------ ---------- ---------- ---------- ------ ---------- -----
> [ 1] dev1 REQUEST FAILURE
> ---- ------------ ---------- ---------- ---------- ------
> total: 0.000 0.000 0.000 0.00%
Can you connect manually to the mogstored? Both the HTTP and admin
ports? You do have a device at the dev1 point of mogstored that you
set up?

--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : rob...@gentoo.org
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85

rajan chandi

unread,
Nov 3, 2009, 12:18:25 AM11/3/09
to mog...@googlegroups.com
Yes, I did add the device myself using this.
mogadm --lib=/usr/local/share/perl/5.10.0/ --trackers=127.0.0.1:6001 device add mogilestorage 1

It does connect but seems to be doing nothing.
mglfs1_srv:/var/mogdata# telnet 127.0.0.1 7500
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
PUT /dev1/test HTTP/1.0
Connection closed by foreign host.


Thanks and regards
Rajan Chandi

Robin H. Johnson

unread,
Nov 3, 2009, 12:57:57 AM11/3/09
to mog...@googlegroups.com
On Tue, Nov 03, 2009 at 10:48:25AM +0530, rajan chandi wrote:
> Yes, I did add the device myself using this.
> mogadm --lib=/usr/local/share/perl/5.10.0/ --trackers=127.0.0.1:6001 device
> add mogilestorage 1
No, I mean the physical storage behind it. Does the usage file get
written? Usually at /var/mogdata/$DEV/usage.

That command only tells Mogile about the device.

rajan chandi

unread,
Nov 3, 2009, 1:05:38 AM11/3/09
to mog...@googlegroups.com
Not really. I don't see the usage file being created.

mglfs1_srv:/var/mogdata# ls -a
.  ..  dev1

mglfs1_srv:/var/mogdata/dev1# ls -a
.  ..

Can I write this manually? The mogstored and mogilefs processes are running but may be some issue!


Thanks and regards
Rajan Chandi

ash2k -

unread,
Nov 3, 2009, 1:11:35 AM11/3/09
to mog...@googlegroups.com
Those files should be written by mogstored - check directory permissions for user under which you run mogstored.

2009/11/3 rajan chandi <chandi...@gmail.com>

rajan chandi

unread,
Nov 3, 2009, 1:24:23 AM11/3/09
to mog...@googlegroups.com
I seem to have 3 users.
mglfs1_srv:/home# ls
mogile    mogilefsd  mogstored

Now, I executed:-
mglfs1_srv:/var# chmod -R 777 mogdata

restarted my machine. Is there any other way to restart mogstored?

This Fixed the error :)

mglfs1_srv:~# mogadm --trackers=127.0.0.1:6001 device list
mogilestorage [1]: alive
                   used(G) free(G) total(G)
  dev1: alive      1.129   185.732 186.861


Thanks and regards
Rajan Chandi



rajan chandi

unread,
Nov 3, 2009, 1:37:23 AM11/3/09
to mog...@googlegroups.com
It doesn't sound work all right!

mglfs1_srv:~# telnet 127.0.0.1 7500

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
PUT /dev1/test HTTP/1.0
Connection closed by foreign host.

Regards
Rajan

rajan chandi

unread,
Nov 3, 2009, 1:46:04 AM11/3/09
to mog...@googlegroups.com
I actually could add domain and a class...but it doesn't let me telnet and do HTTP PUT there!

mogadm --lib=/usr/local/share/perl/5.10.0 --trackers=127.0.0.1:6001 domain add hpdomain
mogadm --lib=/usr/local/share/perl/5.10.0 --trackers=127.0.0.1:6001 class add hpdomain testclass

May be I am missing something.

Thanks in advance.

Regards
Rajan

Robin H. Johnson

unread,
Nov 3, 2009, 2:30:27 AM11/3/09
to mog...@googlegroups.com
On Tue, Nov 03, 2009 at 11:54:23AM +0530, rajan chandi wrote:
> I seem to have 3 users.
> mglfs1_srv:/home# ls
> mogile mogilefsd mogstored
>
> Now, I executed:-
> mglfs1_srv:/var# chmod -R 777 mogdata
No, do NOT do this.
Find out what user mogstored is running as, and chown -R the mogdata
directory to it. Then lock it back down.
EG:
# chown -R mogstored /var/mogdata/
# chmod -R go-rwX /var/mogdata/

> restarted my machine. Is there any other way to restart mogstored?

I don't know what init scripts Debian packages with their Mogile.
Consult your package manager.

Robin H. Johnson

unread,
Nov 3, 2009, 2:31:35 AM11/3/09
to mog...@googlegroups.com
On Tue, Nov 03, 2009 at 12:07:23PM +0530, rajan chandi wrote:
> It doesn't sound work all right!
Try to use mogtool instead of telnet.
If that fails, go and poke at mogstored's debug logging.

I'm headed to bed, so no more responses from me for the next 10 hours.

rajan chandi

unread,
Nov 3, 2009, 2:42:46 AM11/3/09
to mog...@googlegroups.com
Thanks. I made it more secure. I will try out mogtool. Thanks again.

rajan chandi

unread,
Nov 3, 2009, 2:47:32 AM11/3/09
to mog...@googlegroups.com
Mogtool helped. Thanks a lot Robin.
Reply all
Reply to author
Forward
0 new messages