LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-02-2007, 12:25 PM   #1
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Rep: Reputation: 15
Migrating a server


Hello,

We are in the process of migrating our mail server over to a new one. Currently the mail server runs on a xen virtual server.

What is the best way to move this over to the new server?

Any other info you need let me know - (We are using Fedora Core 6)

Thanks
 
Old 04-02-2007, 12:30 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Are you migrating the OS and the mailboxes or just the mailboxes? Are you migrating to a more updated system or are you doing a dump of the old system onto other hardware?
 
Old 04-02-2007, 12:31 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how about what mail server you're running.. kinda helps.
 
Old 04-02-2007, 12:34 PM   #4
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
We are not transfering the OS - just the disks.

Here is the layout -

On Xen server - df -h

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG0-xenroot
2.0G 1.2G 678M 64% /
/dev/sda1 99M 17M 77M 19% /boot
tmpfs 947M 0 947M 0% /dev/shm
/dev/mapper/VG0-xen 4.0G 1.2G 2.9G 29% /xen

lvdisplay:

lvdisplay
--- Logical volume ---
LV Name /dev/VG0/mars_home
VG Name VG0
LV UUID qorO4j-xU5J-30F0-8bhC-csTR-28oq-qQjvLM
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VG0/mars_opt
VG Name VG0
LV UUID fzEBDd-Rapa-wmjJ-4yp8-L2o0-9TGs-2nU2nz
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

--- Logical volume ---
LV Name /dev/VG0/mars_tmp
VG Name VG0
LV UUID JGs2yj-d2oO-oA1E-9lRZ-HsjL-qB0N-tv7LYO
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2

--- Logical volume ---
LV Name /dev/VG0/mars_var
VG Name VG0
LV UUID jpnqQV-adLJ-L3Hk-Bo6z-kIWp-5FOW-lHgC7D
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3

--- Logical volume ---
LV Name /dev/VG0/mars_log
VG Name VG0
LV UUID P218jE-92wj-Dp3c-OyCs-S1XW-9WCp-ayJXOZ
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:4

--- Logical volume ---
LV Name /dev/VG0/mars_scalix_backup
VG Name VG0
LV UUID CYlJcf-0lRq-uDI3-8d2h-z5CY-14yK-jLlzow
LV Write Access read/write
LV Status available
# open 1
LV Size 40.00 GB
Current LE 10240
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5

--- Logical volume ---
LV Name /dev/VG0/mars_root
VG Name VG0
LV UUID Zaz2GM-0ZHW-qGwB-qSkm-aeTD-p5g2-yuCMGD
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 1024
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:6

--- Logical volume ---
LV Name /dev/VG0/mars_usr
VG Name VG0
LV UUID Whw4yl-Y4QC-8qdZ-54PA-19bm-eCsD-DBP38O
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:7

--- Logical volume ---
LV Name /dev/VG0/mars_swap
VG Name VG0
LV UUID X81EET-z7tD-ZlUr-8mfd-F8Bh-mcJq-yRkFuW
LV Write Access read/write
LV Status available
# open 2
LV Size 2.00 GB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:8

--- Logical volume ---
LV Name /dev/VG0/xenroot
VG Name VG0
LV UUID rki1ux-Q82T-S4oe-NHYv-qYI6-Qa2z-SYgzDT
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:9

--- Logical volume ---
LV Name /dev/VG0/xenswap
VG Name VG0
LV UUID O04sBP-J2fr-3fvd-bELR-QmYn-BxTl-od8p5d
LV Write Access read/write
LV Status available
# open 1
LV Size 500.00 MB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:10

--- Logical volume ---
LV Name /dev/VG0/mars_scalix_xfs
VG Name VG0
LV UUID 9Ncczu-GZZ4-nDJD-UCTB-EvSm-re0g-4phhlf
LV Write Access read/write
LV Status available
# open 1
LV Size 40.00 GB
Current LE 10240
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:11

--- Logical volume ---
LV Name /dev/VG0/xen
VG Name VG0
LV UUID c7Egtd-GukA-kxAI-tuwz-N6Ss-vXZp-2UZ1Og
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:12

So we want to take all these and migrate to the new server to reflect this. Old server also had FC6. So we are doing a dump of the old server to the new hardware.
 
Old 04-02-2007, 01:26 PM   #5
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
how about what mail server you're running.. kinda helps.
Scalix Enterprise Edition (11.0.2.17)
 
Old 04-02-2007, 01:34 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Right, so are you looking to move data held within a mail server, or disks between two machines? if you can decide on an ideal strategy we can try to work with that.
 
Old 04-02-2007, 01:41 PM   #7
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
Right, so are you looking to move data held within a mail server, or disks between two machines? if you can decide on an ideal strategy we can try to work with that.
Hi acid,

We are not moving the actual disks to another machine. We just bought a new server with a raid array. We are taking the information/partitions from the older server and want to migrate them over to the new server.

I am looking for a way to move the disk image from the old server to the new one.

Thanks
 
Old 04-03-2007, 11:42 AM   #8
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
It's tricky but doable. You will need a good rescue CD like Knoppix or Sysrescd. This is what I recommend:

-create the /boot, /, swap and any other partitions on the new server.
-tar each partition individually on your old server.
-dump the tar on the new partition of your new server.
-modify grub mbr and menu to reflect the new partitions.
-modify your fstab file.
-you may need to modify the initrd for drivers for your new server. Tha't another paragraph to itself. Most of the times you don't need to modify the initrd.
-restart and cross your fingers; rinse and repeat.

Let me know if you need help.
 
Old 04-03-2007, 11:51 AM   #9
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Hi Ram,

Thanks! I will give it a shot and let you know how it turns out.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
seamisly migrating server MrSako Linux - Newbie 1 10-29-2006 01:18 PM
Migrating Windows Email Server to Linux Server fredidehen Linux - Newbie 3 09-05-2006 09:18 PM
Migrating CVS to another Server? g!nux-one Linux - Software 1 01-21-2004 04:59 PM
Migrating NT Server to Linux cloro_x Linux - Networking 4 08-30-2003 04:30 AM
Questions about migrating a server... oaaltone Linux - General 2 02-21-2003 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration