Three questions - migrating to branded zone


 
Thread Tools Search this Thread
Operating Systems Solaris Three questions - migrating to branded zone
# 8  
Old 11-23-2009
Hi

Nothing will happen. You will get a few VX errors at boot, but that's all. I did the same as you, I made a flar dump of a solaris 8 server, using VxVm and put it into a zone. I have to give the install option of requiring a system id / ip change, but when it booted up, I noticed a few vxvm errors, regarding dump areas, etc etc, and the zone came online.

Or, one thing you could do, is once the dump has been put into the zone, via the global zone, cd down to the directories and remove the traces of vxvm. If you follow the steps you would do when you unencapsulate a root drive, i.e. remove the kernel /system options, alter the vfstab, and remove the database file, then this will stop more inital start up errors.

Ive created a number of branded zones, with flar archives, and its cool

SBK
# 9  
Old 11-23-2009
didnt happen to document it did you? pm it to me? i'm doing the same thing, it'd be good to see if there was anything i missed.

the worst part of my migration is the fact that the solaris8 domains are clustered. i dont exactly know yet how i'm going that part is going to work.

Last edited by frustin; 11-23-2009 at 04:20 AM..
frustin
# 10  
Old 11-24-2009
Hi there.

I followed these steps ( ive just cut / pasted from my notes ). These are just a guide, so see them as a help, not an exect step by step senario.

Code:
Creating Branded Zones / containers in Solaris 10

 1. Download the Solaris 8 Containers software bundle from the Sun
           Download Center:
           http://www.sun.com/software/solaris/...ners/getit.jsp

 2. Verify the software bundle checksum:
           # digest -a md5 s8containers-bundle-solaris10-sparc.tar.gz

           Compare this checksum to the checksum file on the product
           download webpage.

3. Unarchive and install 1.0.1 software package:
           # gunzip s8containers-bundle-solaris10-sparc.tar.gz
           # tar xf s8containers-bundle-solaris10-sparc.tar
           # cd s8containers-bundle/1.0.1/Product
           # pkgadd -d `pwd` SUNWs8brandk



4) Create Zone

# zonecfg -z svx-dwhousedb-1 -f  svx-dwhousedb-1.zonecfg           # create zone using stated conf file
# zonecfg -z svx-dwhousedb-1 verify                                # verify elements in conf file are create
# zoneadm list -icv                                                # list zones



# zoneadm -z zonename install -u -a /path/to/flash archive.flar

  -a   Location of archive from which to copy system image. Full flash archive and cpio, gzip compressed cpio, bzip compressed cpio, and level 0 ufsdump are supported. Refer to the gzip man page available in the SUNWsfman package.
  -d   Location of directory from which to copy system image. 
  -p   Preserve system identity. 
  -s   Install silently. 
  -u   sys-unconfig the zone.
  -v   Verbose output. 


N.b   Creating a flar dump command

# flarcreate -S -n nemesis-data -x /u03/oracle -x /u04/oracle -x /u06 -x /SBK/m5000 -c /SBK/m5000/nemesis-data.flar


# zoneadm -z svx-dwhousedb-1 ready                                  # Clears up temp files, prepares zone


5. Remove vertias startup database

# touch /location to zone within global zone/etc/vx/reconfig.d/state.d/install-db
# rm   /location to zone within global zone/etc/vx/reconfig.d/state.d/root-done

6. Remove /etc/system stuff - Ok I know that solaris 10 doesnt use it.

vi /location to zone within global zone/etc/system
# Only comment out the following entries
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1

7) Start Zone
																																																																																																																																																																																																																																																															
# zoneadm -z svx-dwhousedb-1 boot                                   # boots zone																																																																																																																																																																																																																									
# zlogin -C svx-dwhousedb-1                                         # console login to zone

SBK
# 11  
Old 11-24-2009
that's good stuff there thanks!

Question though: the zoneadm "ready"; does it really clean up the archive?

also:

5. Remove vertias startup database - is this effectively unencapsulating the old veritas managed root drive?

EDIT: it's part of it. the other two parts include:
i) remove the kernal/system options - any ideas on what they might be in this case?
ii) alter the vfstab - to remove veritas devices.

Last edited by frustin; 11-24-2009 at 11:15 AM.. Reason: read some more on unencapsulating....
frustin
# 12  
Old 11-25-2009
Hi there

