Solved

How to create a flash Image on solaris 8

Posted on 2010-08-27
8
961 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:
Amol 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Suggested Courses
Course of the Month6 days, 13 hours left to enroll

623 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