* [linux-lvm] Move an array/volgroup to another machine.
@ 2009-04-16 16:07 Gerry Reno
2009-04-16 16:12 ` Eric Brunson
0 siblings, 1 reply; 7+ messages in thread
From: Gerry Reno @ 2009-04-16 16:07 UTC (permalink / raw)
To: LVM general discussion and development
We built a replacement server (x86_64) for an older server (x86). Now
we want to move a RAID-5 array intact from the older machine over to the
new machine. We know the UUID of the array and of all the PV and VG on
the array. So what commands should we perform after plugging in all the
array drives to the new server to bring up the array and lvm on the new
machine?
Regards,
Gerry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Move an array/volgroup to another machine.
2009-04-16 16:07 [linux-lvm] Move an array/volgroup to another machine Gerry Reno
@ 2009-04-16 16:12 ` Eric Brunson
2009-04-16 16:13 ` Eric Brunson
0 siblings, 1 reply; 7+ messages in thread
From: Eric Brunson @ 2009-04-16 16:12 UTC (permalink / raw)
To: LVM general discussion and development
On 04/16/2009 10:07 AM, Gerry Reno wrote:
> We built a replacement server (x86_64) for an older server (x86). Now
> we want to move a RAID-5 array intact from the older machine over to
> the new machine. We know the UUID of the array and of all the PV and
> VG on the array. So what commands should we perform after plugging in
> all the array drives to the new server to bring up the array and lvm
> on the new machine?
"vgscan" and "vgchange -a VGNAME" I believe.
Make sure your VG name doesn't conflict with any already in the machine.
>
> Regards,
> Gerry
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Move an array/volgroup to another machine.
2009-04-16 16:12 ` Eric Brunson
@ 2009-04-16 16:13 ` Eric Brunson
2009-04-16 16:33 ` Gerry Reno
0 siblings, 1 reply; 7+ messages in thread
From: Eric Brunson @ 2009-04-16 16:13 UTC (permalink / raw)
To: LVM general discussion and development
On 04/16/2009 10:12 AM, Eric Brunson wrote:
> On 04/16/2009 10:07 AM, Gerry Reno wrote:
>> We built a replacement server (x86_64) for an older server (x86).
>> Now we want to move a RAID-5 array intact from the older machine over
>> to the new machine. We know the UUID of the array and of all the PV
>> and VG on the array. So what commands should we perform after
>> plugging in all the array drives to the new server to bring up the
>> array and lvm on the new machine?
>
> "vgscan" and "vgchange -a VGNAME" I believe.
Sorry, doing three things at once: vgchange -a y VGNAME
>
> Make sure your VG name doesn't conflict with any already in the machine.
>
>>
>> Regards,
>> Gerry
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Move an array/volgroup to another machine.
2009-04-16 16:13 ` Eric Brunson
@ 2009-04-16 16:33 ` Gerry Reno
2009-04-16 16:41 ` Eric Brunson
0 siblings, 1 reply; 7+ messages in thread
From: Gerry Reno @ 2009-04-16 16:33 UTC (permalink / raw)
To: LVM general discussion and development
Eric Brunson wrote:
> On 04/16/2009 10:12 AM, Eric Brunson wrote:
>> On 04/16/2009 10:07 AM, Gerry Reno wrote:
>>> We built a replacement server (x86_64) for an older server (x86).
>>> Now we want to move a RAID-5 array intact from the older machine
>>> over to the new machine. We know the UUID of the array and of all
>>> the PV and VG on the array. So what commands should we perform
>>> after plugging in all the array drives to the new server to bring up
>>> the array and lvm on the new machine?
>>
>> "vgscan" and "vgchange -a VGNAME" I believe.
>
>
> Sorry, doing three things at once: vgchange -a y VGNAME
>
>
>>
>> Make sure your VG name doesn't conflict with any already in the machine.
>>
Will vgchange activate the raid array?
The new server just has a couple raid-1 arrays on it right now. But we
need the raid-5 to be activated because there is a volgroup that uses
the raid-5 device as it's PV.
Regards,
Gerry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Move an array/volgroup to another machine.
2009-04-16 16:33 ` Gerry Reno
@ 2009-04-16 16:41 ` Eric Brunson
2009-04-16 16:49 ` Gerry Reno
0 siblings, 1 reply; 7+ messages in thread
From: Eric Brunson @ 2009-04-16 16:41 UTC (permalink / raw)
To: LVM general discussion and development
On 04/16/2009 10:33 AM, Gerry Reno wrote:
> Eric Brunson wrote:
>> On 04/16/2009 10:12 AM, Eric Brunson wrote:
>>> On 04/16/2009 10:07 AM, Gerry Reno wrote:
>>>> We built a replacement server (x86_64) for an older server (x86).
>>>> Now we want to move a RAID-5 array intact from the older machine
>>>> over to the new machine. We know the UUID of the array and of all
>>>> the PV and VG on the array. So what commands should we perform
>>>> after plugging in all the array drives to the new server to bring
>>>> up the array and lvm on the new machine?
>>>
>>> "vgscan" and "vgchange -a VGNAME" I believe.
>>
>>
>> Sorry, doing three things at once: vgchange -a y VGNAME
>>
>>
>>>
>>> Make sure your VG name doesn't conflict with any already in the
>>> machine.
>>>
> Will vgchange activate the raid array?
Is it an md (software) RAID or a hardware RAID device?
If the former, then I'm not sure. I'll have to defer to someone with
more md experience.
If the latter, then it depends of if you have the correct drivers and
hardware detection.
>
> The new server just has a couple raid-1 arrays on it right now. But
> we need the raid-5 to be activated because there is a volgroup that
> uses the raid-5 device as it's PV.
>
> Regards,
> Gerry
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Move an array/volgroup to another machine.
2009-04-16 16:41 ` Eric Brunson
@ 2009-04-16 16:49 ` Gerry Reno
2009-04-17 8:42 ` Luca Berra
0 siblings, 1 reply; 7+ messages in thread
From: Gerry Reno @ 2009-04-16 16:49 UTC (permalink / raw)
To: LVM general discussion and development
Eric Brunson wrote:
> On 04/16/2009 10:33 AM, Gerry Reno wrote:
>> Eric Brunson wrote:
>>> On 04/16/2009 10:12 AM, Eric Brunson wrote:
>>>> On 04/16/2009 10:07 AM, Gerry Reno wrote:
>>>>> We built a replacement server (x86_64) for an older server (x86).
>>>>> Now we want to move a RAID-5 array intact from the older machine
>>>>> over to the new machine. We know the UUID of the array and of all
>>>>> the PV and VG on the array. So what commands should we perform
>>>>> after plugging in all the array drives to the new server to bring
>>>>> up the array and lvm on the new machine?
>>>>
>>>> "vgscan" and "vgchange -a VGNAME" I believe.
>>>
>>>
>>> Sorry, doing three things at once: vgchange -a y VGNAME
>>>
>>>
>>>>
>>>> Make sure your VG name doesn't conflict with any already in the
>>>> machine.
>>>>
>> Will vgchange activate the raid array?
>
>
> Is it an md (software) RAID or a hardware RAID device?
>
> If the former, then I'm not sure. I'll have to defer to someone with
> more md experience.
> If the latter, then it depends of if you have the correct drivers and
> hardware detection.
>
>
>>
>> The new server just has a couple raid-1 arrays on it right now. But
>> we need the raid-5 to be activated because there is a volgroup that
>> uses the raid-5 device as it's PV.
>>
It's an 'md' software raid device. I think we can probably just try to
assemble the array using the UUID. Maybe something like:
mdadm -vv -A /dev/md4 --uuid=UUID
Regards,
Gerry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Move an array/volgroup to another machine.
2009-04-16 16:49 ` Gerry Reno
@ 2009-04-17 8:42 ` Luca Berra
0 siblings, 0 replies; 7+ messages in thread
From: Luca Berra @ 2009-04-17 8:42 UTC (permalink / raw)
To: linux-lvm
On Thu, Apr 16, 2009 at 12:49:52PM -0400, Gerry Reno wrote:
> It's an 'md' software raid device. I think we can probably just try to
> assemble the array using the UUID. Maybe something like:
> mdadm -vv -A /dev/md4 --uuid=UUID
>
the above depende on the device line in your mdadm.conf,
if it is something like 'DEVICE partitions' or 'DEVICE /dev/*' it should
work.
you still would like to have it in mdadm.conf for automatic activation
at boot.
i would run
mdadm -Esc partitions | grep UUID
maybe check the line you added to see if the minor is what you want
and add it to /etc/mdadm.conf
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-17 8:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 16:07 [linux-lvm] Move an array/volgroup to another machine Gerry Reno
2009-04-16 16:12 ` Eric Brunson
2009-04-16 16:13 ` Eric Brunson
2009-04-16 16:33 ` Gerry Reno
2009-04-16 16:41 ` Eric Brunson
2009-04-16 16:49 ` Gerry Reno
2009-04-17 8:42 ` Luca Berra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.