unable to install a zone: Copying <0> files to the zone.

Hi forum users,

I really hope someone has any idea what could be wrong here.

First of all, the server is patched with security and recommended patches, except for 118344-13 -> R-- SunOS 5.10_x86: Fault Manager Patchwhich I will install on the next maintenance day. It already has 4 zones running without problem.

However when I try to install a new zone now it always fails.

# zoneadm -z blah install

Preparing to install zone <blah>.

Creating list of files to copy from the global zone.

Copying <0> files to the zone.

Initializing zone product registry.

Determining zone package initialization order.

ERROR: package <SUNWcsu> is not complete: skipping installation of package

ERROR: package <SUNWcsr> is not complete: skipping installation of package

ERROR: package <SUNWcsl> is not complete: skipping installation of package

...

ERROR: package <SMCreadl> is not complete: skipping installation of package

ERROR: cannot determine dependency ordered package list from package repository </var/sadm/pkg>

ERROR: cannot generate dependency ordered list of packages from global zone </var/sadm/pkg>

ERROR: failed to initialize packages from global zone <> to zone </zones/blah/root>

ERROR: cannot copy and initialize packages from global zone to local zone <blah> path </zones/blah/root>

ERROR: cannot create zone boot environment <blah>

zoneadm: zone 'blah': '/usr/lib/lu/lucreatezone' failed with exit code 74.

To me it seems obvious that the problem lies in the fact that it doesnt even copy a single file to the configured zone, therefor it can't install any packages and all the rest fails too. The big question of course is, why does it think it only needs to copy 0 files? Has anyone encountered such a problem before? I havent found anything yet on patches breaking zoneadm install but might have missed it.

Does it looks like a HD corruption?Might be since the Sun Management Console agent does seem to freeze on that server too once in a while.

[2176 byte] By [custodix] at [2007-11-26 9:57:18]
# 1

It's complaining that hte core system files are not complete. Check the global zone's /var/sadm/* for any corruption. Also, run:

pkginfo -l SUNWcsu

pkginfo -l SUNWcsr

pkginfo -l SUNWcsl

in the global zone and see if it can read the info about the packages zoneadm complains about. Wrap zoneadm in a truss and output to a file with 'zoneadm -f -o output.txt zoneadm -z blah install' or use dtrace to track opens and such. Check for anything that can't be read (grep for ENO in the output file, then grep for open.* | grep -v ENO to see if any of those files are eventually resolved). With more information, the issue can be investigated further.

System administration and security info at

http://SecurityBulletins.com/

securitybulletinscom at 2007-7-7 1:21:06 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

All the packages are fine in the global zone, pkginfo -l tells me the packages are complete.

I did try the truss wrap but it gives me so much info it is hard for me to figure out if something is wrong. The only error i think that returns often and that is not resolved is:

ioctl(4, TCGETA, 0x080471E4)Err#25 ENOTTY

ioctl(4, TCGETA, 0x08047294)Err#22 EINVAL

The part where it seems to compile a list of files to copy however is very empty of truss entries:

Preparing to install zone <gal2en-survey>.

Creating list of files to copy from the global zone.

Copying <0> files to the zone.

Initializing zone product registry.

Determining zone package initialization order.

read(4, 0x0806DD3C, 5120)(sleeping...)

ERROR: package <SUNWcsu> is not complete: skipping installation of package

...

This issue is still unresolved for me. For now the only way to create a new zone on that server is to manually copy all files from another zone, editing the zonecfg entry and net config files for the zone, then i can boot and run it.

custodix at 2007-7-7 1:21:06 > top of Java-index,Solaris Operating System,Solaris 10 Features...