Re: [zones-discuss] Unable to create a whole-root zone

2007-01-11 Thread Neil Garthwaite

Durga,

It appears you have the following mismatch, i.e.

zonecfg:zone-one set zonepath=/export/zone-one

The file /export/zone-1/root/var/sadm/system/logs/install_log contains a log 
of the zone installation.


Note: zone-one vs zone-1

Also, in previous followup emails you mention Solaris Cluster 3.2 is 
installed can you provide the output to svcs -a and svcs -x.


While Solaris Cluster 3.2 works very well with zones, we need to verify 
(via svcs -a and svcs -x) that it was installed correctly and is online.


Regards
Neil

Durga Deep wrote:


Hi Folks

I wanted to create a whole-root zone. I am never able to create one :(. Did 
some one encounter this problem ?.

*) mkdir -m 700 /export/zone-one

*) The version of the OS used

# cat /etc/release
  Solaris 10 11/06 s10s_u3wos_09 SPARC
  Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
   Use is subject to license terms.
  Assembled 01 November 2006

# zonecfg -z zone-one

   zone-one: No such zone configured
   Use 'create' to begin configuring a new zone.
   zonecfg:zone-one create -b
   zonecfg:zone-one set autoboot=true
   zonecfg:zone-one set zonepath=/export/zone-one
   zonecfg:zone-one add net
   zonecfg:zone-one:net set physical=eri0
   zonecfg:zone-one:net set address=192.18.xx.xxx
   zonecfg:zone-one:net end
   zonecfg:zone-one verify
   zonecfg:zone-one commit
   zonecfg:zone-one exit

# zoneadm -z zone-one verify

# zoneadm -z zone-one install

   Preparing to install zone zone-one.
   Creating list of files to copy from the global zone.
   Copying 6080 files to the zone.
   Initializing zone product registry.
   Determining zone package initialization order.
   Preparing to initialize 1071 packages on the zone.
   Initialized 1071 packages on zone.
   Zone zone-one is initialized.
   Installation of these packages generated errors: SUNWsczr SUNWdtlog 
SUNWsmmgr
   Installation of 1 packages was skipped.
   Installation of these packages generated warnings: SUNWcsr SUNWxwplr 
SUNWfontconfig-root SUNWpcr SUNWdtdmr SUNWtnamr SUNWkrbr SUNWtnetr SUNWdoc SUNWppror 
SUNWocfr SUNWvolr SUNWnfscr SUNWwbcor SUNWwebminr SUNWgssc SUNWnisr SUNWypr SUNWipplr 
SUNWaccr SUNWbsr SUNWdhcsr SUNWatfsr SUNWkdcr SUNWapch2r SUNWbindr SUNWbnur SUNWcnsr 
SUNWpsr SUNWsacom SUNWnfssr SUNWntpr SUNWftpr SUNWrcapr SUNWrcmdr SUNWslpr SUNWsndmr 
SUNWsshdr SUNWstsfr SUNWswupclr
   The file /export/zone-1/root/var/sadm/system/logs/install_log contains a 
log of the zone installation.

# pkginfo -i SUNWsczr
application SUNWsczr Sun Cluster (non-global zones support)

# pkginfo -i SUNWsczr
application SUNWsczr Sun Cluster (non-global zones support)

# pkginfo -i SUNWdtlog
system  SUNWdtlog System boot for Desktop Login

# pkginfo -i SUNWsmmgr
system  SUNWsmmgr System Management Agent Startup scripts

*** package SUNWsczr failed to install with fatal errors:

WARNING: attribute verification of /export/zone-1/root/etc/init.d/stoprgm 
failed
   pathname does not exist
NOTE: When the package SUNWsczr was installed in the global zone, the file 
etc/init.d/stoprgm was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file 
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone zone-one in 
the file /export/zone-1/root/etc/init.d/stoprgm.
ERROR : i.manifest cannot find archived files in 
/var/sadm/pkg/SUNWsczr/save/pspool/SUNWsczr/archive.
pkgadd: ERROR: class action script did not complete successfully

Installation of SUNWsczr on zone zone-one failed.

*** package SUNWnisr installed with warnings:

WARNING: attribute verification of /export/zone-1/root/etc/nsswitch.nis failed
   pathname does not exist
