Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Move the host in the hosts_all/CephProd (hosts_all/CephProd-C8 dor CentOS8) hostgroup CephProd hostgroup 

Run once puppet:

Code Block
languagebash
puppet agent -t

...

Code Block
languagebash
# Block
echo "vgcreate on SATA disks..."
vgcreate ceph-block-50 /dev/sdc
vgcreate ceph-block-51 /dev/sdd
vgcreate ceph-block-52 /dev/sde
vgcreate ceph-block-53 /dev/sdf
vgcreate ceph-block-54 /dev/sdg
vgcreate ceph-block-55 /dev/sdh
vgcreate ceph-block-56 /dev/sdi
vgcreate ceph-block-57 /dev/sdj
vgcreate ceph-block-58 /dev/sdk
vgcreate ceph-block-59 /dev/sdl
echo "lvcreate on SATA disks..."
lvcreate -l 100%FREE -n block-50 ceph-block-50
lvcreate -l 100%FREE -n block-51 ceph-block-51
lvcreate -l 100%FREE -n block-52 ceph-block-52
lvcreate -l 100%FREE -n block-53 ceph-block-53
lvcreate -l 100%FREE -n block-54 ceph-block-54
lvcreate -l 100%FREE -n block-55 ceph-block-55
lvcreate -l 100%FREE -n block-56 ceph-block-56
lvcreate -l 100%FREE -n block-57 ceph-block-57
lvcreate -l 100%FREE -n block-58 ceph-block-58
lvcreate -l 100%FREE -n block-59 ceph-block-59
#
# Block.db
echo "vgcreate on SSD disks..."
vgcreate ceph-db-50-54 /dev/sda
vgcreate ceph-db-55-59 /dev/sdb
echo "lvcreate on SSD disks..."
lvcreate -L 89GB89G -n db-50 ceph-db-50-54
lvcreate -L 89GB89G -n db-51 ceph-db-50-54
lvcreate -L 89GB89G -n db-52 ceph-db-50-54
lvcreate -L 89GB89G -n db-53 ceph-db-50-54
lvcreate -L 89GB89G -n db-54 ceph-db-50-54
lvcreate -L 89GB89G -n db-55 ceph-db-55-59
lvcreate -L 89GB89G -n db-56 ceph-db-55-59
lvcreate -L 89GB89G -n db-57 ceph-db-55-59
lvcreate -L 89GB89G -n db-58 ceph-db-55-59
lvcreate -L 89GB89G -n db-59 ceph-db-55-59



Possible error with vgcreate:

...

Code Block
languagebash
ceph-volume lvm create --bluestore --data ceph-block-51/block-51 --block.db ceph-db-50-54/db-51
ceph-volume lvm create --bluestore --data ceph-block-52/block-52 --block.db ceph-db-50-54/db-52
ceph-volume lvm create --bluestore --data ceph-block-53/block-53 --block.db ceph-db-50-54/db-53
ceph-volume lvm create --bluestore --data ceph-block-54/block-54 --block.db ceph-db-50-54/db-54
ceph-volume lvm create --bluestore --data ceph-block-55/block-55 --block.db ceph-db-55-59/db-55
ceph-volume lvm create --bluestore --data ceph-block-56/block-56 --block.db ceph-db-55-59/db-56
ceph-volume lvm create --bluestore --data ceph-block-57/block-57 --block.db ceph-db-55-59/db-57
ceph-volume lvm create --bluestore --data ceph-block-58/block-58 --block.db ceph-db-55-59/db-58
ceph-volume lvm create --bluestore --data ceph-block-59/block-59 --block.db ceph-db-55-59/db-59



Suppose that instead the disk where you want to create the OSD is a SSD disk. In this case you simply need something like:

Code Block
ceph-volume lvm create --bluestore --data /dev/sdl




Reboot the new osd node:

Code Block
languagebash
shutdown -r now

...