{"action":"opened","issue":{"url":"https://api.github.com/repos/sheepdog/sheepdog/issues/105","labels_url":"https://api.github.com/repos/sheepdog/sheepdog/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/sheepdog/sheepdog/issues/105/comments","events_url":"https://api.github.com/repos/sheepdog/sheepdog/issues/105/events","html_url":"https://github.com/sheepdog/sheepdog/issues/105","id":98513300,"number":105,"title":"Print warning when there are not enough zone for EC","user":{"login":"mitake","id":1173955,"avatar_url":"https://avatars.githubusercontent.com/u/1173955?v=3","gravatar_id":"","url":"https://api.github.com/users/mitake","html_url":"https://github.com/mitake","followers_url":"https://api.github.com/users/mitake/followers","following_url":"https://api.github.com/users/mitake/following{/other_user}","gists_url":"https://api.github.com/users/mitake/gists{/gist_id}","starred_url":"https://api.github.com/users/mitake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitake/subscriptions","organizations_url":"https://api.github.com/users/mitake/orgs","repos_url":"https://api.github.com/users/mitake/repos","events_url":"https://api.github.com/users/mitake/events{/privacy}","received_events_url":"https://api.github.com/users/mitake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-01T06:26:12Z","updated_at":"2015-08-01T06:26:12Z","closed_at":null,"body":"Hi, this is the warning I get if I try to format the cluster with -c 2:1 and only two nodes.\r\n\r\ndog cluster format -c 2:1\r\nNumber of copies (3) is larger than number of nodes (2).\r\nAre you sure you want to continue? [yes/no]: ^C\r\ndog node list\r\n  Id Host:Port V-Nodes Zone\r\n   0 192.168.2.44:7000 3 738371776\r\n   1 192.168.2.45:7000 3 755148992\r\ndog cluster format -c 2:1\r\nNumber of copies (3) is larger than number of nodes (2).\r\nAre you sure you want to continue? [yes/no]:\r\n\r\nI think the same logic shall apply when the zone number is not enough like in this example:\r\n\r\ndog node list\r\n  Id Host:Port V-Nodes Zone\r\n   0 192.168.2.44:7000 3 1\r\n   1 192.168.2.45:7000 3 1\r\n   2 192.168.2.46:7000 3 2\r\n   3 192.168.2.47:7000 3 2\r\ndog cluster format -c 2:1\r\nusing backend plain store\r\n\r\nIt should print the warning."}}