Upload
fagan
View
36
Download
0
Embed Size (px)
DESCRIPTION
Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems. Hüsnü Şensoy h [email protected] Founder & VLDB Expert Global Maksimum Data & Information Technologies. Orhan Bıyıklıoğlu [email protected] System Architect TURKCELL - PowerPoint PPT Presentation
Citation preview
1Orhan BIYIKLIOGLU feat Husnu SENSOY
Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage SystemsOrhan Bıyıklıoğ[email protected]
System ArchitectTURKCELL Communication Services
Hüsnü Ş[email protected]
Founder & VLDB ExpertGlobal MaksimumData & Information Technologies
Orhan BIYIKLIOGLU feat Husnu SENSOY 2
Who are we ?Orhan Bıyıklıoğlu Hüsnü Şensoy
• Oracle Development & DBA experience over 6 years.
• Oracle DBA of the Year 2009.
• on BI.• ORACLE Exadata v2
experience over 120 TB of customer data.
• UNIX/Linux experience over 10 years.
• Certified Engineer.
• Member of the systems administration team responsible with more than 2000 UNIX servers.
Orhan BIYIKLIOGLU feat Husnu SENSOY 3
Agenda 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 4
Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage SystemsUnified Storage Systems 101
Orhan BIYIKLIOGLU feat Husnu SENSOY 5
Line of Unified Storage Systems
Sun Storage 7110 1 socket Up to 8GB RAM 14x SAS 10K RPM Drives 2 TB or 4.2 TB Only 2U
Sun Storage 7310 2 / 4 sockets Up to 64 GB / 128 GB RAM Up to 192 TB raw storage Up to 600 GB / 1.2 TB SSD
Read Flash Accelerator (SSD)
Write Flash Accelerator option (SSD)
Hybrid Storage Pool I/O Acceleration
Sun Storage 7410 4 / 8 sockets Up to 256 GB / 512 GB RAM Up to 576 TB raw storage Up to 600 GB / 1.2 TB SSD Read
Flash Accelerator (SSD) Write Flash Accelerator option
(SSD) Hybrid Storage Pool I/O
Acceleration
Orhan BIYIKLIOGLU feat Husnu SENSOY 6
Open Storage 7000 Series Architectural Overview
Application
ZFS Hybrid Storage Pool
ZIL L2ARC Pool
Write SSDs Read SSDs HDDs
Orhan BIYIKLIOGLU feat Husnu SENSOY 7
Analytics
Orhan BIYIKLIOGLU feat Husnu SENSOY 8
Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems
Solutions to Database B&R Challenges using Unified Storage Systems
Orhan BIYIKLIOGLU feat Husnu SENSOY 9
Database Backup & Recovery Challenges of Today
No compression option for image backups available in RMANNo 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 10
RecoveryImage backup/Backupset Level 0 #
1#2
#3
#4
One Week Ago Three Days Before
Now
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 11
Incremental Recovery of Datafile Image Copies
One Week Ago
Image Backup #1
#2
#3
#4
#5
#6
#7
Faster recovery due to minimized incremental applies.
Image copies can’t benefit from RMAN binary compressionNo way to go back more than a day
Adv
anta
ge
Disadvantage
Orhan BIYIKLIOGLU feat Husnu SENSOY 12
Unified Storage Systems can Compress your Image Backups
RMAN Compression
ZFS Compression
Orhan BIYIKLIOGLU feat Husnu SENSOY 13
Sample ZFS & RMAN Compression Ratios
None LOW MEDIUM0
20
40
60
80
100
120100
37.2630.64
None LZJB GZIP-1
GZIP-4
GZIP-9
0
20
40
60
80
100
120100
50.25
31.7529.4127.70
Orhan BIYIKLIOGLU feat Husnu SENSOY 14
Design for Different Recovery Ranges
Image #1 #1
#2
#3
#4
One Week Ago
Last Night
Now
One Month Ago Two Weeks Ago
#5
#6
#7
#8
#9
#30…#1
0#11
#12
#13
#14
#15
Image #2 #8
#9
#30…#1
0#11
#12
#13
#14
#15
Image #3 #30…
Image #4 #30
Orhan BIYIKLIOGLU feat Husnu SENSOY 15
Unified Storage Systemscan Deduplicate your backups• Assume a database
of size 10 TB• Daily change rate
of 500 GB• 4x10 TB image
backups• (30+23+15+1)x50
0 GB incremental backups
• 75 TB of backup storage
Orhan BIYIKLIOGLU feat Husnu SENSOY 16
How do we move disk backup to Tape ?
DatabaseHost
Open Storage
7000
Ternary Storage
• 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
BackupHost
Open Storage
7000
Snapshot
DatabaseHost
NFS
Ternary
Storage
NDMP
Orhan BIYIKLIOGLU feat Husnu SENSOY 17
Clone Database• 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 18
Create Clone Databases Instantly with Unified Storage Systems
1. Create a readonly snapshot2. Make it read & write clone3. Expose those clones to
clone host over NFS4. Do classical database
recovery
Open Storage7000
FRA INC OTHR
Controlfile Autobacku
pArchivelog
s
Incremental
Backupsets
Image Copies
Clone Database
Host
Orhan BIYIKLIOGLU feat Husnu SENSOY 19
Point in Time Recovery• 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 ?
Image Backup #1
#2
Bad transaction SCN
Image Backup #1
#2
#3
#4
Older version than you need
Bad transaction is already applied
Orhan BIYIKLIOGLU feat Husnu SENSOY 20
Unified Storage Systems allow you to play with UNTIL clause
1. Create a readonly snapshot2. Make it read & write clone3. Expose those clones to clone host
over NFS4. Do classical database recovery5. Check the data6. If there seems to be a problem
return to step 1
Open Storage7000
FRA INC OTHR
Controlfile Autobacku
pArchivelog
s
Incremental
Backupsets
Image Copies
Clone Database
Host
Orhan BIYIKLIOGLU feat Husnu SENSOY 21
Easy Replication with Unified Storage Systems
DatabaseHost
Open Storage
7000
Open Storage
7000
Remote HostRemote
HostRemote HostRemote
Host
WAN
Ternary
Storage
Orhan BIYIKLIOGLU feat Husnu SENSOY 22
Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems
Unified Storage Best Practices for Backup & Recovery
Orhan BIYIKLIOGLU feat Husnu SENSOY 23
Unified Storage Systems Performance• Use IB or 10 Gbit network fabric to access unified
storage systems.
• 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
Workload RDBMA IPoIBNFS Streaming Read
2.11 GB/s
1.47 GB/s
NFS Streaming Write
984 MB/s 753 MB/s
Orhan BIYIKLIOGLU feat Husnu SENSOY 24
Unified Storage SystemsPerformance Best Practices• Choose 64K/128K blocksize for your
• Image copy• Backupset• archivelogs
• Remember that dedup and compression options for shares are CPU demanding operations. Don’t use them unless you need them.
• Use RMAN compression whenever possible unless you have a host CPU bottleneck because it will increase you effective write speed.• 11g Release 2 : LOW or MEDIUM• 11g Release 1 : LZIB
• Don’t use fast recovery with SWITCH option• Unless your production storage has a comparable performance with unified
storage systems• For fully parallelise the backup of BIGFILE datafiles use SECTION
option with 11g Release 1.1 2 4 8 12 160.00
1000.00
2000.00
3000.00
4000.00
5000.00
6000.00
7000.00
Copy Backupset BZIP2 ZLIB
DOP
Seco
nds
Orhan BIYIKLIOGLU feat Husnu SENSOY 25
Unified Storage SystemsConfiguration/Administration Best Practices
• 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 26
Solution
RMAN Restore & Recovery
Share Configurati
on
RMAN Backup
Sample Designs using Unified Storage SystemsSolidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage Systems
Orhan BIYIKLIOGLU feat Husnu SENSOY 27
Basic Solution• 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.
Open Storage7000
FRA
Controlfile Autobacku
pArchivelog
s
Incremental
Backupsets
Image Copie
s
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;
}
RUN { ALTER DATABASE MOUNT;SWITCH DATABASE TO COPY;RECOVER DATABASE;ALTER DATABASE OPEN;
}
Orhan BIYIKLIOGLU feat Husnu SENSOY 28
Advanced Solution
• Quick recovery using SWITCH is not an option
• Two recovery capabilities are necessary• To Just now• To somewhere in last week
• Unified Storage Systems pool is at comparable size with production size.
Open Storage7000
FRA
Image Copies
INC
Incremental
Backupsets
ARCH
Archivelogs
LZJB
DEDUP
LZJB
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 { ALTER DATABASE MOUNT;RESTORE DATABASE FROM TAG ‘DAILY_BACKUP’RECOVER DATABASE;ALTER DATABASE OPEN;
}
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’;
}
Orhan BIYIKLIOGLU feat Husnu SENSOY 29
Solidify Oracle RMAN with Oracle Sun Storage 7000 Unified Storage SystemsConclusion
Orhan BIYIKLIOGLU feat Husnu SENSOY 30
To Sum Up• Oracle 7000 Unified Storage Systems based on• Commodity Hardware• ZFS• Analyticsis 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 31
Thank You…
Orhan Bıyıklıoğ[email protected]
System ArchitectTURKCELL Communication Services
Hüsnü Ş[email protected]
Founder & VLDB ExpertGlobal MaksimumData & Information Technologies