SlideShare una empresa de Scribd logo
1 de 41
Using Virtualization to setup Oracle QA/Development Database Environments 2/16/11 1
Using Virtualization to setup Oracle QA/Development Database Environments Rocky Mountain Training Days Feb. 16, 2011 Mike Gangler – Ithaka / JSTOR
Presentation Agenda ,[object Object]
Describe QA / Development ChallengesPre-Virtual Oracle Environment layout Solaris Zones and ZFS ZFS Commands Used Virtual Oracle Environment layout Steps required – Zones Scripts required Demo if time / Wifi Recap and QA 16-Feb-2011 3
Quick Survey How many people are using a form of Virtualization ? 16-Feb-2011
Quick Survey How many people are using a form of Virtualization ? VMWARE ? 16-Feb-2011
Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? 16-Feb-2011
Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? Oracle VM ? 16-Feb-2011
Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? Oracle VM ? Other ? 16-Feb-2011
Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? Oracle VM ? Other ? How many are running oracle instances on these VM machines ? 16-Feb-2011
Michael J. Gangler (Mike) Database Specialist – Ithaka Working with Oracle, MSSQL, MySQL Working with Oracle since Oracle Version 5 IOUG Executive Vice President – Finance Director of Membership services www.ioug.org April 10 – 14 – Collaborate –Orlando Southeast Michigan Oracle Professionals (SEMOP) Past President and Current Director www.semop.org Michigan Oracle User Summit (MOUS) Database / Tech. director www.mous.us Wednesday November 30th – Schoolcraft College 16-Feb-2011
Ithaka’s mission ITHAKA is a not-for-profit organization dedicated to helping the academic community take full advantage of rapidly advancing information and networking technologies. We serve scholars, researchers, and students by providing the content, tools, and services needed to preserve the scholarly record and to advance research and teaching in sustainable ways. We are committed to working in collaboration with other organizations to maximize benefits to our stakeholders. 16-Feb-2011 11
Ithaka’s Services Ithaka S+R works with initiatives and organizations to develop sustainable business models and conducts research and analysis on the impact of digital media on the academic community as a whole.    www.ithaka.org JSTOR helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive of over 1,200 academic journals and other content. JSTOR uses information technology and tools to increase productivity and facilitate new forms of scholarship.    www.jstor.org Portico preserves scholarly literature published in electronic form—more than 10,000 e-journals and 28,000 e-books—and ensures that these materials remains accessible to future scholars, researchers, and students.   www.portico.org 16-Feb-2011 12
16-Feb-2011
Pre-Virtual Environment 16-Feb-2011
Database / Application Specifics Oracle 10.2.0.4 SGA – 11 gb Oracle Dataguard / standby used Data is replicated via application and Daemons 1 schema – 160 – 200 gb Holds only pointers versus actual files Files are stored at each data center Software is a 3rd party application  16-Feb-2011 15
QA / Development Challenges QA requires restoration from Production  - Long export / Import times – (6-8 Hours) QA restore every 1 – 2 weeks. Multi-Data Center requires  additional work and headaches Development needs many restores due to changes and testing  Application written data replication (Versus Database) 16-Feb-2011 16
Pre-Virtual QA Environment 16-Feb-2011 Qa.jstor.org Data Replication Data Replication Web App Master Web App Slave Web App Slave Data Center 1 Data Center  2 Data Center 3 17
Pre-Virtual QA Steps Export Production database – 2 hours Zip production export – 30 minutes Copy production export file to sites Manchester, England – 3 hours Princeton , NJ – 1.5-2 hours Ann Arbor – 1 hour Unzip export file – 30 minutes Import export file – 3 – 5 hours Total Time for all 3 sites (approx) – 10 – 12 hours 16-Feb-2011 18
Virtual Environment Zones & ZFS 16-Feb-2011
Solaris Zones 16-Feb-2011 20
ZFS 16-Feb-2011 21 ZFS is a combined file system and logical volume manager designed by Sun Microsystems.  ZFS includes : ,[object Object]
Support for high storage capacities
Integration of the concepts of file system and volume management
Can provide snapshots and copy-on-write clones
Continuous integrity checking and automatic repair
RAID-Z and native NFSv4 ACLs.
ZFS is implemented as open-source software,[object Object]
ZFS Commands Used 16-Feb-2011 23 ,[object Object]
“zoneadm” – halts and starts the local zones
“zfs destroy” – removing a clone or zpool
“zfs clone” -  Writeable snapshots ,resulting in two independent file systems that share a set of blocks.
“zfs list” – lists out all the snapshots
“zfs set mountpoint” – allocates an area data to a mountpoint
“zfs set zoned”  - turns on/off the local zones,[object Object]
ZFS Snapshot - Example [oracle@aa2vps217]$ su Password:  # zfs snapshot tank/zones/aa2vps217-u01@20100701 # zfs list NAME                                USED  AVAIL  REFER  MOUNTPOINT tank                                849G   624G   267K  /tank tank/zones                          821G   624G    26K  /tank/zones tank/zones/aa2vps217-u01            677G   624G   400G  /u01 tank/zones/aa2vps217-u01@20100602   133G      -   162G  - tank/zones/aa2vps217-u01@20100701   0G          -   447G  - 16-Feb-2011
Virtual Environment Process and setup 16-Feb-2011
16-Feb-2011 27 Virtual QA environment ,[object Object],1 physical Machine 1 Global Zone 3 Zones Web Slave ,[object Object]
Master
Web
Slave1 physical Machine 1 Global Zone 3 Zones ,[object Object]

