- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Online Oracle backups using LVM snapshots
Operating System - Linux
1756316
Members
3638
Online
108845
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 01:28 AM
тАО05-15-2006 01:28 AM
Online Oracle backups using LVM snapshots
Does anyone use LVM snapshots to grab online backups of their Oracle databases on Linux? Any hang-ups on Linux?
Would this work?:
For each tablespace in my database {
put the tablespace in backup-mode
}
Create a snapshot of the entire "data" filesystem and mount it
For each tablespace in my database {
take the tablespace out of backup-mode
}
Copy all files from snapshot mount point to the "backup" mount point
Unmount and remove the snapshot
Do you have an example script that I could look at for particulars?:
Oracle says this: "Oracle will stop updating file headers, but will continue to write data to the database files even if a tablespace is in backup mode."
Still ok to use filesystem snapshots, correct? Since the Oracle recovery mechanism should handle the possibility of partially written blocks?
Thanks for any input.
Would this work?:
For each tablespace in my database {
put the tablespace in backup-mode
}
Create a snapshot of the entire "data" filesystem and mount it
For each tablespace in my database {
take the tablespace out of backup-mode
}
Copy all files from snapshot mount point to the "backup" mount point
Unmount and remove the snapshot
Do you have an example script that I could look at for particulars?:
Oracle says this: "Oracle will stop updating file headers, but will continue to write data to the database files even if a tablespace is in backup mode."
Still ok to use filesystem snapshots, correct? Since the Oracle recovery mechanism should handle the possibility of partially written blocks?
Thanks for any input.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 02:50 AM
тАО05-15-2006 02:50 AM
Re: Online Oracle backups using LVM snapshots
If you are putting the tablespace in
backup mode you don't need a snapshot.
Oracle will recover all transactions
from the time you set the tablespace in
backup mode.
The database needs to be in archivelog mode.
For recovery you need all logs archived
from the beginning of the backup. I
would suggest forcing a log switch shortly
after completing the backup.
The attached file is a modified oraback.sh
script which does our backups.
backup mode you don't need a snapshot.
Oracle will recover all transactions
from the time you set the tablespace in
backup mode.
The database needs to be in archivelog mode.
For recovery you need all logs archived
from the beginning of the backup. I
would suggest forcing a log switch shortly
after completing the backup.
The attached file is a modified oraback.sh
script which does our backups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 06:29 AM
тАО05-15-2006 06:29 AM
Re: Online Oracle backups using LVM snapshots
Sounds like transactional integrity will be safe, but what about block-level integrity?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 06:56 AM
тАО05-15-2006 06:56 AM
Re: Online Oracle backups using LVM snapshots
This gives me the warm fuzzy feeling I was looking for:
In backup mode, Oracle will write out complete changed blocks to the redo log files. Normally only deltas (changes) are logged to the redo logs. This is done to enable reconstruction of a block if only half of it was backed up (split blocks). Because of this, one should notice increased log activity and archiving during on-line backups.
In backup mode, Oracle will write out complete changed blocks to the redo log files. Normally only deltas (changes) are logged to the redo logs. This is done to enable reconstruction of a block if only half of it was backed up (split blocks). Because of this, one should notice increased log activity and archiving during on-line backups.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP