LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-03-2009, 09:20 PM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
LVM snapshot between different Groups


HI,

Can i create snapshot of lvm on different group,

Code:
e.g data is in /dev/VG01/data and i want to take snapshot on 

/dev/VG02/snap1

Is it possible to create this ?

thanks.
 
Old 01-04-2009, 02:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
No, that's not possible, as a snapshot is not new disk space, but existing areas of that LV which are not modified. Instead all new data is put onto space with the VG, and all the while the size of changes between the snapshot and the current data is less than the size allocated to the snapshot, it will be valid. You can take a small snapshot and then dd it to a seperate location if that's what you want to achieve.
 
Old 01-04-2009, 03:32 AM   #3
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Original Poster
Rep: Reputation: 31
i want to backup mysql database, which is 500GB, after making snapshot i want to backup it on Tape.

since i have another volume group (VG4) that have 1.8TB space so i want to snapshot on that.


another question is, while creating snapshot how much space i have to define for 500GB database ?

thanks.
 
Old 01-04-2009, 08:02 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
snapshot space needs to be reserved within each VG, as above, you can't snap to somewhere else, as there is no data actually written anywhere. the point of a snapshot is to freeze a copy in time, so you would, assuming your tape is fast enough, write directly from the snap to the tape. you do not need intermediary disk space if you can write to tape before the snap invalidates itself, which for a database, depends entirely on how it's used during that time. I think you'd do well to do some formal study of LVM and what technologies actually back up the concept of an LVM snapshot, and it should fall into place much better.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM snapshot mount not working syacko Linux - Server 9 02-05-2009 01:16 AM
Recovery of full LVM snapshot drmouse Linux - Software 0 12-11-2007 08:21 AM
About LVM Snapshot geethusari LinuxQuestions.org Member Intro 1 12-03-2007 07:11 AM
LVM Snapshot question sjtushi Linux - Software 3 03-12-2006 09:41 AM
LVM snapshot creation error haertig Linux - Software 1 01-30-2006 09:14 PM


All times are GMT -5. The time now is 05:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration