[ceph-users] How does crush selects different osds using hash(pg) in diferent iterations

2015-03-21 Thread shylesh kumar
Hi , I was going through this simplified crush algorithm given in ceph website. 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 = hash(pg)* chosen = all_osds[ r %

Re: [ceph-users] Replacing a failed OSD disk drive (or replace XFS with BTRFS)

2015-03-21 Thread Robert LeBlanc
When you reformat the drive, it generates a new UUID so to Ceph it is as if it was a brand new drive. This does seem heavy handed, but ceph was designed for things to fail and it is not unusual to do things this way. Ceph is not RAID so you usually have to do some unthinking. You could probably

[ceph-users] Replacing a failed OSD disk drive (or replace XFS with BTRFS)

2015-03-21 Thread Datatone Lists
I have been experimenting with Ceph, and have some OSDs with drives containing XFS filesystems which I want to change to BTRFS. (I started with BTRFS, then started again from scratch with XFS [currently recommended] in order to eleminate that as a potential cause of some issues, now with further

Re: [ceph-users] PHP Rados failed in read operation if object size is large (say more than 10 MB )

2015-03-21 Thread Gaurang Vyas
Fixed https://github.com/gdvyas/phprados/blob/master/rados.c Please update main source if it looks correct. On Fri, Mar 20, 2015 at 1:11 PM, Gaurang Vyas gdv...@gmail.com wrote: If I run from command prompt it gives below error in $piece = rados_read($ioRados,

Re: [ceph-users] OSD + Flashcache + udev + Partition uuid

2015-03-21 Thread Andrei Mikhailovsky
In a long term use I also had some issues with flashcache and enhanceio. I've noticed frequent slow requests. Andrei - Original Message - From: Robert LeBlanc rob...@leblancnet.us To: Nick Fisk n...@fisk.me.uk Cc: ceph-users@lists.ceph.com Sent: Friday, 20 March, 2015 8:14:16 PM

Re: [ceph-users] OSD Forece Removal

2015-03-21 Thread Kobi Laredo
*ceph osd rm osd.#* should do the trick. *Kobi Laredo* *Cloud Systems Engineer* | (*408) 409-KOBI* On Fri, Mar 20, 2015 at 4:02 PM, Robert LeBlanc rob...@leblancnet.us wrote: Yes, at this point, I'd export the CRUSH, edit it and import it back in. What version are you running? Robert