I've found it helpful to simply create a postscript called something like 
xcatenv:

/usr/bin/env > /tmp/xcatenv

... And run it on a node w/ updatenode. This will give you all the 
postscripting environment variables. In your case, I believe the one you're 
looking for is $NODE, though you could also look at group affiliation as well.

Regards,
Christian Caruthers
Lenovo Professional Services
Mobile: 757-289-9872

From: SOPORTE MODEMAT via xCAT-user <[email protected]>
Sent: Friday, March 5, 2021 13:40
To: xCAT Users Mailing list <[email protected]>
Cc: SOPORTE MODEMAT <[email protected]>
Subject: [External] [xcat-user] 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

Reply via email to