NOTE: When the package SUNWnisr was installed in the global zone,
the file etc/nsswitch.nis was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone
zone-one in the file /export/zone-1/root/etc/nsswitch.nis.
WARNING: attribute verification of /export/zone-1/root/etc/nsswitch.nisplus 
failed
   pathname does not exist
NOTE: When the package SUNWnisr was installed in the global zone,
the file etc/nsswitch.nisplus was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone
zone-one in the file /export/zone-1/root/etc/nsswitch.nisplus.
WARNING: attribute verification of /export/zone-1/root/lib/svc/method/nisplus 
failed
   pathname does not exist
NOTE: When the package SUNWnisr was installed in the global zone,
the file lib/svc/method/nisplus was also installed. After the file was

Re: [zones-discuss] Unable to create a whole-root zone

2007-01-11 Thread Brad Diggs
Durga,

After reading through the original note, I agree with Neil that there is
an inconsistency between zone-one and zone-1.  Did you try creating a
zone with the zonemgr script that I mentioned?

Also, I read through the output of the install log that you sent in your
original post.  It appears that most of the warnings result from
inconsistencies of either the contents, permissions, or nonexistence of
files in the global zone that do not match the files that were provided 
when the system was originally installed.  

I can envision to possible reasons for this.  First, do you know if the
administrator of your server has hardened the server in any way by
perhaps removing or re-naming certain files such as init scripts in 
the global zone?  

Second, do you know if there were any similar errors or other related
errors during initial installation of the system?  In this case, if
there were problems or issues during the initial install, these are 
just being observed as zoneadm installs those problematic packages in
the new non-global zone.

Other than those errors are you able to zlogin into the zone and use 
it without any problems?

Regards,
Brad

On Thu, 2007-01-11 at 08:31 +, Neil Garthwaite wrote:
 Durga,
 
 It appears you have the following mismatch, i.e.
 
 zonecfg:zone-one set zonepath=/export/zone-one
 
 The file /export/zone-1/root/var/sadm/system/logs/install_log contains a 
 log of the zone installation.
 
 
 Note: zone-one vs zone-1
 
 Also, in previous followup emails you mention Solaris Cluster 3.2 is 
 installed can you provide the output to svcs -a and svcs -x.
 
 While Solaris Cluster 3.2 works very well with zones, we need to verify 
 (via svcs -a and svcs -x) that it was installed correctly and is online.
 
 Regards
 Neil
 
 Durga Deep wrote:
 
 Hi Folks
 
 I wanted to create a whole-root zone. I am never able to create one :(. Did 
 some one encounter this problem ?.
 
 *) mkdir -m 700 /export/zone-one
 
 *) The version of the OS used
 
 # cat /etc/release
Solaris 10 11/06 s10s_u3wos_09 SPARC
Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
 Use is subject to license terms.
