Secondary disk partitioning during Kadeploy post-install
Sep 14, 2015
Tagged with Grid5000 - Tutorial - Kadeploy
Introduction
On Grid’5000, in order to have a custom partition table, you need to use a -t destructiveOAR job
and the --set-custom-operations option of Kadeploy (See 4.4.4 page 69 from kadeploy documentation).
This method implies after each OAR job a deployment of the production environment in order to restore the correct partition table, also the node is unavailable longer than a job without -t destructive option.
At Rennes, you have a lot of servers with 2 or 5 disks (clusters parasilo, paravance and paranoia). These disks can be partitioned easily during deployment using the Kadeploy post-install.
Create a custom post-install
Extract the post-install comming with your environment
We will use the environment jessie-x64-base provided by Grid’5000.
Edit post-install
Edit file traitement.sh and add before exit 0 :
Edit file partition.sh with this content :
Note : To use btrfs (or LVM…) you need to install needed packages :
Build the new post-install and create a custom environment
Edit the postinstall section of the file jessie-x64-custom.dsc with :