Device count and Replication
Brad Fitzpatrick
brad at danga.com
Fri Aug 12 09:08:06 PDT 2005
VItaliy,
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.
- Brad
On Fri, 12 Aug 2005, Vitaliy F. Scherbakov wrote:
> 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 mogilefs
mailing list