From: "Owen Synge" Date: Thu, 7 Aug 2014 09:47:13 +0000 (+0200) Subject: cleaned up the patch X-Git-Tag: suse_cloud4~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ad76b13249a825a86587967d17c83bfa4589de64;p=ceph.git cleaned up the patch --- diff --git a/0017-Fix-disk-zap-sgdisk-invocation.patch b/0017-Fix-disk-zap-sgdisk-invocation.patch new file mode 100644 index 000000000000..744b6f082ef3 --- /dev/null +++ b/0017-Fix-disk-zap-sgdisk-invocation.patch @@ -0,0 +1,35 @@ +From: Owen Synge +Date: Thu, 7 Aug 2014 11:23:09 +0200 +Subject: [PATCH] Fix "disk zap" sgdisk invocation + +If the metadata on the disk is truly invalid, sgdisk would fail to zero +it in one go, because --mbrtogpt apparently tried to operate on the +metadata it read before executing --zap-all. + +Splitting this up into two separate invocations to first zap everything +and then clear it properly fixes this issue. + +Based on patch by Lars Marowsky-Bree in ceph-deploy. +Created by Vincent Untz +--- + src/ceph-disk | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/ceph-disk b/src/ceph-disk +index c67f2f3..1113135 100755 +--- a/src/ceph-disk ++++ b/src/ceph-disk +@@ -916,6 +916,13 @@ def zap(dev): + [ + 'sgdisk', + '--zap-all', ++ '--', ++ dev, ++ ], ++ ) ++ command_check_call( ++ [ ++ 'sgdisk', + '--clear', + '--mbrtogpt', + '--', diff --git a/0017-cephdisk-Preparing-a-block-device-a.patch b/0017-cephdisk-Preparing-a-block-device-a.patch deleted file mode 100644 index 5ee33c316128..000000000000 --- a/0017-cephdisk-Preparing-a-block-device-a.patch +++ /dev/null @@ -1,24 +0,0 @@ -From: Owen Synge -Date: Thu, 7 Aug 2014 10:21:18 +0200 -Subject: [PATCH] cephdisk:Preparing a block device add --mbrtogpt to sgdisk. - -Convert an MBR or BSD disklabel disk to a GPT disk. As a safety -measure, use of this option is required on MBR or BSD disklabel -disks if you intend to save your changes, in order to prevent -accidentally damaging such disks. ---- - src/ceph-disk | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/ceph-disk b/src/ceph-disk -index c67f2f3..0920b68 100755 ---- a/src/ceph-disk -+++ b/src/ceph-disk -@@ -1191,6 +1191,7 @@ def prepare_dev( - command_check_call( - [ - 'sgdisk', -+ '--mbrtogpt', - '--largest-new=1', - '--change-name=1:ceph data', - '--partition-guid=1:{osd_uuid}'.format( diff --git a/ceph.changes b/ceph.changes index 0d860623b266..99209fea6ba2 100644 --- a/ceph.changes +++ b/ceph.changes @@ -6,7 +6,7 @@ Thu Aug 7 10:37:32 UTC 2014 - osynge@suse.com + Accepted patch from Dirk Mueller - Install 95-ceph-osd-alt.rules on older suse versions. + Fix bnc#890736 - + Suggestion from Dirk Mueller + + Suggestion from Vincent Untz ------------------------------------------------------------------- Thu Aug 7 08:45:27 UTC 2014 - tbehrens@suse.com diff --git a/ceph.spec b/ceph.spec index 7d325737428c..bd9573e8f1ab 100644 --- a/ceph.spec +++ b/ceph.spec @@ -115,7 +115,7 @@ Patch0013: 0013-osd-OSD.cc-parse-lsb-release-data-v.patch Patch0014: 0014-osdmaptool-test-map-pgs.t-fix-escap.patch Patch0015: 0015-Convert-remaining-init-script-actio.patch Patch0016: 0016-Fix-bnc-890345-wrong-service-name-f.patch -Patch0017: 0017-cephdisk-Preparing-a-block-device-a.patch +Patch0017: 0017-Fix-disk-zap-sgdisk-invocation.patch # Please do not add patches manually here, run update_git.sh. #################################################################################