More than one device on a host

Oezcan Acar acar at unitedinter.net
Fri May 11 21:31:00 UTC 2007


One again my config:

one storage node.

dev1 is on /database/mogdata/dev1

dev2 is on /dev2/mogdata/dev1


in mogstored.conf:
docroot=/database/mogdata

I think mogstored is able to find dev 1 because it is the docroot but not able to find dev2. Should it be like

docroot=/database/mogdata; /dev2/mogdata/dev1 ??????


Permisions are set, but dev2 is not bound!





-------- Original-Nachricht --------
Datum: Fri, 11 May 2007 14:26:23 -0700
Von: Nathan Schmidt <nathan at pbwiki.com>
An: Oezcan Acar <acar at unitedinter.net>
CC: mogilefs at lists.danga.com
Betreff: Re: More than one device on a host

> We've always had to:
> 
> mkdir /var/mogdata/dev1
> 
> and give it appropriate ownership for the mogstored process. You  
> probably need to add the dev2 (or whatever devid) path explicitly.  
> After that the mogstored should properly notice that it's there and  
> writable.
> 
> -n
> 
> On May 11, 2007, at 2:22 PM, Oezcan Acar wrote:
> 
> > That was actually my question: how detects mogilefs the device on  
> > the storage node? In my case  I added to mogstored.conf
> >
> > docroot=/database/mogdata
> >
> > and created with mkdir -p /database/mogdata
> >
> > After this operation device list output was:
> >
> > dev1: alive      1.618   462.119 463.737
> >
> > Mogilefs was able to detect the device on the storage node. After  
> > that I added the second device on the same storage node. Device  
> > list showing:
> >
> > dev1: alive      1.618   462.119 463.737
> > dev2: alive      0.000   0.000   0.000
> >
> > How mogilefs now knows on which disk dev2 resides?
> >
> > thanks.
> >
> >
> >
> >
> >
> >
> >
> > -------- Original-Nachricht --------
> > Datum: Fri, 11 May 2007 21:18:27 +0000 (UTC)
> > Von: Brad Fitzpatrick <brad at danga.com>
> > An: Oezcan Acar <acar at unitedinter.net>
> > CC: mogilefs at lists.danga.com
> > Betreff: Re: More than one device on a host
> >
> >> MogileFS keeps track of two states, for both devices and hosts:
> >>
> >>   1) what you told it ("alive")
> >>   2) what it actually observed.
> >>
> >> My guess is that dev2 isn't actually writable, so it's not being  
> >> used.
> >> Verify permissions and such?
> >>
> >> You can see what mogile thinks of your devices with one of the mogadm
> >> commands (in somewhat-but-not-too recent mogadm/mogilefsd...)
> >>
> >> - Brad
> >>
> >>
> >> On Fri, 11 May 2007, Oezcan Acar wrote:
> >>
> >>> Hi,
> >>>
> >>> I added 2 harddisk one one host to mogilefs.
> >>>
> >>> device list:
> >>>
> >>> storage1 [1]: alive
> >>>                    used(G) free(G) total(G)
> >>>   dev1: alive      1.618   462.119 463.737
> >>>   dev2: alive      0.000   0.000   0.000
> >>>
> >>>
> >>> mogstored.conf on storage1:
> >>>
> >>> httplisten=0.0.0.0:7500
> >>> mgmtlisten=0.0.0.0:7501
> >>> docroot=/database/mogdata
> >>>
> >>> How to activate dev2 on storage1?
> >>>
> >>> thanks.
> >>>
> >>>
> >>>
> >>> --
> >>> Mit freundlichen Grüßen
> >>>
> >>> ___________________________
> >>>
> >>> Özcan Acar, Dipl. Inf(FH)
> >>> Vorstand
> >>> Smart Web Business AG
> >>>
> >>> Im Niederfeld 8
> >>> 65462 Gustavsburg
> >>>
> >>> +49 171 57 33 66 5
> >>> acar at unitedinter.net
> >>>
> >>>
> >
> > -- 
> > Mit freundlichen Grüßen
> >
> > ___________________________
> >
> > Özcan Acar, Dipl. Inf(FH)
> > Vorstand
> > Smart Web Business AG
> >
> > Im Niederfeld 8
> > 65462 Gustavsburg
> >
> > +49 171 57 33 66 5
> > acar at unitedinter.net
> >

-- 
Mit freundlichen Grüßen

___________________________

Özcan Acar, Dipl. Inf(FH)
Vorstand
Smart Web Business AG

Im Niederfeld 8
65462 Gustavsburg

+49 171 57 33 66 5
acar at unitedinter.net



More information about the mogilefs mailing list