Format JBOD

Now let us format the additional hard disks we have added to each of the hosts.

  • Create partition for /dev/sdb
  • Format using ext4
  • Create directory /data1
  • Mount /dev/sdb partition to /data1
  • Create directory scripts under working directory on the first server
  • Create file format_disk.sh under scripts using contents of the first script
  • Run it using ansible

https://gist.github.com/dgadiraju/55d5c81b319748502bfcfab78f3602d5

Share this post