<div dir="ltr">Hi All,<div><br></div><div>Figure I don't have time to do this so I went on to update my test environment from R150008 to R151012 to R151014 and it works but from R150008 to R151014, it keeps failling. Can the folks at Omniti check what is wrong?</div><div><br></div><div>Hi Volker,</div><div><br></div><div>Will try to do what you have teach here.</div><div><br></div><div>Thanks & Regards.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 6, 2015 at 12:00 AM, Volker A. Brandt <span dir="ltr"><<a href="mailto:vab@bb-c.de" target="_blank">vab@bb-c.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lawrence!<br>
<span class=""><br>
<br>
> I am trying to upgrade OmniOS but I keep getting network issue so I<br>
> am think of setting up a local repo so that my internal servers can<br>
> grab the upgrade file from the local repo, can someone teach me how<br>
> to do? I followed the wiki but it is very confusing and I need to do<br>
> this tomorrow.<br>
<br>
</span>I think you were almost there.  Quoting from your initial mail:<br>
<span class=""><br>
> # zfs create tankNodeR/NFS/omniosR151014repo<br>
> # pkgrepo create /tankNodeR/NFS/omniosR151014repo<br>
<br>
</span>Yes.<br>
<span class=""><br>
> # pkgrepo set -s /tankNodeR/NFS/omniosR151014repo<br>
> publisher/prefix=OmniOSr151014.abc.internal<br>
<br>
</span>No.  You should use the same publisher as the repo you are copying from:<br>
<br>
  /usr/bin/pkgrepo add-publisher -s /tankNodeR/NFS/omniosR151014repo omnios<br>
<br>
Then you copy the repo from the source:<br>
<span class=""><br>
> # pkgrecv -s <a href="http://pkg.omniti.com/omnios/r151014" target="_blank">http://pkg.omniti.com/omnios/r151014</a> -d<br>
> file:///tankNodeR/NFS/omniosR151014repo/ 'pkg:/*'<br>
<br>
</span>Yes, except that '*' will be enough.  Why did you want to exclude the<br>
two kayak packages here?  No need really, just get everything.  Or is<br>
it the kayak stuff that triggers the network issue?<br>
<br>
Anyway, then you set up the pkg server:<br>
<span class=""><br>
> # svccfg -s pkg/server setprop pkg/inst_root =<br>
> /tankNodeR/NFS/omniosR151014repo<br>
> # svccfg -s pkg/server setprop pkg/port = 10000<br>
> # svcadm refresh pkg/server<br>
> # svcadm enable pkg/server<br>
<br>
</span>Yes.  Note that you set the port to be 10000 here.<br>
<br>
Verify that your server works by connecting to<br>
<a href="http://OmniOSr151014.abc.internal:10000/" target="_blank">http://OmniOSr151014.abc.internal:10000/</a> with your browser (note the port).<br>
<br>
Then, on the client do:<br>
<span class=""><br>
> root@sgdevOmniOS:~# pkg unset-publisher omnios<br>
> root@sgdevOmniOS:~# pkg set-publisher -P --set-property signature-policy=require-signatures -g <a href="http://OmniOSr151014.abc.internal/" target="_blank">http://OmniOSr151014.abc.internal/</a> omnios<br>
<br>
</span>Almost.  You forgot the port.  Also, you can do it in one step:<br>
<br>
  # pkg set-publisher -P --set-property signature-policy=require-signatures -G<br>
    '*' -g <a href="http://OmniOSr151014.abc.internal:10000/" target="_blank">http://OmniOSr151014.abc.internal:10000/</a> omnios<br>
<br>
Before you update the client, refresh the local catalog:<br>
<br>
  # pkg refresh --full omnios<br>
<br>
Then update the client:<br>
<br>
  # pkg update -v --be-name=omnios-r151014 entire<br>
<br>
I usually do a dryrun with -n before the actual update.<br>
<br>
<br>
Hope this helps -- Volker<br>
<div class="HOEnZb"><div class="h5">--<br>
------------------------------------------------------------------------<br>
Volker A. Brandt               Consulting and Support for Oracle Solaris<br>
Brandt & Brandt Computer GmbH                   WWW: <a href="http://www.bb-c.de/" target="_blank">http://www.bb-c.de/</a><br>
Am Wiesenpfad 6, 53340 Meckenheim, GERMANY            Email: <a href="mailto:vab@bb-c.de">vab@bb-c.de</a><br>
Handelsregister: Amtsgericht Bonn, HRB 10513              Schuhgröße: 46<br>
Geschäftsführer: Rainer J.H. Brandt und Volker A. Brandt<br>
<br>
"When logic and proportion have fallen sloppy dead"<br>
</div></div></blockquote></div><br></div>