Problem creating sol8 container using seperate / /usr and /var ufsdumps

Hello experts

New to solaris 8 containers and zones in general and I'm having some problems creating a Solaris 8 container using ufsdumps of /, /usr and /var.

I have created the zone which worked fine and a running the following command.

zoneadm -z zone_s8 install -v -p -a /root.ufs

I'm getting the following output:

      Log File: /var/tmp/zone_s8.install.1219.log
       Product: Solaris 8 Containers 1.0
     Installer: solaris8 brand installer 1.2
          Zone: zone_s8
          Path: /u01/zone_s8
        Source: /root.ufs
    Media Type: ufsdump archive
    Installing: This may take several minutes...
  Sanity Check: Passed.  Looks like a Solaris 8 system.
Postprocessing: This may take several minutes...
   Postprocess: Gathering information about zone zone_s8
   Postprocess: Creating mount points
   Postprocess: Linking in appropriate libc_psr.so for this platform
   Postprocess: Processing /etc/system
   Postprocess: Booting zone to single user mode
   Postprocess: Applying p2v module S20_apply_patches
        S20_apply_patches:  Unpacking patch:  109147-44
        S20_apply_patches: Installing patch:  109147-44
        S20_apply_patches:  Unpacking patch:  111023-03
        S20_apply_patches: Installing patch:  111023-03
        S20_apply_patches:  Unpacking patch:  111431-01
        S20_apply_patches: Installing patch:  111431-01
        S20_apply_patches:  Unpacking patch:  112605-04
        S20_apply_patches: Installing patch:  112605-04
   Postprocess: ERROR: p2v module S20_apply_patches failed: 0
   Postprocess: ERROR: Zone boot failed
   Postprocess: ERROR: Postprocessing failed.
        Result: Postprocessing failed.
        Result: *** Installation FAILED ***
      Log File: /var/tmp/zone_s8.install.1219.log

The log file is complaining that it cannot access files in /var, which will be true as I havent loaded the ufsdump of var yet.

What am I doing wrong here? Is there a way to build a container using dumps of /, /usr and /var?

I have read and re-read the man page but there doesnt appear to be a way of passing multiple dumps at once.

Any help appreciated

I have been involved with Solaris 8 zones but only from a flar file created using the flarcreate command run on a normally installed Solaris 8 system thus:
booted single user
# mountall
# cd /var/tmp
# flarcreate -n imagename -c -e imagename imagename

Where imagename is the name and filename of the flar file.

The resultant flar file created in /var/tmp contains all the filesystems in the one file, perhaps if you are going to use a ufsdump file it also has to have all the filesystems in the one file which is what ufsdump won't do if they are on separate slices?

So perhaps you need to build a system from your ufsdumsp with /, /usr and /var all in the same slice and then create a ufsdump from that or else create a flar file from the original system instead?

Thanks TFM :slight_smile:

I've done some digging around and all other instructions seem to mention using the flarcreate command rather than the instuctions I have which talks about using ufsdump.

As you say, ufsdump is only designed to dump a single ufs filesystem at once so in my case of /, /usr and /var being on seperate filesystems, I guess this method won't work!

Not to worry, the origional box is still up and running so I'll do a little more research into the flarcreate command and generate an image that way.

Thanks for responding by the way.