Orhan BIYIKLIOGLU feat Husnu SENSOY 1 Orhan Bıyıklıoğlu • UNIX/Linux experience over 10 years. • Certified Engineer. • Member of the systems administration team responsible with more than 2000 UNIX servers. Hüsnü Şensoy • Oracle Development & DBA experience over 6 years. • Oracle DBA of the Year 2009. • on BI. • ORACLE experience over 120 TB of customer data. Orhan BIYIKLIOGLU feat Husnu SENSOY 2 Unified Storage Systems 101 Solutions to Database B&R Challenges using Unified Storage Systems. Unified Storage Best Practices for B&R. Sample Designs using Unified Storage Systems Conclusion Orhan BIYIKLIOGLU feat Husnu SENSOY 3 Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems Orhan BIYIKLIOGLU feat Husnu SENSOY 4 Sun Storage 7110 1 socket Up to 8GB RAM 14x SAS 10K RPM Drives 2 TB or 4.2 TB Only 2U Sun Storage 7410 4 / 8 sockets Up to 256 GB / 512 GB RAM Sun Storage 7310 Up to 576 TB raw storage 2 / 4 sockets Up to 600 GB / 1.2 TB SSD Read Flash Up to 64 GB / 128 GB RAM Accelerator (SSD) Up to 192 TB raw storage Write Flash Accelerator option (SSD) Up to 600 GB / 1.2 TB SSD Read Hybrid Storage Pool I/O Acceleration Flash Accelerator (SSD) Write Flash Accelerator option (SSD) Hybrid Storage Pool I/O Acceleration Orhan BIYIKLIOGLU feat Husnu SENSOY 5 Application ZFS Hybrid Storage Pool ZIL L2ARC Pool Write SSDs Read SSDs HDDs Orhan BIYIKLIOGLU feat Husnu SENSOY 6 Orhan BIYIKLIOGLU feat Husnu SENSOY 7 Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems Orhan BIYIKLIOGLU feat Husnu SENSOY 8 No compression option for image backups available in RMAN No storage conservative way to store multiple copies of same data item in RMAN. Host interference in tiering to ternary storage. Full/Partial replication of multiple databases using same backup. Restore need of base backup in case of an erroneous recovery during point in time recovery. Replication of disk backup to remote destination. Orhan BIYIKLIOGLU feat Husnu SENSOY 9 Now Image backup/Backupset Level 0 # 1 # 2 One Week Ago # 3 # 4 Three Days Before Recovery Range run { RESTORE DATABASE FROM TAG WEEKLY_FULL_BCKP; } run { [SET UNTIL SCN x|SEQUENCE x|TIME ‘x’] RECOVER DATABASE FROM TAG DAILY_INC_BCKP; } Orhan BIYIKLIOGLU feat Husnu SENSOY 10 # 1 Image Backup # 2 # 3 # 4 # 5 # 6 # 7 Advantage One Week Ago Faster recovery due to minimized incremental applies. Disadvantage Orhan BIYIKLIOGLU feat Husnu SENSOY Image copies can’t benefit from RMAN binary compression No way to go back more than a day 11 RMAN Compression ZFS Compression Orhan BIYIKLIOGLU feat Husnu SENSOY 12 120 100 120 100 100 80 60 40 100 80 50.25 60 31.75 29.41 27.70 37.26 40 20 30.64 20 0 0 None Orhan BIYIKLIOGLU feat Husnu SENSOY LOW MEDIUM 13 Now #3 0 Image #4 Image #3 Image #2 Image #1 #1 #2 #3 #4 #5 #6 #7 … #3 0 #8 #9 #1 0 #1 1 #1 2 #1 3 #1 4 #1 5 … #3 0 #8 #9 #1 0 #1 1 #1 2 #1 3 #1 4 #1 5 … #3 0 One Month Ago Two Weeks Ago Last Night One Week Ago Orhan BIYIKLIOGLU feat Husnu SENSOY 14 • Assume a database of size 10 TB • Daily change rate of 500 GB • 4x10 TB image backups • (30+23+15+1)x500 GB incremental backups • 75 TB of backup storage Orhan BIYIKLIOGLU feat Husnu SENSOY 15 • • Ternary Storage Open Storage 7000 Ternary Storage Database Host NDMP NFS Database Host RMAN will build a logical channel between Open Storage 7000 to ternary storage This cause • CPU consuption on database host • HBA utilization on database host • NIC utilization on databse host Backup Host Orhan BIYIKLIOGLU feat Husnu SENSOY Snapshot Open Storage 7000 16 • It was always a hard issue to clone a database before 11g. • Active Database Duplication makes it impressively easier in terms of configuration. • But it is still a time consuming event. Orhan BIYIKLIOGLU feat Husnu SENSOY 17 1. Create a readonly snapshot 2. Make it read & write clone 3. Expose those clones to clone host over NFS 4. Do classical database recovery Clone Database Host Image Copies FRA Incremental Backupsets Archivelogs INC Controlfile Autobackup OTHR Open Storage 7000 Orhan BIYIKLIOGLU feat Husnu SENSOY 18 • Did you ever rollback a single database tablespace to get a previous state of a table before an erroneous update operation ? • How do you decide on parameter for UNTIL clause ? • What if you make a wrong decision ? Bad transaction SCN Older version than you need Image Backup # 1 # 2 Image Backup # 1 # 2 Bad transaction is already applied # 3 # 4 Orhan BIYIKLIOGLU feat Husnu SENSOY 19 1. 2. 3. 4. 5. 6. Clone Database Host Image Copies FRA Incremental Backupsets Archivelogs INC Create a readonly snapshot Make it read & write clone Expose those clones to clone host over NFS Do classical database recovery Check the data If there seems to be a problem return to step 1 Controlfile Autobackup OTHR Open Storage 7000 Orhan BIYIKLIOGLU feat Husnu SENSOY 20 Database Host Open Storage 7000 Open Storage 7000 WAN Remote Remote Host Remote Host Remote Host Host Orhan BIYIKLIOGLU feat Husnu SENSOY Ternary Storage 21 Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems Orhan BIYIKLIOGLU feat Husnu SENSOY 22 • Use IB or 10 Gbit network fabric to access unified storage systems. Workload RDBMA IPoIB NFS Streaming Read 2.11 GB/s 1.47 GB/s NFS Streaming Write 984 MB/s 753 MB/s • Remember that current bottleneck on Unified Storage Systems is PCIe 1.0 I/O interconnects. • Refer to followings for more performance details on Unified Storage Systems. • Link 1 • Link 2 Orhan BIYIKLIOGLU feat Husnu SENSOY 23 • Choose 64K/128K blocksize for your • Image copy • Backupset • archivelogs Seconds 7000.00 • Remember that dedup and compression options for shares are CPU demanding operations. Don’t6000.00 use them unless you need them. • Use RMAN compression whenever possible unless you have a host CPU 5000.00 bottleneck because it will increase you effective write speed. 4000.00 • 11g Release 2 : LOW or MEDIUM 3000.00 • 11g Release 1 : LZIB • Don’t use fast recovery with 2000.00 SWITCH option 1000.00 • Unless your production storage has a comparable performance with unified storage systems 0.00 1 2 4 8 12 • For fully parallelise the backup of BIGFILE datafiles useDOPSECTION option with 11g Release 1. Copy Backupset Orhan BIYIKLIOGLU feat Husnu SENSOY BZIP2 16 ZLIB 24 • Design multiple shares differentiated depending on your need. • You can asynchronously move your backups to tape drivers from unified storage systems • But since those backup copies will require a restore from tape before database restore or SWITCH operation. • In case of a conflict with routine backup activity, use read-only snapshots as tape copy source. • Cleanup unnecessary snapshots & clones. Orhan BIYIKLIOGLU feat Husnu SENSOY 25 RMAN Backup Share Configuration Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems RMAN Restore & Recovery Solution Orhan BIYIKLIOGLU feat Husnu SENSOY 26 • • • • A system already running on NFS or another storage with a comparable performance. A single disk copy is sufficient. Quick recovery from failure is neccessary in case of a primary storage loss. Database size very small with compared to Unified Storage Systems pool size. ALTER SYSTEM SET DB_RECOVERY_DEST=‘/export/fra’; RUN { RECOVER COPY OF DATABASE WITH TAG ‘DAILY_BACKUP'; Image BACKUP Copies INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG ‘DAILY_BACKUP‘ DATABASE; } Incremental Backupsets RUN { ALTER DATABASE MOUNT; SWITCH DATABASE TO COPY; RECOVER DATABASE; ALTER DATABASE OPEN; } Orhan BIYIKLIOGLU feat Husnu SENSOY Archivelogs Controlfile Autobackup FRA Open Storage 7000 27 ALTER SYSTEM SET DB_RECOVERY_DEST=‘/export/fra’; RUN { RECOVER COPY OF DATABASE WITH TAG ‘DAILY_BACKUP'; BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG ‘DAILY_BACKUP‘ DATABASE TO DESTINATION ‘/export/inc’; RUN { SET COMPRESSION ALGORITHM ‘MEDIUM’; RECOVER COPY OF DATABASE WITH TAG ‘WEEKLY_BACKUP‘ UNTIL TIME ‘SYSDATE-7’; BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG ‘WEEKLY_BACKUP‘ DATABASE TO DESTINATION ‘/export/inc’; } RUN { ALTER DATABASE MOUNT; RESTORE DATABASE FROM TAG ‘DAILY_BACKUP’ RECOVER DATABASE; ALTER DATABASE OPEN; } } • • Quick recovery using SWITCH is not an option Two recovery capabilities are necessary • To Just now • To somewhere in last week • Image Copies Incremental Backupsets Archivelogs DEDUP LZJB FRA Unified Storage Systems pool is at comparable size with production size. Orhan BIYIKLIOGLU feat Husnu SENSOY INC ARCH LZJB Open Storage 7000 28 Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems Orhan BIYIKLIOGLU feat Husnu SENSOY 29 • Oracle 7000 Unified Storage Systems based on • Commodity Hardware • ZFS • Analytics is a strong product that will solidfy your RMAN backup & recovery routines. • You can start testing Unified Storage Systems capabilities by downloading VirtualBox & Oracle’s Sun Unified Storage Simulator • Unconference session Unified Storage Systems • On Monday the 20th from 4-5pm I • In Mason room @ the Hotel Parc 55 (55 Cyril Magnin Street, SF). Orhan BIYIKLIOGLU feat Husnu SENSOY 30 Orhan BIYIKLIOGLU feat Husnu SENSOY 31