Assembled 01 November 2006
 
 # zonecfg -z zone-one
 
 zone-one: No such zone configured
 Use 'create' to begin configuring a new zone.
 zonecfg:zone-one create -b
 zonecfg:zone-one set autoboot=true
 zonecfg:zone-one set zonepath=/export/zone-one
 zonecfg:zone-one add net
 zonecfg:zone-one:net set physical=eri0
 zonecfg:zone-one:net set address=192.18.xx.xxx
 zonecfg:zone-one:net end
 zonecfg:zone-one verify
 zonecfg:zone-one commit
 zonecfg:zone-one exit
 
 # zoneadm -z zone-one verify
 
 # zoneadm -z zone-one install
 
 Preparing to install zone zone-one.
 Creating list of files to copy from the global zone.
 Copying 6080 files to the zone.
 Initializing zone product registry.
 Determining zone package initialization order.
 Preparing to initialize 1071 packages on the zone.
 Initialized 1071 packages on zone.
 Zone zone-one is initialized.
 Installation of these packages generated errors: SUNWsczr SUNWdtlog 
  SUNWsmmgr
 Installation of 1 packages was skipped.
 Installation of these packages generated warnings: SUNWcsr SUNWxwplr 
  SUNWfontconfig-root SUNWpcr SUNWdtdmr SUNWtnamr SUNWkrbr SUNWtnetr SUNWdoc 
  SUNWppror SUNWocfr SUNWvolr SUNWnfscr SUNWwbcor SUNWwebminr SUNWgssc 
  SUNWnisr SUNWypr SUNWipplr SUNWaccr SUNWbsr SUNWdhcsr SUNWatfsr SUNWkdcr 
  SUNWapch2r SUNWbindr SUNWbnur SUNWcnsr SUNWpsr SUNWsacom SUNWnfssr SUNWntpr 
  SUNWftpr SUNWrcapr SUNWrcmdr SUNWslpr SUNWsndmr SUNWsshdr SUNWstsfr 
  SUNWswupclr
 The file /export/zone-1/root/var/sadm/system/logs/install_log contains 
  a log of the zone installation.
 
 # pkginfo -i SUNWsczr
 application SUNWsczr Sun Cluster (non-global zones support)
 
 # pkginfo -i SUNWsczr
 application SUNWsczr Sun Cluster (non-global zones support)
 
 # pkginfo -i SUNWdtlog
 system  SUNWdtlog System boot for Desktop Login
 
 # pkginfo -i SUNWsmmgr
 system  SUNWsmmgr System Management Agent Startup scripts
 
 *** package SUNWsczr failed to install with fatal errors:
 
 WARNING: attribute verification of /export/zone-1/root/etc/init.d/stoprgm 
 failed
 pathname does not exist
 NOTE: When the package SUNWsczr was installed in the global zone, the file 
 etc/init.d/stoprgm was also installed. After the file was
 installed in the global zone, the contents and/or attributes of the file 
 changed. The contents of this file must never be changed. As a result,
 the changes in this file have been duplicated in the non-global zone 
 zone-one in the file /export/zone-1/root/etc/init.d/stoprgm.
 ERROR : i.manifest cannot find archived files in 
 /var/sadm/pkg/SUNWsczr/save/pspool/SUNWsczr/archive.
 pkgadd: ERROR: class action script did not complete successfully
 
 Installation 

Re: [zones-discuss] Unable to create a whole-root zone

2007-01-10 Thread Brad Diggs
Whole root implies that you removed the inherited directories.
The default configuration is a sparse root zone.

If you want whole root, you need to add the following to 
your config:

remove inherit-pkg-dir dir=/lib
remove inherit-pkg-dir dir=/usr
remove inherit-pkg-dir dir=/sbin
remove inherit-pkg-dir dir=/platform

Or if you are using the Zone Manager just use -t w and
the script does it for you. ;-)  


zonemgr -a add -n zone-one -t w -z /export -P mypw \
  -I 192.18.xx.xxx|eri0|24|zone-one 


More info on the Zone Manager here:
http://opensolaris.org/os/project/zonemgr/

Brad


On Tue, 2007-01-09 at 17:37 -0800, Durga Deep wrote:
 Hi Folks
 
 I wanted to create a whole-root zone. I am never able to create one :(. Did 
 some one encounter this problem ?.
 
 *) mkdir -m 700 /export/zone-one
 
 *) The version of the OS used
 
 # cat /etc/release
Solaris 10 11/06 s10s_u3wos_09 SPARC
Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
 Use is subject to license terms.
