Can mogilefs replicate (move) file to new host?

Brad Fitzpatrick brad at danga.com
Thu Mar 22 18:11:52 UTC 2007


Btw, a "rebalance" feature is on my plate for things SixApart here wants.


On Thu, 22 Mar 2007, dormando wrote:

> Hey,
>
> *new* files you store into MogileFS will use all of your disks. When
> adding new drives, MogileFS will not automatically rebalance all of its
> files. This is normal :)
>
> If you really want to spread the files around, there are some options.
>
> -Dormando
>
> feihu wrote:
> > I hope u can understand me. My english is poor.
> >
> > I had  one host and five device. my class mindevcount=2. Select from DB,
> > I fount every file had been two devices. example:
> >
> > mysql> select * from file_on where fid=128238;
> > +--------+-------+
> > | fid    | devid |
> > +--------+-------+
> > | 128238 |     3 |
> > | 128238 |     4 |
> > +--------+-------+
> >
> > now, I add one new host and fieve device. and make them all alive.
> > can mogilefs auto replicate (move) file to the new host and device?
> > I found NOT.
> >
> > $ mogadm device list
> > fs_1_1 [1]: alive
> >                    used(G) free(G) total(G)
> >   dev1: dead       0.328   8.840   9.168     ==>> this system disk.So I mark it dead. none file be on it
> >   dev2: alive      3.363   290.047 293.410
> >   dev3: alive      3.341   290.069 293.410
> >   dev4: alive      3.329   290.081 293.410
> >   dev5: alive      3.361   290.049 293.410
> >   dev6: alive      3.354   290.057 293.410
> >
> > fs_1_2 [2]: alive
> >                    used(G) free(G) total(G)
> >  dev10: alive      0.187   293.224 293.410
> >  dev11: alive      0.187   293.224 293.410
> >  dev12: alive      0.187   293.224 293.410
> >   dev8: alive      0.187   293.224 293.410
> >   dev9: alive      0.187   293.224 293.410
>
>


More information about the mogilefs mailing list