More than one device on a host

Oezcan Acar acar at unitedinter.net
Fri May 11 22:21:09 UTC 2007


That was it :)

I mounted the second harddisk under /database/mogdata/dev2 and see:

tracker1:/home/bizimalem # mogadm --lib=/usr/lib/perl5/5.8.7/ --trackers=192.168.1.2:6001 check
Checking trackers...
  192.168.1.2:6001 ... OK

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

Checking devices...
  host device         size(G)    used(G)    free(G)   use%   ob state   I/O%
  ---- ------------ ---------- ---------- ---------- ------ ---------- -----
  [ 1] dev1           463.738      1.619    462.119   0.35%  writeable  20.0
  [ 1] dev2           465.737      0.031    465.706   0.01%  writeable   0.0
  ---- ------------ ---------- ---------- ---------- ------
             total:   929.475      1.650    927.825   0.18%


thanks again for your supprt Brad.


-------- Original-Nachricht --------
Datum: Fri, 11 May 2007 22:10:38 +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

> Each mogstored host can have its own docroot, but each device on that host
> has to be mounted right below that docroot.
> 
> If docroot is /var/mogdata (the default), then dev1 and dev2 need to be:
> 
>   /var/mogdata/dev1
>   /var/mogdata/dev2
> 
> If docroot is /database/mogdata, then dev1 and dev2 need to be:
> 
>   /database/mogdata/dev1
>   /database/mogdata/dev2
> 
> You can't do some weird mix like:
> 
>   /database/mogdata
>   /dev2/mogdata
> 
> There needs to be a common prefix, the --docroot parameter.
> 
> The recommended default values are STRONGLY recommended, because all the
> tools (like "mogautomount") work well together if they all use the
> defaults...
> 
> - Brad
> 
> 
> On Fri, 11 May 2007, Oezcan Acar wrote:
> 
> > tracker1:/home/bizimalem # mogadm --lib=/usr/lib/perl5/5.8.7/
> --trackers=192.168.1.2:6001 check
> > Checking trackers...
> >   192.168.1.2:6001 ... OK
> >
> > Checking hosts...
> >   [ 1] storage1 ... OK
> >
> > Checking devices...
> >   host device         size(G)    used(G)    free(G)   use%   ob state  
> I/O%
> >   ---- ------------ ---------- ---------- ---------- ------ ----------
> -----
> >   [ 1] dev1           463.738      1.619    462.119   0.35%  writeable 
> 20.0
> >   [ 1] dev2   REQUEST FAILURE
> >   ---- ------------ ---------- ---------- ---------- ------
> >              total:   463.738      1.619    462.119   0.35%
> > tracker1:/home/bizimalem #
> >
> >
> > dev2 is also writeable, the docroot for dev2 is in /dev2/mogdata
> (harddisk 2) . dev1 resides in /database/mogdata (harddisk 1)
> >
> >
> >
> >
> > -------- Original-Nachricht --------
> > Datum: Fri, 11 May 2007 21:31:32 +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 doesn't auto-detect or auto-add new disks at all.
> > >
> > > You have to TELL IT about new disks (and where they are) with mogadm.
> > >
> > > See... ?
> > >
> > > $ mogadm
> > > Usage:  (enter any command prefix, leaving off options, for further
> help)
> > >
> > >   mogadm check                     Check the state of the MogileFS
> world.
> > >   mogadm stats                     Show MogileFS system statistics.
> > >   mogadm host ...
> > >          host add ...              Add a host to MogileFS.
> > >          host delete ...           Delete a host.
> > >          host list                 List all hosts.
> > >          host mark ...             Change the status of a host.
> > > (equivalent to 'modify --status')
> > >          host modify ...           Modify a host's properties.
> > >   mogadm device ...
> > >          device add ...            Add a device to a host.
> > >          device list               List all devices, for each host.
> > >          device mark ...           Mark a device as
> > > {alive,dead,down,readonly}
> > >   mogadm domain ...
> > >          domain add ...            Add a domain (namespace)
> > >          domain delete ...         Delete a domain.
> > >          domain list               List all hosts.
> > >   mogadm class ...
> > >          class add ...             Add a file class to a domain.
> > >          class delete ...          Delete a file class from a domain.
> > >          class list                List all classes, for each domain.
> > >          class modify ...          Modify properties of a file class.
> > >   mogadm slave ...
> > >          slave add ...             Add a slave node for store usage
> > >          slave delete ...          Delete a slave node for store usage
> > >          slave list                List current store slave nodes.
> > >          slave modify ...          Modify a slave node for store usage
> > >   mogadm fsck ...
> > >          fsck clearlog             Clear the fsck log
> > >          fsck printlog             Display the fsck log
> > >          fsck reset ...            Reset fsck position back to the
> > > beginning
> > >          fsck start                Start (or resume) background fsck
> > >          fsck status               Show fsck status
> > >          fsck stop                 Stop (pause) background fsck
> > >          fsck taillog              Tail the fsck log
> > >   mogadm settings ...
> > >          settings list             List all server settings
> > >          settings set ...          Set server setting 'key' to
> 'value'.
> > >
> > >
> > > $ mogadm  device
> > > Help for 'device' command:
> > >  (enter any command prefix, leaving off options, for further help)
> > >
> > >   mogadm device add <hostname> <devid> [opts]        Add a device to a
> > > host.
> > >   mogadm device list                                 List all devices,
> for
> > > each host.
> > >   mogadm device mark <hostname> <devid> <status>     Mark a device as
> > > {alive,dead,down,readonly}
> > >
> > >
> > >
> > > On Fri, 11 May 2007, 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
> >
> >

-- 
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