Re: [zones-discuss] migrate from global zone ?

2011-01-21 Thread sang-suan gam
Hi Mike,

thanks very much for your advices and suggestions.

 Oracle Solaris 11 Express provides Oracle Solaris 10 Containers which
 are designed to solve such problems.
 
 http://download.oracle.com/docs/cd/E19963-01/821-1460/gjfbq/index.html
 http://download.oracle.com/docs/cd/E19963-01/821-1460/gjoak/index.html

i'm using opensolaris 2009.06 (build 111b), am not sure if the above
will work for me. i'll check them out.

 If you have a non-trivial installation (e.g. you are using ASM, you
 have SAN attached disk containing file systems for binaries and
 databases, etc.) you will likely need to do some additional
 configuration.
 

no asm or san, just local disks and zfs.

 1) Configure the zone with zonecfg. You will most likely need to set
 various resource controls (add rctl in zonecfg) for shared memory,
 etc. I suspect that current Oracle DB installation docs will describe
 what needs to be set.
 2) Install the zone with zoneadm install.
 3) Boot the zone and do any configuration needed. For example, add
 users and groups needed.
 4) Shut down the database
 5) Remove (or comment) the /etc/vfstab entries corresponding to the
 oracle databases and binaries from the global zone
 6) Add fs entries to the zone's configuration (with zonecfg)
 corresponding to the entries removed from the global zone's
 /etc/vfstab.
 7) Reboot the zone
 8) Start the database in the zone.

thanks for the steps, they are very helpful, especially (6).
i'm reading that i'll need to lofs mount the relevent
oracle db install directories  into the individual zones,
and when booted, the instances will run in their non
global zones (?).

Thanks again, will try out the above steps next week,
after i install some other zones/virtualbox guests
(this question arises as i'm planning the deployments).

cheers,
sam
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] migrate from global zone ?

2011-01-21 Thread sang-suan gam
Thanks Hung-Sheng, Christian for your suggestions on p2v.

Joerg on www.c0t0d0s0.org mentioned that the code
is putback for build as of build 109, so i have have it
in my 111b build.

will look it up as well,

cheers,
sam
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] migrate from global zone ?

2011-01-20 Thread Mike Gerdts
On Thu, Jan 20, 2011 at 1:25 AM, sang-suan gam sangsuan@gmail.com wrote:
 Hi All,

 how can one migrate oracle DB (2 instances) from the global zone to non-local 
 zones ?

 thanks,
 sam

Oracle Solaris 11 Express provides Oracle Solaris 10 Containers which
are designed to solve such problems.

http://download.oracle.com/docs/cd/E19963-01/821-1460/gjfbq/index.html
http://download.oracle.com/docs/cd/E19963-01/821-1460/gjoak/index.html

If you have a non-trivial installation (e.g. you are using ASM, you
have SAN attached disk containing file systems for binaries and
databases, etc.) you will likely need to do some additional
configuration.

Be sure to check with the database folks to ensure that you remain in
a supported configuration.

If you aren't able to move to Solaris 11 Express (even with Solaris 10
Containers), the process for migrating will be highly dependent on
your configuration.  The last time I read the oracle database
installation instructions (several years ago) the recommendation was
to have separate file systems for the oracle executables (e.g. /u01)
and others for database files, indexes, etc.  (e.g. /u02, /u03, ... or
/sid/u01, /sid/u02, ...)  If this is the case, then you likely
need to do something along the lines of the following.

This an off the cuff description of the process that is generic and
almost certainly misses things that exist in your configuration.  Test
it on non-production machines first and consult with DBAs and Oracle
Solaris and database support as needed.

1) Configure the zone with zonecfg.  You will most likely need to set
various resource controls (add rctl in zonecfg) for shared memory,
etc.  I suspect that current Oracle DB installation docs will describe
what needs to be set.
2) Install the zone with zoneadm install.
3) Boot the zone and do any configuration needed.  For example, add
users and groups needed.
4) Shut down the database
5) Remove (or comment) the /etc/vfstab entries corresponding to the
oracle databases and binaries from the global zone
6) Add fs entries to the zone's configuration (with zonecfg)
corresponding to the entries removed from the global zone's
/etc/vfstab.
7) Reboot the zone
8) Start the database in the zone.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] migrate from global zone ?

2011-01-20 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph. D.


I have not seen any official support of oracle 11gr2x in solaris 11 
express yet

so most likely the installation is on s10
I would add the following:
on the same host of s10 create full root zone, so you will have the same 
os and patch  level of the GZ.
if you also inherit the oracle home then NGZ will get the same copy of 
the oracle installation

you would then work out procedure to migration the db data from GZ to NGZ

hth


On 1/20/2011 9:24 AM, Mike Gerdts wrote:

On Thu, Jan 20, 2011 at 1:25 AM, sang-suan gamsangsuan@gmail.com  wrote:

Hi All,

how can one migrate oracle DB (2 instances) from the global zone to non-local 
zones ?

