Hi Jean, Alok, that service was introduced by Casper's enhancement to SV4R packaging stuff:
http://arc.opensolaris.org/caselog/PSARC/2009/173/20090312_casper.dik ... /var/svc/manifest/system/pkgserv.xml - defines svc:/system/pkgserv:default - runs "pkgadm sync -q" at boot and shutdown time. - write the contents file if needed, picks up the pieces if pkgserv is killed, makes sure the pkgserv exits. ... I guess we could just disable it in AI and LiveCD images, but we would need to check with Casper if there are no other dependencies - e.g. if SVR4 packaging tools still work correctly even if this SMF service is disabled. I saw this on x86 as well as on Sparc in AI/LiveCD images I built for testing purposes. I install testing stuff into proto area by means of SVR4 package tools and I ended up with stale lock files in proto area - not sure why they were not removed. Since they reside in read-only area in AI and LiveCD images (in solarismisc.zlib archive), pkgadm can't release/obtain the lock. As a workaround, I just delete all that stuff manually in proto area after I add SVR4 testing packages, but before I let DC to continue with the build. CCing c-d, since I assume that other people might have run into this as well. Thank you, Jan jeanm wrote: > Any idea why the client is trying to do this upon reboot: > > Nov 5 13:50:29 svc.startd[7]: svc:/system/pkgserv:default: Method > "/usr/bin/pkgadm sync" failed with exit status 1. > Nov 5 13:50:31 svc.startd[7]: svc:/system/pkgserv:default: Method > "/usr/bin/pkgadm sync" failed with exit status 1. > Nov 5 13:50:32 svc.startd[7]: svc:/system/pkgserv:default: Method > "/usr/bin/pkgadm sync" failed with exit status 1. > Nov 5 13:50:32 svc.startd[7]: system/pkgserv:default failed: > transitioned to maintenance (see 'svcs -xv' for details) > Reading ZFS config: done. > > > See the attached for a full log of the run Mary did. > > Jean > > ------------------------------------------------------------------------ > > Subject: > Re: Problem with sparc iso for bug 8347 > From: > mary ding <Mary.Ding at Sun.COM> > Date: > Thu, 05 Nov 2009 14:08:23 -0800 > To: > jeanm <Jean.McCormack at Sun.COM> > > To: > jeanm <Jean.McCormack at Sun.COM> > > > Jean: > > With your latest sparc image, I can start AI install. > > HOwever, I still see the pkgserv error as follow on sun4u and sun4v. I > did not see this in x86 though. I am wondering whether this is > something with the build machine on sparc. Perhaps should ask the IPS > guys why are we trying to do pkgadm sync on sparc. > > > > > ok boot net:dhcp > Resetting ... > > > > Sun Blade 100 (UltraSPARC-IIe), No Keyboard > Copyright 2005 Sun Microsystems, Inc. All rights reserved. > OpenBoot 4.17.1, 512 MB memory installed, Serial #10474595. > Ethernet address 8:0:20:9f:d4:63, Host ID: 809fd463. > > > > Rebooting with command: boot net:dhcp > Boot device: /pci at 1f,0/network at c,1:dhcp File and args: > Timed out waiting for BOOTP/DHCP reply > <time unavailable> wanboot info: WAN boot messages->console > <time unavailable> wanboot info: configuring /pci at 1f,0/network at c,1:dhcp > > <time unavailable> wanboot info: Starting DHCP configuration > <time unavailable> wanboot info: DHCP configuration succeeded > <time unavailable> wanboot progress: wanbootfs: Read 366 of 366 kB (100%) > <time unavailable> wanboot info: wanbootfs: Download complete > Thu Nov 5 21:44:43 wanboot progress: miniroot: Read 166290 of 166290 > kB (100%) > Thu Nov 5 21:44:43 wanboot info: miniroot: Download complete > SunOS Release 5.11 Version snv_126 64-bit > Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > WARNING: Last shutdown is later than time on time-of-day chip; check > date. > WARNING: consconfig: cannot find driver for screen device > /pci at 1f,0/SUNW,m64B at 13 > Hostname: opensolaris > Remounting root read/write > Probing for device nodes ... > WARNING: emlxs: ddi_modopen drv/fct failed: err 2 > Preparing automated install image for use > The AI image will be retrieved from > /export/home/images/osol-1002-8347-ai-sparc/ directory > Downloading solaris.zlib archive > --2009-11-05 13:50:06-- > http://10.6.35.111:5555/export/home/images/osol-1002-8347-ai-sparc//solaris.zlib > > > Connecting to 10.6.35.111:5555... connected. > HTTP request sent, awaiting response... 200 OK > Length: 106973184 (102M) [text/plain] > Saving to: `/tmp/solaris.zlib' > > 100%[======================================>] 106,973,184 11.3M/s in > 9.1s > > 2009-11-05 13:50:16 (11.3 MB/s) - `/tmp/solaris.zlib' saved > [106973184/106973184] > > Downloading solarismisc.zlib archive > --2009-11-05 13:50:16-- > http://10.6.35.111:5555/export/home/images/osol-1002-8347-ai-sparc//solarismisc.zlib > > > Connecting to 10.6.35.111:5555... connected. > HTTP request sent, awaiting response... 200 OK > Length: 5690368 (5.4M) [text/plain] > Saving to: `/tmp/solarismisc.zlib' > > 100%[======================================>] 5,690,368 11.2M/s in > 0.5s > > 2009-11-05 13:50:16 (11.2 MB/s) - `/tmp/solarismisc.zlib' saved > [5690368/5690368] > > --2009-11-05 13:50:16-- > http://10.6.35.111:5555/export/home/images/osol-1002-8347-ai-sparc//install.conf > > > Connecting to 10.6.35.111:5555... connected. > HTTP request sent, awaiting response... 200 OK > Length: 78 [text/plain] > Saving to: `/tmp/install.conf' > > 100%[======================================>] 78 --.-K/s in 0s > > 2009-11-05 13:50:16 (1004 KB/s) - `/tmp/install.conf' saved [78/78] > > Done mounting automated install image > Configuring devices. > Mounting cdroms > Nov 5 13:50:29 svc.startd[7]: svc:/system/pkgserv:default: Method > "/usr/bin/pkgadm sync" failed with exit status 1. > Nov 5 13:50:31 svc.startd[7]: svc:/system/pkgserv:default: Method > "/usr/bin/pkgadm sync" failed with exit status 1. > Nov 5 13:50:32 svc.startd[7]: svc:/system/pkgserv:default: Method > "/usr/bin/pkgadm sync" failed with exit status 1. > Nov 5 13:50:32 svc.startd[7]: system/pkgserv:default failed: > transitioned to maintenance (see 'svcs -xv' for details) > Reading ZFS config: done. > Nov 5 13:51:04 opensolaris mDNSResponder: Local Hostname > opensolaris.local already in use; will try opensolaris-2.local instead > Nov 5 13:51:04 opensolaris mDNSResponder: Local Hostname > opensolaris-2.local already in use; will try opensolaris-3.local instead > Nov 5 13:51:04 opensolaris mDNSResponder: Local Hostname > opensolaris-3.local already in use; will try opensolaris-4.local instead > Nov 5 13:51:04 opensolaris mDNSResponder: Local Hostname > opensolaris-4.local already in use; will try opensolaris-5.local instead > Nov 5 13:51:05 opensolaris mDNSResponder: Local Hostname > opensolaris-5.local already in use; will try opensolaris-6.local instead > Nov 5 13:51:05 opensolaris mDNSResponder: Local Hostname > opensolaris-6.local already in use; will try opensolaris-7.local instead > Nov 5 13:51:05 opensolaris mDNSResponder: Local Hostname > opensolaris-7.local already in use; will try opensolaris-8.local instead > Nov 5 13:51:05 opensolaris mDNSResponder: Local Hostname > opensolaris-8.local already in use; will try opensolaris-9.local instead > Nov 5 13:51:06 opensolaris sendmail[666]: My unqualified host name > (localhost) unknown; sleeping for retry > Nov 5 13:51:06 opensolaris mDNSResponder: Local Hostname > opensolaris-9.local already in use; will try opensolaris-10.local instead > Nov 5 13:51:06 opensolaris mDNSResponder: Local Hostname > opensolaris-10.local already in use; will try opensolaris-100.local > instead > > opensolaris console login: Service discovery phase initiated > Service name to look up: osol-1002-8347-ai-sparc > Service discovery finished successfully > Process of obtaining configuration manifest initiated > Configuration manifest obtained > Automated Installation started > The progress of the Automated Installation can be followed by viewing > the logfile at /tmp/install_log > Nov 5 13:51:37 opensolaris scsi: WARNING: /pci at 1f,0/ide at d/sd at 1,0 > (sd1): > Nov 5 13:51:37 opensolaris transport rejected bad packet > Nov 5 13:51:37 opensolaris scsi: WARNING: /pci at 1f,0/ide at d/sd at 1,0 > (sd1): > Nov 5 13:51:37 opensolaris transport rejected bad packet > > opensolaris console login: root > Password: > Nov 5 13:55:56 opensolaris login: ROOT LOGIN /dev/console > Sun Microsystems Inc. SunOS 5.11 snv_126 November 2008 > root at opensolaris:~# cd /var/pkg > root at opensolaris:/var/pkg# ls > cfg_cache history pkg state > file index publisher tmp > root at opensolaris:/var/pkg# cd state > root at opensolaris:/var/pkg/state# ls > installed known > root at opensolaris:/var/pkg/state# ls -lia > total 8 > 47251 drwxr-xr-x 4 root root 512 Nov 5 13:49 . > 67329 drwxr-xr-x 9 root root 512 Nov 5 2009 .. > 62931 drwxr-xr-x 2 root root 512 Nov 5 13:55 > installed > 36051 drwxr-xr-x 2 root root 512 Nov 5 13:55 known > root at opensolaris:/var/pkg/state# cd known > root at opensolaris:/var/pkg/state/known# ls > catalog.attrs catalog.base.C > root at opensolaris:/var/pkg/state/known# ls -lia > total 8 > 36051 drwxr-xr-x 2 root root 512 Nov 5 13:55 . > 47251 drwxr-xr-x 4 root root 512 Nov 5 13:49 .. > 36052 lrwxrwxrwx 1 root root 43 Nov 5 2009 > catalog.attrs -> /mnt/misc/var/pkg/state/known/catalog.attrs > 36053 lrwxrwxrwx 1 root root 44 Nov 5 2009 > catalog.base.C -> /mnt/misc/var/pkg/state/known/catalog.base.C > root at opensolaris:/var/pkg/state/known# svcs -vx > svc:/application/auto-installer:default (automated installer) > State: offline since Thu Nov 05 13:51:08 2009 > Reason: Start method is running. > See: http://sun.com/msg/SMF-8000-C4 > See: man -M /usr/share/man -s 1M auto-install > See: /var/svc/log/application-auto-installer:default.log > Impact: This service is not running. > > svc:/system/pkgserv:default (Flush package command database to disk > (see pkgadm(1m)).) > State: maintenance since Thu Nov 05 13:50:33 2009 > Reason: Start method failed repeatedly, last exited with status 1. > See: http://sun.com/msg/SMF-8000-KS > See: /var/svc/log/system-pkgserv:default.log > Impact: This service is not running. > root at opensolaris:/var/pkg/state/known# more > /var/svc/log/system-pkgserv:default > .log > [ Nov 5 13:50:28 Executing start method ("/usr/bin/pkgadm sync"). ] > ERROR: unable to open lock file </var/sadm/install/.pkg.lock.client>. > [ Nov 5 13:50:29 Method "start" exited with status 1. ] > [ Nov 5 13:50:30 Executing start method ("/usr/bin/pkgadm sync"). ] > ERROR: unable to open lock file </var/sadm/install/.pkg.lock.client>. > [ Nov 5 13:50:31 Method "start" exited with status 1. ] > [ Nov 5 13:50:31 Executing start method ("/usr/bin/pkgadm sync"). ] > ERROR: unable to open lock file </var/sadm/install/.pkg.lock.client>. > [ Nov 5 13:50:32 Method "start" exited with status 1. ] > root at opensolaris:/var/pkg/state/known# cd /var/sadm/install > root at opensolaris:/var/sadm/install# ls > admin gz-only-packages pkglog > contents logs > root at opensolaris:/var/sadm/install# ls -lia .pkg* > 76242 lrwxrwxrwx 1 root root 36 Nov 5 2009 > .pkg.lock -> /mnt/misc/var/sadm/install/.pkg.lock > 76246 lrwxrwxrwx 1 root root 43 Nov 5 2009 > .pkg.lock.client -> /mnt/misc/var/sadm/install/.pkg.lock.client > root at opensolaris:/var/sadm/install# >
