Re: Cannot mount ceph filesystem: error 5 (Input/Output error)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 7, 2011 at 10:00, Tommi Virtanen
<tommi.virtanen@xxxxxxxxxxxxx> wrote:
> def crush(pg):
>    all_osds = ['osd.0', 'osd.1', 'osd.2', ...]
>    result = []
>    # size is the number of copies; primary+replicas
>    while len(result) < size:
>        r = get_random_number()

Err I mean pseudorandom, based on pg. So basically "r = pg" there.

>        chosen = all_osds[ r % len(all_osds) ]
>        if chosen in result:
>            # osd can be picked only once
>            continue
>        result.append(chosen)
>    return result
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux