Are you asking about doing this as a prescript? I'm not sure what environment variables are in place at that point.
Regards, Christian Caruthers Lenovo Professional Services Mobile: 757-289-9872 From: SOPORTE MODEMAT via xCAT-user <[email protected]> Sent: Monday, March 8, 2021 12:45 To: xCAT Users Mailing list <[email protected]> Cc: SOPORTE MODEMAT <[email protected]> Subject: Re: [xcat-user] [External] dynamic disk partitioning with xcat Hello Christian. Thank you so much for your reply. I really appreciate it. But I wonder if I use that as a postscript, can I read the $NODE variable at the time of the disk partitioning process ? Saludos cordiales. Msc. Mercy Anchundia Ruiz. Especialista de TICS Tlf. +59322976300 EXT 1537 https://hpcmodemat.epn.edu.ec/ SÃguenos en Twitter: @HPCModemat MODEMAT -EPN From: Christian Caruthers <[email protected]<mailto:[email protected]>> Sent: lunes, 8 de marzo de 2021 10:52 To: xCAT Users Mailing list <[email protected]<mailto:[email protected]>> Subject: Re: [xcat-user] [External] dynamic disk partitioning with xcat 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]<mailto:[email protected]>> Sent: Friday, March 5, 2021 13:40 To: xCAT Users Mailing list <[email protected]<mailto:[email protected]>> Cc: SOPORTE MODEMAT <[email protected]<mailto:[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
