Hello guys. At the end I solved with this line in my partition script:
capacity=`echo $(fdisk -l | grep /dev/sda | cut -f 3 -d " " | cut -f 1 -d ".") | cut -f 1 -d " "` echo "The detected capacity disk size is $capacity" > /tmp/mypartitionlog.log Thank you all for your help !! Mercy. From: SOPORTE MODEMAT Sent: viernes, 5 de marzo de 2021 13:40 To: xCAT Users Mailing list <[email protected]> Subject: dynamic disk partitioning with xcat Importance: High Hello guys. Could you please give me any idea to specify a dynamic disk partitioning based on the nodename? I think that a script for disk partitioning can help but I do not know which is the environmental variable that can help me to create an if clause or something like that. Thank you in advance for any help. I would really appreciate it. Soporte
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