Assembled 01 November 2006
 
 # zonecfg -z zone-one
 
 zone-one: No such zone configured
 Use 'create' to begin configuring a new zone.
 zonecfg:zone-one create -b
 zonecfg:zone-one set autoboot=true
 zonecfg:zone-one set zonepath=/export/zone-one
 zonecfg:zone-one add net
 zonecfg:zone-one:net set physical=eri0
 zonecfg:zone-one:net set address=192.18.xx.xxx
 zonecfg:zone-one:net end
 zonecfg:zone-one verify
 zonecfg:zone-one commit
 zonecfg:zone-one exit
 
 # zoneadm -z zone-one verify
 
 # zoneadm -z zone-one install
 
 Preparing to install zone zone-one.
 Creating list of files to copy from the global zone.
 Copying 6080 files to the zone.
 Initializing zone product registry.
 Determining zone package initialization order.
 Preparing to initialize 1071 packages on the zone.
 Initialized 1071 packages on zone.
 Zone zone-one is initialized.
 Installation of these packages generated errors: SUNWsczr SUNWdtlog 
 SUNWsmmgr
 Installation of 1 packages was skipped.
 Installation of these packages generated warnings: SUNWcsr SUNWxwplr 
 SUNWfontconfig-root SUNWpcr SUNWdtdmr SUNWtnamr SUNWkrbr SUNWtnetr SUNWdoc 
 SUNWppror SUNWocfr SUNWvolr SUNWnfscr SUNWwbcor SUNWwebminr SUNWgssc SUNWnisr 
 SUNWypr SUNWipplr SUNWaccr SUNWbsr SUNWdhcsr SUNWatfsr SUNWkdcr SUNWapch2r 
 SUNWbindr SUNWbnur SUNWcnsr SUNWpsr SUNWsacom SUNWnfssr SUNWntpr SUNWftpr 
 SUNWrcapr SUNWrcmdr SUNWslpr SUNWsndmr SUNWsshdr SUNWstsfr SUNWswupclr
 The file /export/zone-1/root/var/sadm/system/logs/install_log contains 
 a log of the zone installation.
 
 # pkginfo -i SUNWsczr
 application SUNWsczr Sun Cluster (non-global zones support)
 
 # pkginfo -i SUNWsczr
 application SUNWsczr Sun Cluster (non-global zones support)
 
 # pkginfo -i SUNWdtlog
 system  SUNWdtlog System boot for Desktop Login
 
 # pkginfo -i SUNWsmmgr
 system  SUNWsmmgr System Management Agent Startup scripts
 
 *** package SUNWsczr failed to install with fatal errors:
 
 WARNING: attribute verification of /export/zone-1/root/etc/init.d/stoprgm 
 failed
 pathname does not exist
 NOTE: When the package SUNWsczr was installed in the global zone, the file 
 etc/init.d/stoprgm was also installed. After the file was
 installed in the global zone, the contents and/or attributes of the file 
 changed. The contents of this file must never be changed. As a result,
 the changes in this file have been duplicated in the non-global zone 
 zone-one in the file /export/zone-1/root/etc/init.d/stoprgm.
 ERROR : i.manifest cannot find archived files in 
 /var/sadm/pkg/SUNWsczr/save/pspool/SUNWsczr/archive.
 pkgadd: ERROR: class action script did not complete successfully
 
 Installation of SUNWsczr on zone zone-one failed.
 
 *** package SUNWnisr installed with warnings:
 
 WARNING: attribute verification of /export/zone-1/root/etc/nsswitch.nis 
 failed
 pathname does not exist
 NOTE: When the package SUNWnisr was installed in the global zone,
 the file etc/nsswitch.nis was also installed. After the file was
 installed in the global zone, the contents and/or attributes of the file
 changed. The contents of this file must never be changed. As a result,
 the changes in this file have been duplicated in the non-global zone
 zone-one in the file /export/zone-1/root/etc/nsswitch.nis.
 WARNING: attribute verification of /export/zone-1/root/etc/nsswitch.nisplus 
 failed
 pathname does not exist
 NOTE: When the package SUNWnisr was installed in the global zone,
 the file etc/nsswitch.nisplus was also installed. After the file was
 installed in the global zone, the contents and/or attributes of the file
 changed. The contents of this file must never be changed. As a result,
 the changes in this file have been duplicated in the non-global zone
 zone-one in the file /export/zone-1/root/etc/nsswitch.nisplus.
 WARNING: attribute 

Re: [zones-discuss] Unable to create a whole-root zone

2007-01-10 Thread Enda O'Connor

Durga Deep wrote:


# pkginfo -i SUNWsczr
application SUNWsczr Sun Cluster (non-global zones support)

# pkginfo -i SUNWsczr
application SUNWsczr Sun Cluster (non-global zones support)

# pkginfo -i SUNWdtlog
system  SUNWdtlog System boot for Desktop Login

# pkginfo -i SUNWsmmgr
system  SUNWsmmgr System Management Agent Startup scripts
  

Hi
I also notice some SunCluster packages on here, is SC installed on this 
box. also what other software has been installed post u3 install.


Enda
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Unable to create a whole-root zone

2007-01-09 Thread Russ Petruzzelli

re: zoneadm -z zone-one install

Is zone-one the hostname?
In my script I have the hostname not the path/dir name.

Russ

Durga Deep wrote:

Hi Folks

I wanted to create a whole-root zone. I am never able to create one :(. Did 
some one encounter this problem ?.

*) mkdir -m 700 /export/zone-one