thanks,
sam

Oracle Solaris 11 Express provides Oracle Solaris 10 Containers which
are designed to solve such problems.

http://download.oracle.com/docs/cd/E19963-01/821-1460/gjfbq/index.html
http://download.oracle.com/docs/cd/E19963-01/821-1460/gjoak/index.html

If you have a non-trivial installation (e.g. you are using ASM, you
have SAN attached disk containing file systems for binaries and
databases, etc.) you will likely need to do some additional
configuration.

Be sure to check with the database folks to ensure that you remain in
a supported configuration.

If you aren't able to move to Solaris 11 Express (even with Solaris 10
Containers), the process for migrating will be highly dependent on
your configuration.  The last time I read the oracle database
installation instructions (several years ago) the recommendation was
to have separate file systems for the oracle executables (e.g. /u01)
and others for database files, indexes, etc.  (e.g. /u02, /u03, ... or
/sid/u01, /sid/u02, ...)  If this is the case, then you likely
need to do something along the lines of the following.

This an off the cuff description of the process that is generic and
almost certainly misses things that exist in your configuration.  Test
it on non-production machines first and consult with DBAs and Oracle
Solaris and database support as needed.

1) Configure the zone with zonecfg.  You will most likely need to set
various resource controls (add rctl in zonecfg) for shared memory,
etc.  I suspect that current Oracle DB installation docs will describe
what needs to be set.
2) Install the zone with zoneadm install.
3) Boot the zone and do any configuration needed.  For example, add
users and groups needed.
4) Shut down the database
5) Remove (or comment) the /etc/vfstab entries corresponding to the
oracle databases and binaries from the global zone
6) Add fs entries to the zone's configuration (with zonecfg)
corresponding to the entries removed from the global zone's
/etc/vfstab.
7) Reboot the zone
8) Start the database in the zone.

attachment: laotsao.vcf___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] migrate from global zone ?

2011-01-20 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph. D.
IMHO, it is unfortunate that there is no official tool to support p2v 
for s10
in zone_p2v blog it talk about the reason and difficulty why there is no 
p2v for s10
Since there are many advantage of NGZ, and many user would not migrate 
to new s11x, even with s10 brand in short time

it is very important for solaris to provide p2v in s10
my 2c


On 1/20/2011 2:25 AM, sang-suan gam wrote:

Hi All,

how can one migrate oracle DB (2 instances) from the global zone to non-local 
zones ?

thanks,
sam
attachment: laotsao.vcf___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] migrate from global zone ?

2011-01-20 Thread Christian Meier
Hello,
äs I know p2v is supported in s10 update 9.
You can create a flash archive of the global zone and install as solaris
10th container.
Please have a look at the release notes of Solaris 10 update 9

Regards Christian
On Jan 20, 2011 4:46 PM, Hung-Sheng Tsao (Lao Tsao 老曹) Ph. D. 
laot...@gmail.com wrote:
 IMHO, it is unfortunate that there is no official tool to support p2v
 for s10
 in zone_p2v blog it talk about the reason and difficulty why there is no
 p2v for s10
 Since there are many advantage of NGZ, and many user would not migrate
 to new s11x, even with s10 brand in short time
 it is very important for solaris to provide p2v in s10
 my 2c


 On 1/20/2011 2:25 AM, sang-suan gam wrote:
 Hi All,

 how can one migrate oracle DB (2 instances) from the global zone to
non-local zones ?

 thanks,
 sam
___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] migrate from global zone ?

2011-01-20 Thread Laotsao
Yes thank u
Sorry about my mistake


Sent from my iPad

On Jan 20, 2011, at 5:19 PM, Christian Meier meierc...@gmail.com wrote:

 Hello, 
 äs I know p2v is supported in s10 update 9.
 You can create a flash archive of the global zone and install as solaris 10th 
 container.
 Please have a look at the release notes of Solaris 10 update 9
 
 Regards Christian
 
 On Jan 20, 2011 4:46 PM, Hung-Sheng Tsao (Lao Tsao 老曹) Ph. D. 
 laot...@gmail.com wrote:
  IMHO, it is unfortunate that there is no official tool to support p2v 
  for s10
  in zone_p2v blog it talk about the reason and difficulty why there is no 
  p2v for s10
  Since there are many advantage of NGZ, and many user would not migrate 
  to new s11x, even with s10 brand in short time
  it is very important for solaris to provide p2v in s10
  my 2c
  
  
  On 1/20/2011 2:25 AM, sang-suan gam wrote:
  Hi All,
 
  how can one migrate oracle DB (2 instances) from the global zone to 
  non-local zones ?
 
  thanks,
  sam
 ___
 zones-discuss mailing list
 zones-discuss@opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org

[zones-discuss] migrate from global zone ?

2011-01-19 Thread sang-suan gam
Hi All,

how can one migrate oracle DB (2 instances) from the global zone to non-local 
zones ?

thanks,
sam
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org