Device count and Replication
Brad Fitzpatrick
brad at danga.com
Sun Aug 14 20:33:41 PDT 2005
(replying to list... I don't like personal emails.)
The easiest thing to do would be just add another virtual IP (eth0:1,
eth0:2, etc) to your machine for testing.
- Brad
On Mon, 15 Aug 2005, Vitaliy F. Scherbakov wrote:
> Brad Fitzpatrick wrote:
>
> >
> > I believe by default it'll only replicate to disks that are on different
> > hostids. Because all your devices are on the same hostid (1), it doesn't
> > replicate them.
> >
>
> Ok. Is it possible to replicate to devices on the same host id?
> I can't insert hosts with same `host_ip`, because of mysql says
> `Duplicate entry 'AA.BB.CCC.DD' for key 3`.
>
> Maybe I could modify, mogstored code? Have You any sugestions?
>
> >
> >>Hello, Brad,
> >>
> >>I set up MogileFS.
> >>I have 3 device (HDD).
> >>mounted as:
> >>/data/dev1
> >>/data/dev2
> >>/data/dev3
> >>I have records in my mysql `device`:
> >>| devid | hostid | status | mb_total | mb_used | mb_asof |
> >>+-------+--------+--------+----------+---------+---------+
> >>| 1 | 1 | alive | 291937 | NULL | NULL |
> >>| 2 | 1 | alive | 291937 | NULL | NULL |
> >>| 3 | 1 | alive | 291937 | NULL | NULL |
> >>I have `domain`:
> >>+------+-----------+
> >>| dmid | namespace |
> >>+------+-----------+
> >>| 1 | straight |
> >>
> >>I have `class`:
> >>+------+---------+-----------+-------------+
> >>| dmid | classid | classname | mindevcount |
> >>+------+---------+-----------+-------------+
> >>| 1 | 1 | straight | 3 |
> >>
> >>I try to save my local file using MogileFS.php.
> >>File saved, new record in table `file` appeares, but it saved only in
> >>one copy.
> >>ex. /data/dev2/0/000/00031233.fid
> >>
> >>What I do wrong?
> >>
> >>Best regards,
> >>VItaliy.
> >>
> >>
>
>
More information about the memcached
mailing list