Hi , ALL
     I think the key is how to pack the diskless image

xCAT have the packimage to generate the diskless image ,and you diskless image 
is use the tar command ,which may not fit the need

[root@mgt ~]# packimage -h
Usage:
   packimage [-m| --method=cpio|tar] [-c| --compress=gzip|pigz|xz] <imagename>
   packimage [-h| --help]
   packimage [-v| --version]
[root@mgt ~]#

[root@mgt ~]# history | grep packimage
  808  packimage rhels7.3-x86_64-netboot-compute
1001  packimage -h
1002  history | grep packimage
[root@mgt ~]#


Another case would be the MEM size ,if the diskless image is 400MB ,than  when 
the image extract , it will be about 2GB , so it would be better to have 4G 
memory for the diskless load




Peter CZ peng
Department :Complex Solution Rack TE
Address:ISH3 Shenzhen
Lenovo China

[Phone]+86 86361590
[Email]+86 18129979128
[VOIP]609 1590
[Email]peng...@lenovo.com<mailto:zengd...@lenovo.com>



Lenovo.com /www.lenovo.com <http://www.lenovo.com/www.lenovo.com>
Twitter<http://twitter.com/lenovo> | Facebook | 
Instagram<https://instagram.com/lenovo> | Blogs<http://blog.lenovo.com/> | 
Forums<http://forums.lenovo.com/>


[Lenovo_2015]




From: Kevin Keane [mailto:kke...@sandiego.edu]
Sent: Wednesday, November 1, 2017 7:47 AM
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Subject: [xcat-user] stateless node: "no space left on device" when 
loading/extracting rootimg

I'm sure this is a simple one, but I can't find the answer:
When booting my stateless node, the initrd loads without a problem, but 
downloading the rootimg fails. My rootimage.tar.gz is 442 MB, a fairly normal 
size as far as I can tell.

The error message is actually "no such file or device" but I already determined 
that the real problem is that the root file system in the initrd is too small 
to hold the rootimg.tar.gz.
When I strip down the rootimg.tar.gz to the bare minimum (363 MB), the download 
completes, but extracting the image fails with an error "no space left on the 
device".

How do I generate an initrd with more space in the root fs?
Here is my osimage :

Object name: rhels7.4-x86_64-netboot-hpccn
    exlist=/install/custom/netboot/rh/hpccn.rhels7.4.x86_64.exlist
    imagetype=linux
    osarch=x86_64
    osdistroname=rhels7.4-x86_64
    osname=Linux
    osvers=rhels7.4
    otherpkgdir=/install/post/otherpkgs/rhels7.4/x86_64
    
otherpkglist=/install/custom/netboot/rh/hpccn.rhels7.4.x86_64.otherpkgs.pkglist
    partitionfile=/install/custom/netboot/rh/hpccn.rhels7.4.x86_64.cfglocaldisk
    permission=755
    pkgdir=/install/rhels7.4/x86_64
    pkglist=/install/custom/netboot/rh/hpccn.rhels7.4.x86_64.pkglist
    postinstall=/install/custom/netboot/rh/hpccn.rhels7.4.x86_64.postinstall
    profile=hpccn
    provmethod=netboot
    rootimgdir=/install/netboot/rhels7.4/x86_64/hpccn
    synclists=/install/custom/netboot/rh/hpccn.rhels7.4.x86_64.synclist
And here is how I generate the image:

/opt/xcat/bin/genimage rhels7.4-x86_64-netboot-hpccn
/opt/xcat/sbin/packimage --method=tar rhels7.4-x86_64-netboot-hpccn
Thanks!

--

_______________________________________________________________________
Kevin Keane | Systems Architect | University of San Diego ITS | 
kke...@sandiego.edu<mailto:kke...@sandiego.edu>
Maher Hall, 192 |5998 Alcalá Park | San Diego, CA 92110-2492 | 
619.260.6859<tel:%28619%29%20260-2298>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to