-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 I think I saw someone say that they has issues with "step take" when it was not a "root" node. Otherwise it looks good to me. The "step chooseleaf firstn 0 type chassis" says to pick one OSD from different chassis where 0 says to take as many is the replication factor. Since an OSD can only be in one server, they you are accomplishing what you want. -----BEGIN PGP SIGNATURE----- Version: Mailvelope v1.3.6 Comment: https://www.mailvelope.com wsFcBAEBCAAQBQJWzkEECRDmVDuy+mK58QAAPtgQAJc4AKklznB6tQBUOaF9 nRu1C7+CJMpdhWZLiJW96OwTCIQ4CDv0f86/W0tOEoMa5Swqk0kWj4CEaej3 65/MgHsk3BhW6qwKmOicI/y+bALPDuBXRTEUm97tuKjhVC19vpEsOqQhd7Ux TlqCoQuf+yBjr5sOGj/NYRC6NKCVjmP6k3kth1INyvDPfjmK2h0VUuUB/AGo 2sWPdYG0Ki3I5JjtO3Ja5yjsYWMbDNZq1hgEFCfhEmsQSzbCmzRvIPRfbAiv DmrRo7qy9M86tJKuucBuiUD0k4HmIEVR8b1f42w9Kfhc7FyhtkszyvCpo7cl 8yuAqgfQ5bgzRyHtPmvBCqxxNesca9T7jlLxn+Q6Wco2fwGbYvwb4HcF2v+I +FAZQEOLZ1h4gxhsZ5j6IgSIwwoxlswc0G4DL1PIYwmWaqUBH3OUQjZg4tL5 eN1/X2fl7vgEdVO3fh+sm8+HfDLkEwL67GDxPm09RraSCpT/jyX+cjLWav0z qbTT6GxG74YiZIgQ0/s95GUvYJem+W7XgfSuf7P5Hpk4ooKcI/H3H6WUjaby kIvNvdgK2+DFcfRisE0WObKESQO/9tVojpEp9zkEH6OAv3cNvdCcGaHRiFDl 7cD0IpScVkSFHVn4MfOeB4Z+qw9ow9SwGB75BYm98axxsRdNlPNiQzxRcb5z Tdal =iMwX -----END PGP SIGNATURE----- ---------------- Robert LeBlanc PGP Fingerprint 79A2 9CA4 6CC4 45DD A904 C70E E654 3BB2 FA62 B9F1 On Wed, Feb 24, 2016 at 4:09 AM, Vickey Singh <vickey.singh22693@xxxxxxxxx> wrote: > Hello Geeks > > Can someone please review and comment on my custom crush maps. I would > really appreciate your help > > > My setup : 1 Rack , 4 chassis , 3 storage nodes each chassis ( so total 12 > storage nodes ) , pool size = 3 > > What i want to achieve is: > - Survive chassis failures , even if i loose 2 complete chassis (containing > 3 nodes each) , data should not be lost > - The crush ruleset should store each copy on a unique chassis and host > > For example : > copy 1 ---> c1-node1 > copy 2 ---> c2-node3 > copy 3 ---> c4-node2 > > > > Here is my crushmap > ===================== > > chassis block_storage_chassis_4 { > id -17 # do not change unnecessarily > # weight weight 163.350 > alg straw > hash 0 # rjenkins1 > item c4-node1 weight 54.450 > item c4-node2 weight 54.450 > item c4-node3 weight 54.450 > > } > > chassis block_storage_chassis_3 { > id -16 # do not change unnecessarily > # weight weight 163.350 > alg straw > hash 0 # rjenkins1 > item c3-node1 weight 54.450 > item c3-node2 weight 54.450 > item c3-node3 weight 54.450 > > } > > chassis block_storage_chassis_2 { > id -15 # do not change unnecessarily > # weight weight 163.350 > alg straw > hash 0 # rjenkins1 > item c2-node1 weight 54.450 > item c2-node2 weight 54.450 > item c3-node3 weight 54.450 > > } > > chassis block_storage_chassis_1 { > id -14 # do not change unnecessarily > # weight 163.350 > alg straw > hash 0 # rjenkins1 > item c1-node1 weight 54.450 > item c1-node2 weight 54.450 > item c1-node3 weight 54.450 > > } > > rack block_storage_rack_1 { > id -10 # do not change unnecessarily > # weight 174.240 > alg straw > hash 0 # rjenkins1 > item block_storage_chassis_1 weight 163.350 > item block_storage_chassis_2 weight 163.350 > item block_storage_chassis_3 weight 163.350 > item block_storage_chassis_4 weight 163.350 > > } > > class block_storage { > id -6 # do not change unnecessarily > # weight 210.540 > alg straw > hash 0 # rjenkins1 > item block_storage_rack_1 weight 656.400 > } > > rule ruleset_block_storage { > ruleset 1 > type replicated > min_size 1 > max_size 10 > step take block_storage > step chooseleaf firstn 0 type chassis > step emit > } > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com