LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-15-2011, 09: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 09:34 PM.
 
Old 03-16-2011, 06:17 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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, 07: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, 05:32 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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-28-2009 11:21 PM
Migrating a Single Project in SVN from One Machine to Another your_shadow03 Linux - Newbie 1 06-09-2009 12:14 AM
solaris zones: what is it for? ic_torres Solaris / OpenSolaris 5 04-11-2009 04:22 AM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 07:37 AM
dns zones jmono Linux - Networking 3 05-19-2003 09:39 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:13 AM.

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
Open Source Consulting | Domain Registration