Zones not booting after server reboot

Hello guys
This is my first post. I have very little experience and I woud appreciate your input on this problem.
I have a server running Solaris 10. In that server I have 2 zones that work perfectly fine, however, if I reboot the server, the zones don't boot and I have to do it manually. i checked the zone1.xml and zone2.xml files and they have autoboot="true".
After I manually boot the zones, I can login into them with no problems and I can ssh to them as well. Does anybody can give an idea?
Thanks in advance.

What says:

svcs -xv zones

?

1 Like
$ svcs -xv zones
svc:/system/zones:default (Zones autoboot and graceful shutdown)
 State: online since Thu Sep 22 14:22:03 2011
   See: man -M /usr/share/man -s 5 zones
   See: man -M /usr/share/man -s 1M zonecfg
   See: /var/svc/log/system-zones:default.log
Impact: None.

Looks fine. Can you run the same command after a reboot while the zones aren't started ?

You can also check /var/svc/log/system-zones:default.log logfile for error messages around the time of the reboot.

Please Paste the O/P of

df -h

from both the zones and

df -Zh 

from the phyisical server also

zonecfg -z <zone name> info

from physical server.

1 Like

Also check under /etc/zones and make sure all the config files are present. You should see the index file along with the .xml files for each zone. Also, if the zones are in a separate file system make sure those file systems are mounted.

1 Like

Thanks guys for your help. All the needed files are in /etc/zones

Here are some of the results:

After rebooting:

$ svcs -xv zones
svc:/system/zones:default (Zones autoboot and graceful shutdown)
 State: offline since Mon Sep 26 15:10:41 2011
Reason: Service svc:/milestone/multi-user:default is starting.
 
  Path: svc:/system/zones:default
          svc:/milestone/multi-user-server:default
            svc:/milestone/multi-user:default
Reason: Service svc:/application/management/snmpdx:default is disabled.
 
  Path: svc:/system/zones:default
          svc:/milestone/multi-user-server:default
            svc:/application/management/dmi:default
              svc:/application/management/snmpdx:default
Reason: Service svc:/network/rpc/bind:default is disabled.
 
  Path: svc:/system/zones:default
          svc:/milestone/multi-user-server:default
            svc:/application/management/dmi:default
              svc:/network/rpc/bind:default
   See: man -M /usr/share/man -s 5 zones
   See: man -M /usr/share/man -s 1M zonecfg
Impact: This service is not running.

Now, after booting the zones manually:

From zone1

$ df -h
Filesystem             size   used  avail capacity  Mounted on
/                      124G    99G    23G    81%    /
/dev                   124G    99G    23G    81%    /dev
/lib                   124G    99G    23G    81%    /lib
/opt/bea               124G    99G    23G    81%    /opt/bea
/opt/csw               124G    99G    23G    81%    /opt/csw
/platform              124G    99G    23G    81%    /platform
/sbin                  124G    99G    23G    81%    /sbin
/usr                   124G    99G    23G    81%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                    23G   264K    23G     1%    /etc/svc/volatile
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    23G     8K    23G     1%    /tmp
swap                    23G    24K    23G     1%    /var/run

From zone2

$ df -h
Filesystem             size   used  avail capacity  Mounted on
/                      124G    99G    23G    81%    /
/dev                   124G    99G    23G    81%    /dev
/lib                   124G    99G    23G    81%    /lib
/opt/bea               124G    99G    23G    81%    /opt/bea
/opt/csw               124G    99G    23G    81%    /opt/csw
/platform              124G    99G    23G    81%    /platform
/sbin                  124G    99G    23G    81%    /sbin
/usr                   124G    99G    23G    81%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                    23G   264K    23G     1%    /etc/svc/volatile
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    23G     8K    23G     1%    /tmp
swap                    23G    24K    23G     1%    /var/run

From the global zone:

$ df -Zh
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0      124G    99G    23G    81%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    23G   1.3M    23G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    23G    16K    23G     1%    /tmp
swap                    23G    48K    23G     1%    /var/run
/zones/zone1/dev       124G    99G    23G    81%    /zones/zone1/root/dev
/lib                   124G    99G    23G    81%    /zones/zone1/root/lib
/opt/bea               124G    99G    23G    81%    /zones/zone1/root/opt/bea
/opt/csw               124G    99G    23G    81%    /zones/zone1/root/opt/csw
/platform              124G    99G    23G    81%    /zones/zone1/root/platform
/sbin                  124G    99G    23G    81%    /zones/zone1/root/sbin
/usr                   124G    99G    23G    81%    /zones/zone1/root/usr
proc                     0K     0K     0K     0%    /zones/zone1/root/proc
ctfs                     0K     0K     0K     0%    /zones/zone1/root/system/contract
mnttab                   0K     0K     0K     0%    /zones/zone1/root/etc/mnttab
objfs                    0K     0K     0K     0%    /zones/zone1/root/system/object
swap                    23G   264K    23G     1%    /zones/zone1/root/etc/svc/volatile
/zones/zone1/root/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /zones/zone1/root/platform/sun4u-us3/lib/libc_psr.so.1
/zones/zone1/root/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /zones/zone1/root/platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /zones/zone1/root/dev/fd
swap                    23G     8K    23G     1%    /zones/zone1/root/tmp
swap                    23G    24K    23G     1%    /zones/zone1/root/var/run
/zones/zone2/dev       124G    99G    23G    81%    /zones/zone2/root/dev
/lib                   124G    99G    23G    81%    /zones/zone2/root/lib
/opt/bea               124G    99G    23G    81%    /zones/zone2/root/opt/bea
/opt/csw               124G    99G    23G    81%    /zones/zone2/root/opt/csw
/platform              124G    99G    23G    81%    /zones/zone2/root/platform
/sbin                  124G    99G    23G    81%    /zones/zone2/root/sbin
/usr                   124G    99G    23G    81%    /zones/zone2/root/usr
proc                     0K     0K     0K     0%    /zones/zone2/root/proc
ctfs                     0K     0K     0K     0%    /zones/zone2/root/system/contract
mnttab                   0K     0K     0K     0%    /zones/zone2/root/etc/mnttab
objfs                    0K     0K     0K     0%    /zones/zone2/root/system/object
swap                    23G   264K    23G     1%    /zones/zone2/root/etc/svc/volatile
/zones/zone2/root/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /zones/zone2/root/platform/sun4u-us3/lib/libc_psr.so.1
/zones/zone2/root/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                       124G    99G    23G    81%    /zones/zone2/root/platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /zones/zone2/root/dev/fd
swap                    23G     8K    23G     1%    /zones/zone2/root/tmp
swap                    23G    24K    23G     1%    /zones/zone2/root/var/run

Hi,
within the /etc/zones/[zonename].xml ensure you have :-

autoboot="true" in the line that has the zonename / zonepath / pool configurations.

If not, then :-

zonecfg -z [zonename]
set autoboot=true
commit
exit.

Then retry.

SBK

1 Like

Hello sbk1972
I have the autoboot="true". That's why I can't understand why they don't boot.
Thank you for your help guys, still trying to solve this...

What output do you get if you type just "svcs -xv" from the global zone?

1 Like

You are experiencing this problem after a reboot before that everything was fine, is there any reason for the reboot I mean any changes were made to the system before the reboot??

Also when you reboot the server, can you check the /var/svc/log/system-zones:default.log file before booting the zones manually, where is it getting stuck.

Regards,
Vishal

1 Like

I want to thank you all for your help. Unfortunately, this server was totally reconfigured and I will never know what was causing the problem.