Re: Fwd: pools without rules

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

 



On Sun, 30 Oct 2016, John Calcote wrote:
> Hi all -
> 
> I posted this question to the ceph-user list a few days ago but no one
> responded, so I thought I'd send it to the devel list too:
> 
> What happens if I create a pool and associated it with a ruleset (say,
> set '2', for instance), and then I remove all the rules from set '2'?
> 
> Similarly, what happens if I add a single rule to ruleset 2 that's
> size-constrained to pools of size 2 - 3, but then create a replicated
> pool of size 4 using that ruleset?
> 
> Is there a fundamental rule that ceph uses (e.g., random selection) to
> choose osds on which to store the replicas?

1- Ceph mon's should prevent you from removing the rule.  If not, that's a 
usability bug.

2- If you somehow get to the point where there is no rule, the PGs 
map to an empty set of OSDs, and they'll probably just show up as 'stale' 
+ something or inactive until you fix the pool to point to a valid 
crush rule.

3- Most of the rule "set" logic has been deprecated/streamlined so that 
for new clusters and new rules there is only one rule per ruleset and the 
ids match up.

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