*) The version of the OS used

# cat /etc/release
   Solaris 10 11/06 s10s_u3wos_09 SPARC
   Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
   Assembled 01 November 2006

# zonecfg -z zone-one

zone-one: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone-one create -b
zonecfg:zone-one set autoboot=true
zonecfg:zone-one set zonepath=/export/zone-one
zonecfg:zone-one add net
zonecfg:zone-one:net set physical=eri0
zonecfg:zone-one:net set address=192.18.xx.xxx
zonecfg:zone-one:net end
zonecfg:zone-one verify
zonecfg:zone-one commit
zonecfg:zone-one exit

# zoneadm -z zone-one verify

# zoneadm -z zone-one install

Preparing to install zone zone-one.
Creating list of files to copy from the global zone.
Copying 6080 files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize 1071 packages on the zone.
Initialized 1071 packages on zone.
Zone zone-one is initialized.
Installation of these packages generated errors: SUNWsczr SUNWdtlog 
SUNWsmmgr
Installation of 1 packages was skipped.
Installation of these packages generated warnings: SUNWcsr SUNWxwplr 
SUNWfontconfig-root SUNWpcr SUNWdtdmr SUNWtnamr SUNWkrbr SUNWtnetr SUNWdoc SUNWppror 
SUNWocfr SUNWvolr SUNWnfscr SUNWwbcor SUNWwebminr SUNWgssc SUNWnisr SUNWypr SUNWipplr 
SUNWaccr SUNWbsr SUNWdhcsr SUNWatfsr SUNWkdcr SUNWapch2r SUNWbindr SUNWbnur SUNWcnsr 
SUNWpsr SUNWsacom SUNWnfssr SUNWntpr SUNWftpr SUNWrcapr SUNWrcmdr SUNWslpr SUNWsndmr 
SUNWsshdr SUNWstsfr SUNWswupclr
The file /export/zone-1/root/var/sadm/system/logs/install_log contains a 
log of the zone installation.

# pkginfo -i SUNWsczr
application SUNWsczr Sun Cluster (non-global zones support)

# pkginfo -i SUNWsczr
application SUNWsczr Sun Cluster (non-global zones support)

# pkginfo -i SUNWdtlog
system  SUNWdtlog System boot for Desktop Login

# pkginfo -i SUNWsmmgr
system  SUNWsmmgr System Management Agent Startup scripts

*** package SUNWsczr failed to install with fatal errors:

WARNING: attribute verification of /export/zone-1/root/etc/init.d/stoprgm 
failed
pathname does not exist
NOTE: When the package SUNWsczr was installed in the global zone, the file 
etc/init.d/stoprgm was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file 
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone zone-one in 
the file /export/zone-1/root/etc/init.d/stoprgm.
ERROR : i.manifest cannot find archived files in 
/var/sadm/pkg/SUNWsczr/save/pspool/SUNWsczr/archive.
pkgadd: ERROR: class action script did not complete successfully

Installation of SUNWsczr on zone zone-one failed.

*** package SUNWnisr installed with warnings:

WARNING: attribute verification of /export/zone-1/root/etc/nsswitch.nis failed
pathname does not exist
NOTE: When the package SUNWnisr was installed in the global zone,
the file etc/nsswitch.nis was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone
zone-one in the file /export/zone-1/root/etc/nsswitch.nis.
WARNING: attribute verification of /export/zone-1/root/etc/nsswitch.nisplus 
failed
pathname does not exist
NOTE: When the package SUNWnisr was installed in the global zone,
the file etc/nsswitch.nisplus was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone
zone-one in the file /export/zone-1/root/etc/nsswitch.nisplus.
WARNING: attribute verification of /export/zone-1/root/lib/svc/method/nisplus 
failed
pathname does not exist
NOTE: When the package SUNWnisr was installed in the global zone,
the file lib/svc/method/nisplus was also installed. After the file was
installed in the global zone, the contents and/or attributes of the file
changed. The contents of this file must never be changed. As a result,
the changes in this file have been duplicated in the non-global zone
zone-one in the file /export/zone-1/root/lib/svc/method/nisplus.
WARNING: attribute verification of 
/export/zone-1/root/var/nis/NIS+LDAPmapping.template failed