Russell,
I've seen this years ago on some NetApp files. I've seen it more recently on
Hitachi storage too. I was able to work around the issue by changing the
following in /opt/xcat/share/lib/perl/xCAT_plugin/packimage.pm:
[root@gdcgmgtlgmt01 xCAT_plugin]# diff packimage.pm packimage.pm.orig
242c242
< $excludestr = "find . |cpio -o | gzip -c - > ../rootimg.gz";
---
> $excludestr = "find . |cpio -H newc -o | gzip -c - >
> ../rootimg.gz";
249c249,250
< $excludestr = "cat /tmp/xcat_packimg.txt|cpio -o | gzip -c - >
../rootimg.gz";
---
> #$excludestr =~ s!-a \z!|cpio -H newc -o | gzip -c - >
> ../rootimg.gz!;
> $excludestr = "cat /tmp/xcat_packimg.txt|cpio -H newc -o | gzip
> -c - > ../rootimg.gz";
I've also found other "issues" with using CPIO. Most recently I had an issue
where during the packimage CPIO itself was cross-linking hardlinked files (if
memory serves it was linking /bin/gzip, /bin/gunzip, /bin/zcat all to some file
in /usr/share/zoneinfo)....
With all of these issues I'm starting to look at not using CPIO but using
something like squashfs instead.....
James Richardson
Senior Systems Architect
Information Technology
+1.303.684.4795 office
+1.720.340.6965 mobile
[email protected]
-----Original Message-----
From: Russell Jones [mailto:[email protected]]
Sent: Tuesday, May 07, 2013 4:22 PM
To: xCAT Users Mailing list
Subject: [xcat-user] xCAT 2.7 - packimage and 0 bytes files
Hi all,
I have an xCAT 2.7 cluster where /install resides on an Isilon NFS mount. I
have noticed that after running "packimage" with a standard gzip image, there
are 0 byte binaries in the image file. Everything else in the image seems fine,
and there are no errors shown during the genimage or packimage process. If I
move the /install tree back to local storage, the packimage is fine. The NFS
mount also has plenty of storage available.
I have seen a post about this a few years ago where there wasn't any response
back. Is this a known defect with xCAT/cpio? Has anyone else ran into this
problem before?
Thanks!
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the
definitive new guide to graph databases and their applications. This 200-page
book is written by three acclaimed leaders in the field. The early access
version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
xCAT-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/xcat-user
This electronic communication and any attachments may contain confidential and
proprietary
information of DigitalGlobe, Inc. If you are not the intended recipient, or an
agent or employee
responsible for delivering this communication to the intended recipient, or if
you have received
this communication in error, please do not print, copy, retransmit, disseminate
or
otherwise use the information. Please indicate to the sender that you have
received this
communication in error, and delete the copy you received. DigitalGlobe reserves
the
right to monitor any electronic communication sent or received by its
employees, agents
or representatives.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user