[zones-discuss] Upgrading a ipkg brand zone

2008-09-10 Thread Luca Morettoni
I have installed on my laptop (under OpenSolaris 2008.05, snv_95) a ipkg 
brand zone (default for that operating system) and all work fine.
Now I have updated the system to the snv_96, but my zones are on version 
snv_95, there are some special steps to keep zones updated or I follow 
the steps to update the global zone inside each zone?
-- 
Luca Morettoni luca(AT)morettoni(DOT)net - http://morettoni.net
BLOG @ http://morettoni.blogspot.com/ | GPG key 0xD69411BB
jugUmbria founder - https://jugUmbria.dev.java.net/ | Thawte notary
ITL-OSUG leader - http://www.opensolaris.org/os/project/itl-osug/
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Upgrading a ipkg brand zone

2008-09-10 Thread Dan Price
On Wed 10 Sep 2008 at 12:24PM, Luca Morettoni wrote:
 I have installed on my laptop (under OpenSolaris 2008.05, snv_95) a ipkg 
 brand zone (default for that operating system) and all work fine.
 Now I have updated the system to the snv_96, but my zones are on version 
 snv_95, there are some special steps to keep zones updated or I follow 
 the steps to update the global zone inside each zone?

Luca,

Try finding the root path to your zone, like this:

# zoneadm list -vc
  ID NAME STATUS PATH   BRANDIP
   0 global   running/  native   shared
   - donutshopinstalled  /zones/donutshop   ipkg shared


In this case it would be inside of /zones/donutshop, in /zones/donutshop/root

Next, halt the zone, and from the global zone do (as root):

# pkg -R /zones/donutshop/root image-update

It should move things forward for you.  Obviously this is sort of experimental
at the moment, and there are some issues.  In the future, things will upgrade
in-sync with the global zone.

-dp

-- 
Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Upgrading a ipkg brand zone

2008-09-10 Thread Luca Morettoni
On 09/10/08 12:41, Dan Price wrote:
 # pkg -R /zones/donutshop/root image-update
 
 It should move things forward for you.  Obviously this is sort of experimental
 at the moment, and there are some issues.  In the future, things will upgrade
 in-sync with the global zone.

all work fine into my laptop, thanks!
I have just 2 question about that kind of zones:

1) which is the best way to install new software into a zone?
  global# pkg -R myzone/root install pkg to install

  or

  myzone# pkg install pkg to install

2) which folder and or pkgs could safety remove inside zones to keep
them slim? (like /var/pkg/download...)

thanks!
-- 
Luca Morettoni luca(AT)morettoni(DOT)net - http://morettoni.net
BLOG @ http://morettoni.blogspot.com/ | GPG key 0xD69411BB
jugUmbria founder - https://jugUmbria.dev.java.net/ | Thawte notary
ITL-OSUG leader - http://www.opensolaris.org/os/project/itl-osug/
___
zones-discuss mailing list
zones-discuss@opensolaris.org