4e5e28fff5
The current bluestore disk label naming is inconsistent with the filestore. The filestore naming format is that the disk prefixes belonging to the same osd are the same and the suffixes are different. This patch keeps the bluestore's disk naming as well. Change-Id: I71dda29fc4a6765300ce7bb173d2c448c24f6eca
24 lines
875 B
Bash
24 lines
875 B
Bash
mkdir -p /opt/data/kolla
|
|
dd if=/dev/zero of=/opt/data/kolla/ceph-osd0.img bs=5M count=128
|
|
LOOP=$(losetup -f)
|
|
losetup $LOOP /opt/data/kolla/ceph-osd0.img
|
|
parted $LOOP -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1 1 -1
|
|
|
|
dd if=/dev/zero of=/opt/data/kolla/ceph-osd0-b.img bs=5M count=2048
|
|
LOOP=$(losetup -f)
|
|
losetup $LOOP /opt/data/kolla/ceph-osd0-b.img
|
|
parted $LOOP -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1_B 1 -1
|
|
|
|
dd if=/dev/zero of=/opt/data/kolla/ceph-osd0-w.img bs=5M count=256
|
|
LOOP=$(losetup -f)
|
|
losetup $LOOP /opt/data/kolla/ceph-osd0-w.img
|
|
parted $LOOP -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1_W 1 -1
|
|
|
|
dd if=/dev/zero of=/opt/data/kolla/ceph-osd0-d.img bs=5M count=256
|
|
LOOP=$(losetup -f)
|
|
losetup $LOOP /opt/data/kolla/ceph-osd0-d.img
|
|
parted $LOOP -s -- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1_D 1 -1
|
|
|
|
partprobe
|
|
|