{"action":"created","issue":{"url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/issues/54","labels_url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/issues/54/comments","events_url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/issues/54/events","html_url":"https://github.com/quattor/ncm-lib-blockdevices/issues/54","id":103718842,"number":54,"title":"creating software raids on partitions of gpt disk triggers bug","user":{"login":"kwaegema","id":5611130,"avatar_url":"https://avatars.githubusercontent.com/u/5611130?v=3","gravatar_id":"","url":"https://api.github.com/users/kwaegema","html_url":"https://github.com/kwaegema","followers_url":"https://api.github.com/users/kwaegema/followers","following_url":"https://api.github.com/users/kwaegema/following{/other_user}","gists_url":"https://api.github.com/users/kwaegema/gists{/gist_id}","starred_url":"https://api.github.com/users/kwaegema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwaegema/subscriptions","organizations_url":"https://api.github.com/users/kwaegema/orgs","repos_url":"https://api.github.com/users/kwaegema/repos","events_url":"https://api.github.com/users/kwaegema/events{/privacy}","received_events_url":"https://api.github.com/users/kwaegema/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/milestones/9","html_url":"https://github.com/quattor/ncm-lib-blockdevices/milestones/15.10","labels_url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/milestones/9/labels","id":866899,"number":9,"title":"15.10","description":null,"creator":{"login":"jrha","id":323309,"avatar_url":"https://avatars.githubusercontent.com/u/323309?v=3","gravatar_id":"","url":"https://api.github.com/users/jrha","html_url":"https://github.com/jrha","followers_url":"https://api.github.com/users/jrha/followers","following_url":"https://api.github.com/users/jrha/following{/other_user}","gists_url":"https://api.github.com/users/jrha/gists{/gist_id}","starred_url":"https://api.github.com/users/jrha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrha/subscriptions","organizations_url":"https://api.github.com/users/jrha/orgs","repos_url":"https://api.github.com/users/jrha/repos","events_url":"https://api.github.com/users/jrha/events{/privacy}","received_events_url":"https://api.github.com/users/jrha/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2014-11-14T16:49:59Z","updated_at":"2015-09-14T11:58:35Z","due_on":"2015-10-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2015-08-28T13:26:17Z","updated_at":"2015-09-30T15:07:51Z","closed_at":null,"body":"On https://github.com/quattor/ncm-lib-blockdevices/blob/9344da85f7874d0b30815a9f992d9a2b477336c1/src/main/perl/MD.pm#L317\r\n\r\nfdisk is run for the devices of the raid array.\r\nNow, when these devices are large gpt partitions, something happens:\r\n\r\n AII: WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).\r\nAII: DOS partition table format can not be used on drives for volumes\r\nAII: larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID \r\nAII: partition table format (GPT).\r\n\r\nAII: Welcome to fdisk (util-linux 2.23.2).\r\nkernel: [  496.235254]  sdc: sdc1\r\nAII: Changes will remain in memory only, until you decide to write them.\r\nAII: Be careful before using the write command.\r\nAII: Command (m for help): Selected partition 1\r\nAII: Hex code (type L to list all codes): Changed type of partition 'GPT' to 'XENIX root'\r\n...\r\nFdisk lists only one partition. Because it sees only one partition, it selects the partition itself. So instead of giving the 'fd' hex code , it gives the partition number '2' to the command, and this changes the partition type to XENIX root. Then it writes the partition table with only one partition in it (so my other partitions are gone ) and a wrong partition type\r\n\r\nSo fdisk really should not be used for gpt partitions larger then 2G. I guess for these we should implement another way with parted ?"},"comment":{"url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/issues/comments/144440458","html_url":"https://github.com/quattor/ncm-lib-blockdevices/issues/54#issuecomment-144440458","issue_url":"https://api.github.com/repos/quattor/ncm-lib-blockdevices/issues/54","id":144440458,"user":{"login":"kwaegema","id":5611130,"avatar_url":"https://avatars.githubusercontent.com/u/5611130?v=3","gravatar_id":"","url":"https://api.github.com/users/kwaegema","html_url":"https://github.com/kwaegema","followers_url":"https://api.github.com/users/kwaegema/followers","following_url":"https://api.github.com/users/kwaegema/following{/other_user}","gists_url":"https://api.github.com/users/kwaegema/gists{/gist_id}","starred_url":"https://api.github.com/users/kwaegema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwaegema/subscriptions","organizations_url":"https://api.github.com/users/kwaegema/orgs","repos_url":"https://api.github.com/users/kwaegema/repos","events_url":"https://api.github.com/users/kwaegema/events{/privacy}","received_events_url":"https://api.github.com/users/kwaegema/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T15:07:51Z","updated_at":"2015-09-30T15:07:51Z","body":"fixed by #55 "}}