- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- LVM Snapshots and BBWC
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
02-08-2010 02:37 AM
02-08-2010 02:37 AM
I'm a bit worried about the BBWC.
It is set for 75% (96MB) write cache, so now I'm wondering what will happen to all those outstanding write actions when I make a snapshot.
Will every thing be synced to disk when I use lvmcreate or do I need to perform other actions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2010 12:45 PM
02-08-2010 12:45 PM
Re: LVM Snapshots and BBWC
When a write operation has been successfully stored into BBWC at the hardware layer, it's completely equivalent to "stored to disk" for all the upper layers, including LVM.
The creation of a snapshot is a LVM-level action. To do it, LVM reads some blocks, writes some blocks and presents the result as a snapshot available for use. When the LVM does it, it cannot label those read & write operations in any special way. For the lower layers, the reads & writes that are done because of a snapshot operation are just like any other reads & writes.
-----
By your question, I think you may have misunderstood the nature of the LVM snapshot. It *looks* like a complete copy of your LV as it existed at snapshot creation time. It even *acts* like a copy: you can write to it, if you wish. But in reality, it's anything but a copy.
The Linux LVM snapshot is an implementation of Copy-on-Write technique to disk management.
http://en.wikipedia.org/wiki/Copy-on-write
After a snapshot is created, the snapshot mechanism intercepts all write operations to the original LV. If the block has not yet been written since the snapshot was created, the original data of that block is copied to the snapshot before the write is allowed to happen. This happens on the first write of the block only: if same the block is written to a second time, the write will proceed as usual - the state of that block at snapshot creation time is already stored in the snapshot LV.
When you're reading a snapshot, if the data on the original disk block is still the same as at the time the snapshot was created, the block is read from the _original_ LV. If the block has been changed, the snapshot mechanism will find a copy of the old state of the block from the snapshot LV.
This has the advantage of making both snapshot creation & removal operations very fast. The disadvantage is, if your original LV is lost, you discover that your snapshot is most likely full of holes too (=data that has not been copied because it has not changed).
As a RedHat instructor put it: "A LVM snapshot *is not* a copy of your data. It is a clever tool that allows you to *make* a copy of your data, with a minimal impact to your production."
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2010 03:37 PM
02-08-2010 03:37 PM
Re: LVM Snapshots and BBWC
altough it seems! to work just fine?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2010 02:15 AM
02-09-2010 02:15 AM
SolutionWhen the LVM copies a block from the SmartArray original to snapshot, the only way it can get the block is to request it from the SmartArray controller. The controller alone knows where the data is: if the up-to-date data happens to be in the BBWC, that's where the data is retrieved from. For the LVM, there is no difference whether the snapshot source data is in BBWC or on disk.
If your snapshot LV is on a SmartArray controller, the snapshot data is written first to the BBWC (again), and to the disk when the SmartArray decides it's a good time to do so. Again, when you read the snapshot there is no difference whether the data is in BBWC or on disk.
In short, the presence or absence of BBWC has *no special effect* to snapshot operations. If there is a BBWC, it just means the SmartArray controller has a better ability to optimize write operations, so you get better performance in all write operations.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2010 02:26 AM
02-09-2010 02:26 AM
Re: LVM Snapshots and BBWC
I guess I just want to find issues with my setup becasue I won't trust it. :-)