Solved

How to create a flash Image on solaris 8

Posted on 2010-08-27
8
953 Views
1 Endorsement
Last Modified: 2013-12-28
Please let me know step by step procedure to create a Flash archive on a solaris 8. I also need to create Branded zone and install the flash archive on the container

The solaris 8 resides on a Physical V220 box..

Regards,
AK
1
Comment
Question by:amk2121
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 9

Accepted Solution

by:
amolg earned 500 total points
ID: 33541307
0
 

Author Comment

by:amk2121
ID: 33565524
thanks for the link, When you create a flash archive on Solaris 8 it doesnt exclude the directories which i want to be excluded from the flash archive. Is there any work around. This is on Sunfire V280 an older sun server.

Please let me know a workaround

0
 
LVL 13

Expert Comment

by:Rowley
ID: 33584291
Do you have the -f option to create the flar from a file list? If so, use find, grep etc. to create your filelist. Create your flar using -f.

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:amk2121
ID: 33611440
i created the flash image Full by using the below command and arguments

#flarcreate -n sun4v -R / -S /backup

the /backup is a NFS share and it took around 9 hours to complete the flar archive with around 20 errors.

is there a better way to do it
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33611969
Did you see/read my previous comment?
0
 

Author Comment

by:amk2121
ID: 33643903
Yes I saw it, solaris 8 does have the -f option, can you provide an example so it would be very much clear for me. I have to do this straight on a production server.
0
 
LVL 13

Expert Comment

by:Rowley
ID: 33661996
Build your file list, excluding any dirs you don't want in the flar:

find / -print | egrep -v "dir1|dir2|dir3" > file.list

Then use this file to create your archive with the -f option
0
 
LVL 1

Expert Comment

by:ArPcPro
ID: 34144545
After you have created the flar, to create the Solaris 8 zone do:

[root@destmachine] /storage # zonecfg -z mys8zone
mys8zone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:mys8zone> create -t SUNWsolaris8
zonecfg:mys8zone> set zonepath=/storage/mys8zone
zonecfg:mys8zone> set autoboot=false
zonecfg:mys8zone> set ip-type=shared
zonecfg:mys8zone> add net
zonecfg:mys8zone:net> set physical=ce1
zonecfg:mys8zone:net> set address=10.255.48.175
zonecfg:mys8zone:net> set defrouter=10.255.48.129
zonecfg:mys8zone:net> end
zonecfg:mys8zone> verify
zonecfg:mys8zone> commit
zonecfg:mys8zone> exit

 [root@destmachine] /storage #
[root@destmachine] /storage # zoneadm -z mys8zone install -v -p -a /storage/machineY.flar
A ZFS file system has been created for this zone.
      Log File: /var/tmp/mys8zone.install.9208.log
       Product: Solaris 8 Containers 1.0
     Installer: solaris8 brand installer 1.21
          Zone: mys8zone
          Path: /storage/mys8zone
        Source: /storage/machineY.flar
    Media Type: flash archive
    Installing: This may take several minutes...
  Sanity Check: Passed.  Looks like a Solaris 8 system.
Postprocessing: This may take several minutes...
   Postprocess: Gathering information about zone mys8zone
   Postprocess: Creating mount points
   Postprocess: Linking in appropriate libc_psr.so for this platform
   Postprocess: Processing /etc/system
   Postprocess: Booting zone to single user mode
   Postprocess: Applying p2v module S20_apply_patches
        S20_apply_patches:  Unpacking patch:  115986-03
        S20_apply_patches: Installing patch:  115986-03
        S20_apply_patches:  Unpacking patch:  112963-32
        S20_apply_patches: Installing patch:  112963-32
   Postprocess: Applying p2v module S31_fix_net
   Postprocess: Applying p2v module S32_fix_nfs
   Postprocess: Applying p2v module S33_fix_vfstab
   Postprocess: Applying p2v module S34_fix_inittab
   Postprocess: Applying p2v module S35_fix_crontab
   Postprocess: Applying p2v module S36_fix_pam_conf
   Postprocess: Applying p2v module S40_setup_preload
   Postprocess: Halting zone
   Postprocess: Postprocessing successful.
        Result: Postprocessing complete.
   Service Tag: Gathering information about zone mys8zone
   Service Tag: Adding service tag: urn:st:73564354-c58d-c63e-ede4-b269fa685fa8
   Service Tag: Operation successful.

        Result: Installation completed successfully.
      Log File: /storage/mys8zone/root/var/log/mys8zone.install.9208.log
[root@destmachine] /storage #

Open in new window

Then change /etc/hosts e "/etc/defaultrouter" of the zone

Boot and then Login to the Solaris 8/9 Container

zoneadm -z mys8zone boot
zlogin -C mys8zone
zlogin mys8zone   (to change etc hosts on first login)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question