Más contenido relacionado

La actualidad más candente

Oracle 10g Performance: chapter 05 waits intro
Oracle 10g Performance: chapter 05 waits introOracle 10g Performance: chapter 05 waits intro
Oracle 10g Performance: chapter 05 waits intro
Kyle Hailey
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
Teja Bheemanapally
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
uzzal basak
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
Nikhil Kumar
 

La actualidad más candente (19)

Erp installation r12.2
Erp installation r12.2Erp installation r12.2
Erp installation r12.2
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
 
Oracle 10g Performance: chapter 05 waits intro
Oracle 10g Performance: chapter 05 waits introOracle 10g Performance: chapter 05 waits intro
Oracle 10g Performance: chapter 05 waits intro
 
Linux performance tuning & stabilization tips (mysqlconf2010)
Linux performance tuning & stabilization tips (mysqlconf2010)Linux performance tuning & stabilization tips (mysqlconf2010)
Linux performance tuning & stabilization tips (mysqlconf2010)
 
Linux or unix interview questions
Linux or unix interview questionsLinux or unix interview questions
Linux or unix interview questions
 
Backup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RACBackup and Restore of database on 2-Node RAC
Backup and Restore of database on 2-Node RAC
 
Apache Flink Stream Processing
Apache Flink Stream ProcessingApache Flink Stream Processing
Apache Flink Stream Processing
 
Tools, not only for Oracle RAC
Tools, not only for Oracle RACTools, not only for Oracle RAC
Tools, not only for Oracle RAC
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 
dNFS for DBA's
dNFS for DBA'sdNFS for DBA's
dNFS for DBA's
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
 
Database-Migration and -Upgrade with Transportable Tablespaces
Database-Migration and -Upgrade with Transportable TablespacesDatabase-Migration and -Upgrade with Transportable Tablespaces
Database-Migration and -Upgrade with Transportable Tablespaces
 
Arun
ArunArun
Arun
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
 
Systems Performance: Enterprise and the Cloud
Systems Performance: Enterprise and the CloudSystems Performance: Enterprise and the Cloud
Systems Performance: Enterprise and the Cloud
 
121 Pdfsam
121 Pdfsam121 Pdfsam
121 Pdfsam
 

Destacado (8)

Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1
 
Torre2010
Torre2010Torre2010
Torre2010
 
Miriam
MiriamMiriam
Miriam
 
Miriam
MiriamMiriam
Miriam
 
Mario5
Mario5Mario5
Mario5
 
Who Am I
Who Am IWho Am I
Who Am I
 
2008 2086 Gangler
2008 2086 Gangler2008 2086 Gangler
2008 2086 Gangler
 
Who Am I
Who Am IWho Am I
Who Am I
 

Similar a Mgangler Virtualization

ApacheCon NA 2011 report
ApacheCon NA 2011 reportApacheCon NA 2011 report
ApacheCon NA 2011 report
Koji Kawamura
 
Service Function Chaining in Openstack Neutron
Service Function Chaining in Openstack NeutronService Function Chaining in Openstack Neutron
Service Function Chaining in Openstack Neutron
Michelle Holley
 

Similar a Mgangler Virtualization (20)

dNFS_tech16 (2).pdf
dNFS_tech16 (2).pdfdNFS_tech16 (2).pdf
dNFS_tech16 (2).pdf
 
