Introduction to OpenSolaris by StuartSpruce

VIEWS: 0 PAGES: 35

									  Introduction
       to
  OpenSolaris
Lee Teck Meng
IT Architect
Sun Microsystems, Inc.
                 Agenda
What is OpenSolaris?
OpenSolaris; The Distribution
Cool stuff in OpenSolaris
Sun xVM VirtualBox
What is OpenSolaris?
pg4
Some History ...
  Solaris is a proprietary UNIX system by
  Sun Microsystems
  Solaris is widely regarded for it's
  stability
  Open Sourced in June 2005 under the
  CDDL license as OpenSolaris
  Community at “opensolaris.org"
  Extreme innovation




                                            pg5
What is OpenSolaris?
A new operating system distribution, based on
the source code of Solaris

                      Releases: 2008.05, 2008.11
                      Open source
                      Redistributable
                      Free to use
                      Easy to try
                      Supported by Sun
                      Still rock solid, road tested
                      Solaris at the base

                                                 pg6
Easy to Acquire
    sti abl C
R edi rbut e  D
        ars 
      Sol i 10                   ars
                          O penSol i



          C
         6  D s              ngl C
                            Si e  D




                                       .org
                               r orSies
                             M ir   t
                            D
                         Sun  ow nl   C   er
                                   oad  ent



      D     oad  ent
   Sun  ow nl  C    er       l e      yw
                         A vaiabl Ever here


                                               pg7
Easy to Install
 




    • Si plfed nst land 
       m ii i al       upgrade
    • Localzed  aphi  nst l  
           i  gr   cali aler
    • Aut at basi syst  
        om es             i aton
                c  em confgur i

                                   pg8
Easy to Maintain
 Image Packaging System




  Easy to administer
  Easy to package
  for the developer
  Determine, control
  and resolve dependencies
  Rapid delivery of fixes
  Upgrade and rollback with ZFS snapshots
Easy to Use
 Familiar GNU user environment
 State-of-the-art
 window system
 Built-in developer tools
 Optimized Web 2.0
 deployment packages




                                 pg10
OpenSolaris Repositories
 Community              Sun            Subscription
                    Free Sun and 3rd        Bug
 Latest Releases     Party Binaries        Fixes
  3rd Party Open       Developer          Security
 Source Packages       Showcase           Updates
  Community Open       Partner             Back
  Source Packages     Marketplace          Ports
  Current Release                          Early
      Updates                             Access
Existing Repositories
 pkg.opensolaris.org
   Stable OpenSolaris and supported Free SW
      updated every 6 month with new OpenSolaris release
      critical bug fixes
 pkg.opensolaris.org/dev
   Development builds of OpenSolaris
      updated every 2 weeks with new builds
 pkg.openslaris.org/contrib
   OpenSource SW contributed by the community



                                                           pg12
Feedback is always critical!
 http://bugs.opensolaris.org/
 .... because NOBODY writes perfect code
 Report or diagnose bugs
 Lookup and query bugs




                                           pg13
Cool Stuff in OpenSolaris
                                         Best
Solaris ZFS                              File
                                        System


    End-to End               Immense
   Data Integrity          Data Capacity

  64-bit checksums           World’s first
   Copy-on-write          128-bit file system
    transactions


     Easier                   Huge
  Administration        Performance Gains
Pooled storage model–
 no volume manager      Especially architected
Move volumes between          for speed
       systems
Copy-on-Write and Transactional
 Uber-block

                                                                                    Original Data

                                                                                      New Data




                       Initial block tree          Writes a copy of some changes


Original Pointers                                                                  New Uber-block

New Pointers




                Copy-on-write of indirect blocks     Rewrites the Uber-block
ZFS Snapshots

    ovi a ead­ y  nti tm e 
  Pr de  r                     offl syst
              onl poi ­n­i copy   ie  em
  Copy-on-write makes them essentially “free”
  Very space efficient – only changes are tracked
  And instantaneous – just doesn't delete the copy
Snapshot Uber-block                        New Uber-block

                                                r   a
                                            C ur entD at
Self-Healing Data
   can  ectbad  a  ng 
