Re: remove PG

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

 



On Wed, 23 Feb 2011, H Chang wrote:
> Hi,
> 
> I was browsing PG management code in Ceph, and have one question.
> 
> It appears that an OSD could send a PG removal request to another OSD.
> The recipient OSD would then remove that particular PG from its pg_map.
> 
> I'd like to know under what circumstances an OSD would want to remove PGs.

If a PG moves from one OSD to another (due to, say, cluster expansion), 
there will be a copy of the PG data at the old location.  Once the new 
primary OSD has completed recovery (i.e. has the requisite number of 
copies of data in the correct locations) it will tell the OSDs with 
"stray" copies to remove the data.

Currently this code is very conservative; we only remove the PG once it is 
completely migrated/rereplicated to the new location.

sage
--
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