LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 03-15-2011, 10:33 PM   #1
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Rep: Reputation: 15
Migrating Solaris 10 Zones to new machine.


How do you migrate a system with one global zone and two non-global zones to a new but similar machine?

Last edited by bavondrake; 03-15-2011 at 10:34 PM.
 
Old 03-16-2011, 07:17 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
AFAIK you can't move global zones, so for the global you have to do a fresh install on the new one then transfer config files etc.

For non-global zones, (1) halt zone (2) zoneadm detach zone (3) move data (rsync as root for best results) (4) create new zone config (5) zoneadm attach zone to data (6) boot zone. I've done this once, and you can Google for more details.
 
Old 03-16-2011, 08:05 AM   #3
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks@AlucardZero!

I wish there is a way to get a global zone to a new machine.
The reason for that is because all non-global zones sit on top of global zone and share the same kernel with it.

Is there a way to snapshot it or back it up or ..?

Thanks a lot

Bavon
 
Old 03-16-2011, 06:32 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by bavondrake View Post
I wish there is a way to get a global zone to a new machine.
The reason for that is because all non-global zones sit on top of global zone and share the same kernel with it.
That depends on what you mean by "similar machines". If the machines are close enough, you might just move the disks (physically or logically) from one to another and you have migrated all your zones, including the global one. Of course, there might be some things to fix / adapt for this to succeed.
Alternatively, flash archives are a way to clone a global zone to other machines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
migrating sshd keys to new machine genmaicha Linux - Software 1 08-29-2009 12:21 AM
Migrating a Single Project in SVN from One Machine to Another your_shadow03 Linux - Newbie 1 06-09-2009 01:14 AM
solaris zones: what is it for? ic_torres Solaris / OpenSolaris 5 04-11-2009 05:22 AM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 08:37 AM
dns zones jmono Linux - Networking 3 05-19-2003 10:39 PM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration