Hi Torsten,
Sorry for reply later.
Thank you for using sysclone function firstly.
I noticed you mentioned a message in another email that you "install one node as golden (not deployed
through xCAT)", right? I though that was the reason why you hit the problem listed in current mail.
through xCAT)", right? I though that was the reason why you hit the problem listed in current mail.
Once xCAT management node deploy a compute node, it will write few files under the directory "/opt/xcat" of compute node. They are:
-------------------------------
[root@cn xcat]# pwd
/opt/xcat
/opt/xcat
[root@cn xcat]# ls
xcatdsklspost xcatinfo xcatinstallpost xcatpostinit1
-------------------------------
xcatdsklspost xcatinfo xcatinstallpost xcatpostinit1
-------------------------------
So when using imgcapture in c to get image from compute node, xCAT suppose there is xcatdsklspost file under "/install/sysclone/images/<your_image>/opt/xcat" by default. Then the script "17all.runxcatpost" will leverage xcatdsklspost to do the rest jobs.
Due to the golden client you used was not deployed by xCAT, so there was not xcatdsklspost file under "/opt/xcat".
But it was strange, depending on the message you pasted in current mail, there was "xcatinfo" file under "/opt/xcat".
Have you hack something in the golden client to make it is manageable by xCAT management node?
I also noticed there was "/xcatpost" directory in your golden client, this directory was generated by xCAT too.
Anyway, as a workaround for your question, if you have "/xcatpost" directory in the golden client, you can copy the file "/xcatpost/xcatdsklspost" to "/opt/xcat" directory, then run imgcapture command again in management node. I though it can resolve the problem you hit in "17all.runxcatpost" script.
Best Regards!
--------------------------------------------------------------
Hu, Wei Hua (胡卫华)
IBM China System Technology Laboratory
Email: huwei...@cn.ibm.com
Tel: 86-10-82453253
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
--------------------------------------------------------------
Hu, Wei Hua (胡卫华)
IBM China System Technology Laboratory
Email: huwei...@cn.ibm.com
Tel: 86-10-82453253
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
----- Original message -----
From: Torsten Harenberg <harenb...@physik.uni-wuppertal.de>
To: xcat-user@lists.sourceforge.net
Cc:
Subject: [xcat-user] /opt/xcat/xcatdsklspost missing from an imgcapture'd image
Date: Sun, Feb 10, 2019 4:41 PM
Dear all,
2nd of the "newbie series" questions.
the postinstall scripts contain:
[root@master post-install]# grep xcatdsklspost *
17all.runxcatpost:if [ ! -f "/opt/xcat/xcatdsklspost" ];then
17all.runxcatpost: echo "sysclone require /opt/xcat/xcatdsklspost,
but it can not be found. return error!"
And indeed the error is thrown when we try to deploy an image coming
from imgcapture.
Checking if the file is really therea and yes, this is not in the image:
[root@master xcat]# ls -l
total 4
-rw-r--r-- 1 root root 31 Feb 9 21:11 xcatinfo
[root@master xcat]# pwd
/install/sysclone/images/wnfg/opt/xcat
But it has been put into the image inside a different directory (/xcatpost):
[root@cmu xcatpost]# ls xcatdsklspost
xcatdsklspost
[root@cmu xcatpost]# pwd
/install/sysclone/images/wnfg/xcatpost
[root@cmu xcatpost]#
We followed the instructions from here:
https://sourceforge.net/p/xcat/wiki/Using_Clone_to_Deploy_Server/#install-and-configure-the-golden-client
so basically:
imgcapture <golden-client> -t sysclone -o <mycomputeimage>
nodeset <target-node> osimage=<mycomputeimage>
rsetboot <target-node> net
rpower <target-node> boot
Is there a step missing to "prepare" the image? Or do we hit a bug here?
Any hint is appreciated!
Best regards
Torsten
--
Dr. Torsten Harenberg harenb...@physik.uni-wuppertal.de
Bergische Universitaet
Fakultät 4 - Physik Tel.: +49 (0)202 439-3521
Gaussstr. 20 Fax : +49 (0)202 439-2811
42097 Wuppertal
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user