HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- LVM Snap Shot
Operating System - Linux
1827758
Members
2854
Online
109969
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
12-03-2008 10:35 AM
12-03-2008 10:35 AM
Hi All,
Can i get some detailed explanation regarding the LVM Snapshot. (With Commands)
Thanks
Can i get some detailed explanation regarding the LVM Snapshot. (With Commands)
Thanks
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 10:48 AM
12-03-2008 10:48 AM
Solution
Here is a good example and usage:
http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html
http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2008 11:29 AM
12-03-2008 11:29 AM
Re: LVM Snap Shot
Thanks. Useful link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2008 10:53 AM
12-05-2008 10:53 AM
Re: LVM Snap Shot
Check if this helps
If we need to preserve a backup of a file system which is subject to a major change and a BCV option is not available, the following procedure can be followed. This uses LVM mirroring for the same.
Pre-requisites : MirrorDisk/UX software installed in the server.
Sufficient space in a different group of disks for mirroring.
=> Create a spare lv ( temporary one ) to fill up the existing free space of the VG.
=> Add adequate spare disks to the VG.
=> lvextend -m 1 /dev/vgname/lvname
=> lvdisplay -v /dev/vgname/lvname |grep -I stale
To make sure there is no stale LVs.
=> Make sure that there is no data modification happening
In case of a db file system halt the database.
=> lvsplit /dev/vgname/lvname
This will create two lvs as /dev/vgname/lvname and /dev/vgname/lvnameb
=> /dev/vgname/lvnameb can be used as a preserved backup LV.
Can be mounted if require.
=> If require to retrieve data
/usr/sbin/lvmerge dest_lv_path src_lv_path
eg:- to copy data from /dev/vgname/lvnameb back to /dev/vgname/lvname
/usr/sbin/lvmerge /dev/vgname/lvname /dev/vgname/lvnameb
This will result in a single LV /dev/vgname/lvnameb with the old data.
=> lvmerge can be used even if the lvs are not created by a previous lvsplit command also. But the lvs should be of the same size.
Please refer to man page of lvsplit and lvmerge before any such activity.
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP