Actions
Bug #13058
closedCeph destroyed my MBR record when trying to convert it to GPT after initiating a new journal partition
Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
ceph-deploy
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Hi
I have my OS on sda and the OS use sda1-3 now I wanted to initiate a new OSD and ran with this command:
And I want to have journaling on the same disk as my OS as its SSD.
ceph-deploy osd prepare osd03:sdb:/dev/sda
... [osd03][WARNIN] WARNING:ceph-disk:OSD will not be hot-swappable if journal is not the same device as the osd data [osd03][WARNIN] DEBUG:ceph-disk:Creating journal partition num 4 size 5120 on /dev/sda [osd03][WARNIN] INFO:ceph-disk:Running command: /sbin/sgdisk --new=4:0:+5120M --change-name=4:ceph journal --partition-guid=4:80836633--8e7d-5cf560e53ef --typecode=4:45b09694f-b4b80ceff106 --mbrtogpt -- /dev/sda [osd03][DEBUG ] [osd03][DEBUG ] *************************************************************** [osd03][DEBUG ] Found invalid GPT and valid MBR; converting MBR to GPT format. [osd03][DEBUG ] *************************************************************** [osd03][DEBUG ] [osd03][DEBUG ] Warning: The kernel is still using the old partition table. [osd03][DEBUG ] The new table will be used at the next reboot. [osd03][DEBUG ] The operation has completed successfully. [osd03][WARNIN] INFO:ceph-disk:calling partx on prepared device /dev/sda [osd03][WARNIN] INFO:ceph-disk:re-reading known partitions will display errors [osd03][WARNIN] INFO:ceph-disk:Running command: /sbin/partx -a ...
as you see it tries to convert my MBR to GPT but fails and now the server wont boot, still it only considered this a warning.
Actions