ceph的手工分区

ceph的手工磁盘格式化,10.2中。采用了udev的方式,所以typecode的id不能出错
sgdisk –zap-all /dev/$DEV
sgdisk –clear –mbrtogpt — /dev/$DEV
journal_uuid=$(uuidgen)
sgdisk –new=’2:0:5120M’ –change-name=2:’ceph journal’ –partition-guid=${journal_uuid} –typecode=2:45b0969e-9b03-4f30-b4c6-b4b80ceff106 –mbrtogpt — /dev/$DEV
osd_uuid=$(uuidgen)
sgdisk –largest-new=1 –change-name=1:”ceph data” –partition-guid=1:${osd_uuid}4–typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d — /dev/$DEV

#partx -a /dev/$DEV
partprobe /dev/$DEV

mkfs.xfs /dev/${DEV}1 -f