Flink at netflix paypal speaker series
Flink at netflix   paypal speaker seriesFlink at netflix   paypal speaker series
Flink at netflix paypal speaker series
 
UKOUG - What is Delivered with Solaris 11.4
UKOUG - What is Delivered with Solaris 11.4UKOUG - What is Delivered with Solaris 11.4
UKOUG - What is Delivered with Solaris 11.4
 
New Oracle Infrastructure2
New Oracle Infrastructure2New Oracle Infrastructure2
New Oracle Infrastructure2
 
[OpenInfra Days Korea 2018] Day 2 - E6: "SONA: ONOS SDN Controller 기반 OpenSta...
[OpenInfra Days Korea 2018] Day 2 - E6: "SONA: ONOS SDN Controller 기반 OpenSta...[OpenInfra Days Korea 2018] Day 2 - E6: "SONA: ONOS SDN Controller 기반 OpenSta...
[OpenInfra Days Korea 2018] Day 2 - E6: "SONA: ONOS SDN Controller 기반 OpenSta...
 
SOUG - Experiences with Oracle Solaris 11.4
SOUG - Experiences with Oracle Solaris 11.4SOUG - Experiences with Oracle Solaris 11.4
SOUG - Experiences with Oracle Solaris 11.4
 
ONOS Falcon planning presentation
ONOS Falcon planning presentationONOS Falcon planning presentation
ONOS Falcon planning presentation
 
Introduction to UNIX
Introduction to UNIXIntroduction to UNIX
Introduction to UNIX
 
Testing Delphix: easy data virtualization
Testing Delphix: easy data virtualizationTesting Delphix: easy data virtualization
Testing Delphix: easy data virtualization
 
Cloud, Opensource, OPNFV and CI/CD for VNFs
Cloud, Opensource, OPNFV and CI/CD for VNFsCloud, Opensource, OPNFV and CI/CD for VNFs
Cloud, Opensource, OPNFV and CI/CD for VNFs
 
SnapLogic- iPaaS (Elastic Integration Cloud and Data Integration)
SnapLogic- iPaaS (Elastic Integration Cloud and Data Integration) SnapLogic- iPaaS (Elastic Integration Cloud and Data Integration)
SnapLogic- iPaaS (Elastic Integration Cloud and Data Integration)
 
ApacheCon NA 2011 report
ApacheCon NA 2011 reportApacheCon NA 2011 report
ApacheCon NA 2011 report
 
Service Function Chaining in Openstack Neutron
Service Function Chaining in Openstack NeutronService Function Chaining in Openstack Neutron
Service Function Chaining in Openstack Neutron
 
Ai meetup Neural machine translation updated
Ai meetup Neural machine translation updatedAi meetup Neural machine translation updated
Ai meetup Neural machine translation updated
 
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
OSDC 2016 - Interesting things you can do with ZFS by Allan Jude&Benedict Reu...
 
Take your database source code and data under control
Take your database source code and data under controlTake your database source code and data under control
Take your database source code and data under control
 
basha
bashabasha
basha
 
Why you’re going to fail running java on docker!
Why you’re going to fail running java on docker!Why you’re going to fail running java on docker!
Why you’re going to fail running java on docker!
 
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
What we unlearned_and_learned_by_moving_from_m9000_to_ssc_ukoug2014
 
Flink forward-2017-netflix keystones-paas
Flink forward-2017-netflix keystones-paasFlink forward-2017-netflix keystones-paas
Flink forward-2017-netflix keystones-paas
 

Más de Secure-24 (9)

2019 odtug webinar-20190129
2019 odtug webinar-201901292019 odtug webinar-20190129
2019 odtug webinar-20190129
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4
 
2016_1201_gangler_ppt
2016_1201_gangler_ppt2016_1201_gangler_ppt
2016_1201_gangler_ppt
 
Granting Oracle Schema Permissions when Objects not created Yet
Granting Oracle Schema Permissions when Objects not created YetGranting Oracle Schema Permissions when Objects not created Yet
Granting Oracle Schema Permissions when Objects not created Yet
 
Using RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CUsing RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12C
 
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPOptimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
 
2015 582 gangler_ppt - ms
2015 582 gangler_ppt - ms2015 582 gangler_ppt - ms
2015 582 gangler_ppt - ms
 
Using oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archiveUsing oracle12c pluggable databases to archive
Using oracle12c pluggable databases to archive
 
EM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RACEM12C High Availability without SLB and RAC
EM12C High Availability without SLB and RAC
 

