Russell,

   As you mentioned that 'cpio -H bin' works but 'cpio -H newc/crc' does
   not work, it should be the issue of cpio that has problem to work with
   NAS server.

   From xCAT point of view, maybe we could try to make the cpio write file
   to local instead of NFS sever.

   Could you change the 'cpio -H newc -o | gzip -c - > ../rootimg.gz' to
   'cpio -H newc -o | gzip -c - > /tmp/rootimg.gz' or 'cpio -H newc -o
   > /tmp/rootimg.gz', and take a try that whether /tmp/rotimg.gz could get
   the correct file size?
   If yes, we could work around it that cpio output to local first, then
   copy it from local to remote /install/netboot/...


Thanks
Best Regards
----------------------------------------------------------------------
 Wang Xiaopeng (王晓朋)
 IBM China System Technology Laboratory
 Tel: 86-10-82453455
 Email: [email protected]
 Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
Haidian District Beijing P.R.China 100193



From:   Russell Jones <[email protected]>
To:     [email protected],
Date:   2013/05/15 00:47
Subject:        Re: [xcat-user] xCAT 2.7 - packimage and 0 bytes files




On 5/9/2013 8:54 AM, Xiao Peng Wang wrote:
      If possible could you try to do the following change when you could
      recreate the issue on NetApp or Isilon.
            Replace the '|cpio -H newc -o |' part with '|cpio -H newc -o
            --verbose 2>/tmp/cpiolog |' and to see what we could get in the
            '/tmp/cpiolog' when issue happens.

      And please let us know the result of the trying of squashfs or the
      trying of James's suggestion that using 'cpio -o' replace 'cpio -H
      newc -o'.


Here's the results of my testing:

Redirecting errors to cpiolog with archive format as NEWC:
      No errors recorded, but binaries are still 0 bytes. Example:

      [root@box3 bin]# pwd
      /install/netboot/centos6.3/x86_64/compute/rootimg/usr/bin

      [root@box3 bin]# ll gcc
      -rwxr-xr-x 2 root root 263824 Jun 22  2012 gcc

      (Extracted rootimg.gz here)
      [root@box3 bin]# pwd
      /install/netboot/centos6.3/x86_64/compute/tmp/usr/bin

      [root@box3 bin]# ll gcc
      -rwxr-xr-x 2 root root 0 May 13 10:38 gcc


[root@box3 bin]# find . -type f -size 0b
./gcc
./perl
./x86_64-redhat-linux-gcc
./c2ph
./skill
./python
./pgrep
./sudoedit
./python2.6
./snice
./psed
./sudo
./s2p
./pstruct
./perlbug
./perlthanks
./perl5.10.1
./pkill

      Output from /tmp/cpiolog for that file. No errors recorded, and no
      errors around it. I surfed it and saw nothing out of the ordinary in
      this log, just a list of files it packed and the final size at the
      end.
      ./usr/bin/bzip2
      ./usr/bin/factor
      ./usr/bin/gcc
      ./usr/bin/mpdsigjob
      ./usr/bin/yes





Changing archive format to BIN (default in copy-out mode for cpio in CentOS
6) in packimage plugin
      Seems to work fine:


      [root@box3 bin]# pwd
      /install/netboot/centos6.3/x86_64/compute/tmp2/usr/bin


      [root@box3 bin]# ll gcc
      -rwxr-xr-x 2 root root 263824 May 13 10:55 gcc


      [root@box3 bin]# find . -type f -size 0b
      [root@box3 bin]#
      According to the man page the bin format has a limit of 65,000 inodes
      though, so if the rootimg is going to need to have a lot of small
      files in it, it's not practical.

I also tried the "crc" format, which according to the man page is NEWC with
checksums added, and it showed the same problem - 0 byte files.


I have not tried squashfs yet as I am working out the best way of getting
the aufs module compiled. I expect it to work fine however.
------------------------------------------------------------------------------

AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to