LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 06-08-2009, 02:36 PM   #1
rakrhn
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Question LVM backup/restore question


Hi All,

I am doing a LVM replicate to another server.
Example :
server1.foo.com has / , /boot , swap and few LVM partitions. All are in /dev/sda disk of size 80GB. /dev/sda5 is a LVM partition which has only one vg00 and it has 2 LV's (/var and /usr) and a SAN storage connected to this server which has around 500GB of single partition(a LV partition) called /data and its under vg00 .
Now I have build another server called "server2.foo.com" with same RedHat OS version - RHEL 4 and want to import the same LVM setup at destination.
Down time or unmounting the filesystem is not a problem (but am trying to reduce the down time as much as possible).

Is there any way that I can take a proper snapshot of whole LVM disk and restore with same setup at destination without losing the data and the lvm file system layout ?

Can you please help me in guiding and assisting me on this.

Thanks,
rak

Last edited by rakrhn; 06-08-2009 at 02:37 PM.
 
Old 06-09-2009, 02:02 AM   #2
rakrhn
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I would like to add a note here that :

New disks will be used at the target server and the source servers disks will be formatted.

Is there any way that we can snapshot the lvm setup to different server on different disks ?

-Rak
 
Old 06-09-2009, 02:04 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
This sounds like what you want http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html
 
Old 06-09-2009, 08:50 AM   #4
rakrhn
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Angry

Thanks for your reply.
This method does not works as it requires to move the same disk to destination server.

What I am ready to do now is create similar LVM partitions structure and simply create empty ext3 file system at the destination. But not aware of import and create similar LVM structure at destination with or without data.

In my case the disks are different and cannot move the disks to any other servers.
Is there any way we can take a snapshot of the whole LVM structure in a file with or without data ?
So that I can import and create similar structure at destination with or without data ?

Thanks,
Rak

Last edited by rakrhn; 06-09-2009 at 08:52 AM.
 
Old 06-28-2009, 03:10 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Please correct any of the following that are wrong:

I assume the SAN is separate & only needs to be connected to server2.

I assume that server2 is also a single drive unit & which is at least 80 GB.

You mention "vg00" in 2 contexts: server1 & the SAN storage connected to it. Are these 2 different LVM systems, or are they 2 PV's assigned to a single VG? (I hope the former.)

I have seen Clonezilla do a bare metal restore to the orig. h/w, I don't know if it can restore to different h/w.

Did you consider putting server2's HD temporarily in an external enclosure & dd'ing server1's (80 GB) HD to it?
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to restore lvm tomes? lindemidux Linux - General 1 07-08-2008 03:09 PM
Redhat LVM backup / restore issues? linux-who? Linux - Server 2 01-02-2008 03:37 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 11:16 AM
Backup/Restore - LVM, RAID keith ralph Linux - General 0 04-19-2006 08:31 AM
ext2 ext3 lvm restore Shade00 Linux - Hardware 0 10-20-2005 02:58 PM


All times are GMT -5. The time now is 11:08 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