Mgangler Virtualization

  • 1. Using Virtualization to setup Oracle QA/Development Database Environments 2/16/11 1
  • 2. Using Virtualization to setup Oracle QA/Development Database Environments Rocky Mountain Training Days Feb. 16, 2011 Mike Gangler – Ithaka / JSTOR
  • 3.
  • 4. Describe QA / Development ChallengesPre-Virtual Oracle Environment layout Solaris Zones and ZFS ZFS Commands Used Virtual Oracle Environment layout Steps required – Zones Scripts required Demo if time / Wifi Recap and QA 16-Feb-2011 3
  • 5. Quick Survey How many people are using a form of Virtualization ? 16-Feb-2011
  • 6. Quick Survey How many people are using a form of Virtualization ? VMWARE ? 16-Feb-2011
  • 7. Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? 16-Feb-2011
  • 8. Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? Oracle VM ? 16-Feb-2011
  • 9. Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? Oracle VM ? Other ? 16-Feb-2011
  • 10. Quick Survey How many people are using a form of Virtualization ? VMWARE ? Solaris ? Oracle VM ? Other ? How many are running oracle instances on these VM machines ? 16-Feb-2011
  • 11. Michael J. Gangler (Mike) Database Specialist – Ithaka Working with Oracle, MSSQL, MySQL Working with Oracle since Oracle Version 5 IOUG Executive Vice President – Finance Director of Membership services www.ioug.org April 10 – 14 – Collaborate –Orlando Southeast Michigan Oracle Professionals (SEMOP) Past President and Current Director www.semop.org Michigan Oracle User Summit (MOUS) Database / Tech. director www.mous.us Wednesday November 30th – Schoolcraft College 16-Feb-2011
  • 12. Ithaka’s mission ITHAKA is a not-for-profit organization dedicated to helping the academic community take full advantage of rapidly advancing information and networking technologies. We serve scholars, researchers, and students by providing the content, tools, and services needed to preserve the scholarly record and to advance research and teaching in sustainable ways. We are committed to working in collaboration with other organizations to maximize benefits to our stakeholders. 16-Feb-2011 11
  • 13. Ithaka’s Services Ithaka S+R works with initiatives and organizations to develop sustainable business models and conducts research and analysis on the impact of digital media on the academic community as a whole. www.ithaka.org JSTOR helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive of over 1,200 academic journals and other content. JSTOR uses information technology and tools to increase productivity and facilitate new forms of scholarship. www.jstor.org Portico preserves scholarly literature published in electronic form—more than 10,000 e-journals and 28,000 e-books—and ensures that these materials remains accessible to future scholars, researchers, and students. www.portico.org 16-Feb-2011 12
  • 16. Database / Application Specifics Oracle 10.2.0.4 SGA – 11 gb Oracle Dataguard / standby used Data is replicated via application and Daemons 1 schema – 160 – 200 gb Holds only pointers versus actual files Files are stored at each data center Software is a 3rd party application 16-Feb-2011 15
  • 17. QA / Development Challenges QA requires restoration from Production - Long export / Import times – (6-8 Hours) QA restore every 1 – 2 weeks. Multi-Data Center requires additional work and headaches Development needs many restores due to changes and testing Application written data replication (Versus Database) 16-Feb-2011 16
  • 18. Pre-Virtual QA Environment 16-Feb-2011 Qa.jstor.org Data Replication Data Replication Web App Master Web App Slave Web App Slave Data Center 1 Data Center 2 Data Center 3 17
  • 19. Pre-Virtual QA Steps Export Production database – 2 hours Zip production export – 30 minutes Copy production export file to sites Manchester, England – 3 hours Princeton , NJ – 1.5-2 hours Ann Arbor – 1 hour Unzip export file – 30 minutes Import export file – 3 – 5 hours Total Time for all 3 sites (approx) – 10 – 12 hours 16-Feb-2011 18
  • 20. Virtual Environment Zones & ZFS 16-Feb-2011
  • 22.
  • 23. Support for high storage capacities
  • 24. Integration of the concepts of file system and volume management
  • 25. Can provide snapshots and copy-on-write clones
  • 26. Continuous integrity checking and automatic repair
  • 27. RAID-Z and native NFSv4 ACLs.
  • 28.
  • 29.
  • 30. “zoneadm” – halts and starts the local zones
  • 31. “zfs destroy” – removing a clone or zpool
  • 32. “zfs clone” - Writeable snapshots ,resulting in two independent file systems that share a set of blocks.
  • 33. “zfs list” – lists out all the snapshots
  • 34. “zfs set mountpoint” – allocates an area data to a mountpoint
  • 35.
  • 36. ZFS Snapshot - Example [oracle@aa2vps217]$ su Password: # zfs snapshot tank/zones/aa2vps217-u01@20100701 # zfs list NAME USED AVAIL REFER MOUNTPOINT tank 849G 624G 267K /tank tank/zones 821G 624G 26K /tank/zones tank/zones/aa2vps217-u01 677G 624G 400G /u01 tank/zones/aa2vps217-u01@20100602 133G - 162G - tank/zones/aa2vps217-u01@20100701 0G - 447G - 16-Feb-2011
  • 37. Virtual Environment Process and setup 16-Feb-2011
  • 38.
  • 40. Web
  • 41.
  • 42. Db
  • 44. Db
  • 45. Slave
  • 46. Db
  • 47.
  • 48.
  • 49.
  • 50. 16-Feb-2011 31 ZFS Clone Example Example Clone Script – Page 1 #!/usr/bin/env bash export PATH=/usr/local/bin:$PATH host=aa2x4240-04 echo =====Must be run as SU====== echo =====Cloning omega - 217, 218, 219 ====== echo =====listing out the zone copies======= echo zfs list -o name,origin zfs list -o name,origin echo =====halting zones======= zoneadm -z aa2vps218 halt zoneadm -z aa2vps219 halt
  • 51. 16-Feb-2011 32 ZFS Clone Example – Page 2 Example Clone Script – Page 2 (cont) echo =====destroying old u01 directories====== zfs destroy -r tank/zones/aa2vps218-u01 zfs destroy -r tank/zones/aa2vps219-u01 echo =====cloning snapshots=========== zfs clone tank/zones/aa2vps217-u01@`date +%Y%m%d` tank/zones/aa2vps218-u01 zfs clone tank/zones/aa2vps217-u01@`date +%Y%m%d` tank/zones/aa2vps219-u01 echo =====listing out the new zone copies====== echo zfs list -o name,origin zfs list -o name,origin
  • 52. 16-Feb-2011 33 ZFS Clone Example – Page 3 Example Clone Scripts – Page 3 (cont) echo =====setting the mount points======== zfs set mountpoint=/u01 tank/zones/aa2vps218-u01 zfs set mountpoint=/u01 tank/zones/aa2vps219-u01 echo =====set zoned=on=========== zfs set zoned=on tank/zones/aa2vps218-u01 zfs set zoned=on tank/zones/aa2vps219-u01 echo =====boot machines======= zoneadm -z aa2vps218 boot zoneadm -z aa2vps219 boot echo =====listing out the new zone copies====== zfs list -o name,origin
  • 53. After Clone Script - Slaves NOTE – used if the database name needs to be the same Rename listener.ora, tnsnames.ora with new machine name Clean up Grid Control – Remove entries from sysman/emd directory Change sysman/emd/targets.xml – new machine Change sysman/emd/emd.proprties – new machine name 16-Feb-2011 34
  • 54. After Clone Example Script - Slaves NOTE – used if the database name needs to be the same Runs on Slave Sites – as Oracle User Needs to be in $HOME #!/bin/bash ### set -xv oldmach=$1 newmach=$2 for FILE in $ORACLE_HOME/network/admin/*.ora do sed -e 's/'"$oldmach"'/'"$newmach"'/g' $FILE > tmp.out mvtmp.out $FILE done 16-Feb-2011 35
  • 55. After Clone Example Script – Slaves – part 2 rm -r -f $AGENT_HOME/sysman/emd/core*.* rm -r -f $AGENT_HOME/sysman/emd/state/* rm -r -f $AGENT_HOME/sysman/emd/upload/* rm -r -f $AGENT_HOME/sysman/emd/recv/* rm -r -f $AGENT_HOME/sysman/emd/collection/* rm -r -f $AGENT_HOME/sysman/emd/lastupld.xml rm -r -f $AGENT_HOME/sysman/emd/agntstmp.txt for FILE in $AGENT_HOME/sysman/emd/targets.xml do sed -e 's/'"$oldmach"'/'"$newmach"'/g' $FILE > tmp.out mvtmp.out $FILE Done for FILE in $AGENT_HOME/sysman/config/emd.properties do sed -e 's/'"$oldmach"'/'"$newmach"'/g' $FILE > tmp.out mvtmp.out $FILE done exit 0 16-Feb-2011 36
  • 56. 16-Feb-2011 37 Example Run – ZFS Clone – Page 1 # ./clone-presentation.sh =====Must be run as SU====== =====Cloning omega - 97, 98, 99 and ====== =====halting zones======= zoneadm -z aa2vps98 halt zoneadm -z aa2vps99 halt =====destroying old u01 directories====== zfs destroy -r tank/zones/aa2vps98-u01 zfs destroy -r tank/zones/aa2vps99-u01 =====cloning snapshots=========== zfs clone tank/zones/aa2vps97-u01@20101012 tank/zones/aa2vps98-u01 zfs clone tank/zones/aa2vps97-u01@20101012 tank/zones/aa2vps99-u01 =====setting the mount points======== zfs set mountpoint=/u01 tank/zones/aa2vps98-u01 zfs set mountpoint=/u01 tank/zones/aa2vps99-u01 cannot mount '/u01': directory is not empty property may be set but unable to remount filesystem =====set zoned=on=========== zfs set zoned=on tank/zones/aa2vps98-u01 zfs set zoned=on tank/zones/aa2vps99-u01 =====boot machines========= zoneadm -z aa2vps98 boot zoneadm -z aa2vps99 boot
  • 57. 16-Feb-2011 38 Example Run – ZFS Clone – Page 2 =====listing out the new zone copies====== zfs list -o name,origin NAME ORIGIN tank - tank/snaps - tank/swap1 - tank/zones - tank/zones/aa2vps191 - tank/zones/aa2vps191-u01 - tank/zones/aa2vps247-v01 - tank/zones/aa2vps247-v01@20081106_detached - tank/zones/aa2vps247-v02 - tank/zones/aa2vps247-v02@20081105_detached - tank/zones/aa2vps248-v01 tank/zones/aa2vps247-v01@20081106_detached tank/zones/aa2vps248-v02 tank/zones/aa2vps247-v02@20081105_detached tank/zones/aa2vps249-v01 tank/zones/aa2vps247-v01@20081106_detached tank/zones/aa2vps249-v02 tank/zones/aa2vps247-v02@20081105_detached tank/zones/aa2vps97 tank/zones/aa2vps98@200909131322-migration tank/zones/aa2vps97-u01 - tank/zones/aa2vps97-u01@20101008 - tank/zones/aa2vps98 tank/zones/aa2vps99@200909131307-migration tank/zones/aa2vps98@200909131322-migration - tank/zones/aa2vps98-u01 tank/zones/aa2vps97-u01@20101008 tank/zones/aa2vps99 - tank/zones/aa2vps99@200909131307-migration - tank/zones/aa2vps99-u01 tank/zones/aa2vps97-u01@20101008 #
  • 58.
  • 59. Keep the resource management simple – Use dedicated CPU feature in lieu resource pools
  • 60. To Prevent potential problems in the global zone:
  • 61. Create a separate file system for each local zone root
  • 62. Avoid using bock/raw devices in non-global zones
  • 63. For Greater Isolation of Environments:
  • 64. Keep the zone root, Oracle Binaries and Oracle data on separate file systems and mounts.
  • 65.
  • 66. Very Efficient with Test and QA databases
  • 67. I haven’t tried it with Production databases, but we do use it for Production Web Servers
  • 68. Need to understand all the applications on the local zones
  • 69. You can clone across local zones and global zones
  • 70.

Notas del editor

  1. ----- Meeting Notes (2/15/11 19:49) -----Basically we digitize scholar journals for University's and researchers.
  2. ----- Meeting Notes (2/15/11 19:49) -----Ithaka is the main holding company, www.jstor.org is the main application and www.portico.org is for journals nolonger being published.We also categorize and digitize African Plants – www.aluka.org and art – www.artstor.orgBasically in the old days we use to look up a journal, give the card to the librarian and then they would return with the magazine.
  3. Explain the dispiplines
  4. Multi datacenter – have to move the data to each place, latency etc.
  5. Data is replicated via home grown db replication versus built in database replication like Streams, golden gate. Databases and data is duplicated at each data center
  6. First of all we need a global Zone (s) and local zones
  7. ZFS is the file system that allows the zones to function and provide the tools used in snapshots, cloning and restores
  8. Note – remind them that a load balancer fits between the url and the web servers
  9. Negotiated a deal to use the prior nights backup file versus a fresh copy !