Yes, you are basically removing all the traces of the veritas boot / root encapsulation. Im not sure the /etc/system file is really used in a zone, infact most of it will be ignored. When you install the flar copy, on boot it will mention that certain paramters in the system file are ignored, so you might find that most of the veritas components are already ignored, so these steps are for completeness.

Removing the veritas db and checking the vfstab is more to stop errors coming on script, via boot up.

When you've made the flar dump, you've obviously told it what mounts to included, e.g. u01 / u02 /u03, when constructing the zone, you made new mounts, named the same, but using storage allocated to it via the global zone, or directly mounted into the zone.

The underlying type of the source f/s is irelevant, so once the dump is extracted back into the zone, your away.

The errors at boot up are regarding vxdmps, databases, and vfstab rubbish, so by removing all these before you boot, will make a clearer startup.

I will test it out, created a test zone, pour the dump into it, and see. Good thing about zones, is that once you shut them down, you can alter them via the global zone, aka, just cd down to the area where the install is, and amend files.

SBK
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help setting up a bhyve branded zone

So I started with following the example on the omnios page for bhyve (sorry, I can't provide the link because I'm a post shy of the 5 to give a URL): And found that in the end I was able to create a running bhyve zone, but accessing it via zlogin results in a blank console. I've tried Debian 9... (14 Replies)
Discussion started by: stratacast1
14 Replies

2. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

3. Solaris

Branded zone Solaris 9

Hi, I want to install branded zone sol 9 in sol 10. I keep getting same error. Please advice me. Thanks. (12 Replies)
Discussion started by: mzainal
12 Replies

4. Solaris

Solaris 10 branded zone with IPMP

All. I am trying to create a 10 branded zone on a Sol 11.1 T5. The Global is using IPMP...so aggregating is out of the question. Has anyone successfully created a branded zone with IPMP? If they have can you please show me the steps you took to get this to run. Thanks (4 Replies)
Discussion started by: aeroforce
4 Replies

5. Solaris

NFS server on Solaris 10 branded zone

I am trying to get a NFS share on a Solaris 10 branded zone. I have read that this is not possible...but I was hoping someone here could tell me different. share -F nfs -o ro,anon=0 /dir This would really surprise me that you cannot do this. Thanks (2 Replies)
Discussion started by: aeroforce
2 Replies

6. Solaris

Branded Solaris 10 zone no network

I am trying to create a branded 10 zone on a Solaris 11.1 control domain. I am using a flar image (cpio) from an existing LDOM. Here are the steps taken after flarcreate. #zonecfg -z <device> >create -b >set brand=solaris10 >set zonepath=/zonez/<device> >set ip-type=exclusive >add net... (1 Reply)
Discussion started by: aeroforce
1 Replies

7. Solaris

Solaris 9 branded zone on a Solaris 10 server

I have a T5220 running Solaris 10. I have a application that can only run on Solaris 9. I want to build a branded Solaris 9 zone for this application on the Solaris 10 Server. What steps would I need to accomplish this? (2 Replies)
Discussion started by: soupbone38
2 Replies

8. Solaris

Prerequisites for Solaris10 Branded Zone within Solaris 11 Express

Dear all, we are trying to install a Solaris10 Branded Zone on a Solaris 11 Express system getting this message: ***The image patch level is downrev for running in a solaris10 branded zone*** The Sparc Solaris 10 system is running Release 11/06 and Patch 119254-70 is installed. Does the... (0 Replies)
Discussion started by: xunil321
0 Replies

9. Solaris

Postprocess issue installing Solaris 9 Branded Zone

Hello, I am attempting to install a newly configured Solaris 9 zone using the flash archive image provided on the sun website. Each time I run the install I get a failure during the Postprocess: Creating mount points. Following is the log: Log File: /var/tmp/s9-zone.install.25457.log... (0 Replies)
Discussion started by: brialt1
0 Replies

10. Solaris

zone questions

Hi, I would like to implement zones in solaris 10 to simulate 2 nodes on a single solaris 10 using zones. Can some one tell me what does it mean by global and non-global zones Also write what is the use of using non global or global and permissions like read-write on zones. My requirement... (3 Replies)
Discussion started by: upengan78
3 Replies
Login or Register to Ask a Question