ZFS    det                       and 
               dat usi checksum s 
     ” he  a  ng t m r or copy.
 “heal t dat usi is  ir ed 
      i i
   Applcaton                  i i
                           Applcaton                   i i
                                                   Applcaton


      M r or
   ZFS  ir                   M r or
                          ZFS  ir                     M r or
                                                   ZFS  ir




  Detects Bad Data   Gets Good Data from Mirror   “Heals” Bad Copy
OpenSolaris Time Slider
The Power of ZFS in a New Intuitive User Interface




  Automatic backup of data on
  the same disc using the
  unique ZFS filesystem feature
  Browse and recover files from
  snapshot backups using the GNOME file manager
DTrace; “the One True Tool.”
                 Framework introduced in
                 Solaris 10
                 Dynamically interpreted
                 language allows for arbitrary
                 actions and predicates
                 Can instrument at both user-
                 level and kernel-level
                 DTrace is designed for use
                 on production systems
                 Problems solved in minutes
                 not days
                 No code changes required
What is instrumentation??
 Question: How do you typically do
 instrumentation??
  Answer:
 #ifdef DEBUG
  printf(“Value of Q: %d”, Q);

 Question: What do you need to do to add new
 instrumentation?
 Answer: edit, compile, link........

 What if you could do this dynamically, both on the
 system and on your own code??
The DTrace Revolution
 DTrace tightens the diagnosis loop:


    hypothesis → instrumentation → data gathering
    →     analysis → hypothesis ........



 Tightened loop effects a revolution in the way
 we diagnose transient failure
OpenSolaris Distro Constructor
  Create custom bootable images with your
  collection of software and settings
     Simple xml based software list
        Add SW using IPS,
        Add non IPS SW (SVr4 pkg format)
     Custom post install scripts
        Customize image with local configurations
     Creates iso and usb images

              #distro_const build slim_cd.xml



slim_cd.xml
OpenSolaris – What else?
 Trusted extension
 GNOME 2.24
 Firefox 3.0
 Songbird 1.0.0 beta
 Open Office 3.0 *
 Thunderbird 2.0 + Lightning
 Pidgin 2.5.3
 Tracker 0.6.6
 XChat 2.8.6
 Ekiga 3.0
 Flashplayer 9/10
 ......
Sun xVM VirtualBox
http://virtualbox.org
Sun xVM VirtualBox
 It's a desktop
 virtualization tool
 Suitable for
 Developers or End
 Users
 Runs on many OSes
 Runs many OSes as
 guests
 VirtualBox is Free
 VirtualBox.org – go,
 download and try!
Sun xVM VirtualBox



             Guest Platforms

            Sun xVM VirtualBox



             Host Platforms




             x86 Hardware
Time for some demos
OpenSolaris.com
Learn
  Explore the learning opportunities
  Get the guides and videos
Collaborate
  Join the communities
  Make your mark; help shape
  the next generation of the Solaris OS
  Connect with Sun distinguished engineers
  and other leading lights of the OpenSolaris
  community
OpenSolaris. Start It Up!
   Get It           Experience It        Install It




   Available          Live CD           Easy
   everywhere                           Graphical
                      See the best
   Smaller faster     in OpenSolaris,   Supported on
   download           risk free         ~1000 systems
                                        Runs in popular
                                        virtualization
                                        environments
    Take a Free OpenSolaris
Online course – Get a Certificate!
    www.sunstudentcourses.com
Get trained and certified!
 Get started with “How to” guides
   http://www.sun.com/software/solaris/howto_guides.jsp
 Get trained with sun.com/training
   at no cost in the frame of SAI
   http://www.sun.com/products-n-solutions/edu/programs/sai/

 ... or get trained for free
   http://www.sun.com/solaris/freetraining
 Get certified
   http://www.sun.com/training/certification




                                                               pg32
If you need help
 IRC
    irc://irc.freenode.net/#opensolaris
 Mailing lists
    http://mail.opensolaris.org/
 web forums
    http://opensolaris.org/os/discussions
 http://opensolaris.org/os/newbies




                                            pg33
OpenSolaris: Get in NOW!!!!!!!!!!!!




               opensolaris.com/get
OpenSolaris: Get it. Use it. Learn it. Be Brilliant.
   Thank You.

Lee Teck Meng
IT Architect
teck-meng.lee@sun.com

								
To top