FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-11-2010, 10:16 AM
Dave Cross
 
Default Moving LV To New Machine

I'm in the process of moving data from an old machine to a new one.
Both machines are running Fedora 12.

There's rather a lot of data on the old machine and I'm reaching the
conclusion that rather than transfering it over the network I'll just
pull one of the disks out of the old machine, stick it in the new one
and copy the data.

But the disk in the old machine contains a logical volume. The LV
corresponds completely to the disk. i.e. all of the LV is on the disk
and the disk only contains this LV.

If I put the disk in the new machine, will the new machine just
recognise the LV on the disk? Or is there some more configuration I
need to do? Perhaps I can just copy over the relevant line from
/etc/fstab?

Cheers,

Dave...
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 
Old 02-11-2010, 01:02 PM
"Bryn M. Reeves"
 
Default Moving LV To New Machine

On Thu, 2010-02-11 at 11:16 +0000, Dave Cross wrote:
> I'm in the process of moving data from an old machine to a new one.
> Both machines are running Fedora 12.
>
> There's rather a lot of data on the old machine and I'm reaching the
> conclusion that rather than transfering it over the network I'll just
> pull one of the disks out of the old machine, stick it in the new one
> and copy the data.
>
> But the disk in the old machine contains a logical volume. The LV
> corresponds completely to the disk. i.e. all of the LV is on the disk
> and the disk only contains this LV.
>
> If I put the disk in the new machine, will the new machine just
> recognise the LV on the disk? Or is there some more configuration I
> need to do? Perhaps I can just copy over the relevant line from
> /etc/fstab?

Yes this will work just fine. The only issue you really need to consider
is whether the VG names on the old/new systems will collide. If they are
both fresh f12 installs then you should be fine as Anaconda now adds the
hostname to the names of VGs it creates by default.

If there is a collision then you may want to look at the vgimportclone
script in recent LVM2 releases (included in f12's lvm2 package).

Regards,
Bryn.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 
Old 02-11-2010, 03:04 PM
Jamie Bohr
 
Default Moving LV To New Machine

I've done this many times with HP-UX using vgexport and vgimport, have you looked at those?
*
- Jamie


On Thu, Feb 11, 2010 at 4:16 AM, Dave Cross <davorg@gmail.com> wrote:

I'm in the process of moving data from an old machine to a new one.
Both machines are running Fedora 12.


There's rather a lot of data on the old machine and I'm reaching the
conclusion that rather than transfering it over *the network I'll just
pull one of the disks out of the old machine, stick it in the new one

and copy the data.

But the disk in the old machine contains a logical volume. The LV
corresponds completely to the disk. i.e. all of the LV is on the disk
and the disk only contains this LV.

If I put the disk in the new machine, will the new machine just

recognise the LV on the disk? Or is there some more configuration I
need to do? Perhaps I can just copy over the relevant line from
/etc/fstab?

Cheers,

Dave...
--
users mailing list

users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users

Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines



--
Jamie Bohr

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 
Old 02-12-2010, 03:26 PM
Dave Cross
 
Default Moving LV To New Machine

On 11 February 2010 16:04, Jamie Bohr <jamiebohr@gmail.com> wrote:
> I've done this many times with HP-UX using vgexport and vgimport, have you
> looked at those?

Hadn't heard of them. I'll investigate. Thanks.

Dave...
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 
Old 02-15-2010, 10:21 AM
"Bryn M. Reeves"
 
Default Moving LV To New Machine

On Fri, 2010-02-12 at 16:26 +0000, Dave Cross wrote:
> On 11 February 2010 16:04, Jamie Bohr <jamiebohr@gmail.com> wrote:
> > I've done this many times with HP-UX using vgexport and vgimport, have you
> > looked at those?
>
> Hadn't heard of them. I'll investigate. Thanks.

All they do on LVM2 is to set/clear the EXPORTED flag on the VG and PV
status - there is no requirement to export the VG before moving storage
between machines (I normally don't).

In large environments it can be convenient to use as it makes it clear
(in the VG metadata) which VGs are imported/exported in the on-disk data
but it's not a necessary step when moving disks around.

Regards,
Bryn.

# diff -Nurp /tmp/tvg0-before-export /tmp/tvg0-after-export
--- /tmp/tvg0-before-export 2010-02-15 11:15:10.000000000 +0000
+++ /tmp/tvg0-after-export 2010-02-15 11:15:37.000000000 +0000
@@ -1,4 +1,4 @@
-# Generated by LVM2 version 2.02.46-RHEL5 (2009-06-18): Mon Feb 15
11:14:59 2010
+# Generated by LVM2 version 2.02.46-RHEL5 (2009-06-18): Mon Feb 15
11:15:33 2010

contents = "Text Format Volume Group"
version = 1
@@ -6,12 +6,12 @@ version = 1
description = "Created *after* executing 'vgcfgbackup tvg0'"

creation_host = "pe1950-5.gsslab.fab.redhat.com" # Linux
pe1950-5.gsslab.fab.redhat.com 2.6.18-182.el5 #1 SMP Tue Dec 15 21:28:29
EST 2009 x86_64
-creation_time = 1266232499 # Mon Feb 15 11:14:59 2010
+creation_time = 1266232533 # Mon Feb 15 11:15:33 2010

tvg0 {
id = "5P3fkI-pH30-xV6t-EiL8-89PZ-MGaw-mjRX7t"
- seqno = 2
- status = ["RESIZEABLE", "READ", "WRITE"]
+ seqno = 3
+ status = ["EXPORTED", "RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192 # 4 Megabytes
max_lv = 0
@@ -23,7 +23,7 @@ tvg0 {
id = "OChkmm-N0RX-ccj0-9uXU-gLUc-Y9Hc-xioVQy"
device = "/dev/loop0" # Hint only

- status = ["ALLOCATABLE"]
+ status = ["ALLOCATABLE", "EXPORTED"]
flags = []
dev_size = 1048576 # 512 Megabytes
pe_start = 384


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 03:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org