Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Moving a PV to a new, larger, disk.
@ 2004-01-13  9:47 Spam
  2004-01-14  8:37 ` Heinz Mauelshagen
  2004-01-20 16:11 ` Steven Lembark
  0 siblings, 2 replies; 5+ messages in thread
From: Spam @ 2004-01-13  9:47 UTC (permalink / raw)
  To: linux-lvm

  Hello,

  Is it possible to use dd/dd_rescue to simply copy a PV to a new disk
  that is slightly (16MiB)larger?

  The old pv is on /dev/hdb1 and the new disk is /dev/hdc and is
  unpartitioned so far. How would I proceed to make this work?
  
  This might seem odd to do as I could perhaps use pvmove, but pvmove
  requires the whole vg to be present in the system, right?

  //Anders

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Moving a PV to a new, larger, disk.
  2004-01-13  9:47 [linux-lvm] Moving a PV to a new, larger, disk Spam
@ 2004-01-14  8:37 ` Heinz Mauelshagen
  2004-01-14 10:09   ` Spam
  2004-01-20 16:11 ` Steven Lembark
  1 sibling, 1 reply; 5+ messages in thread
From: Heinz Mauelshagen @ 2004-01-14  8:37 UTC (permalink / raw)
  To: linux-lvm

On Tue, Jan 13, 2004 at 03:45:54PM +0100, Spam wrote:
> 
>   Hello,
> 
>   Is it possible to use dd/dd_rescue to simply copy a PV to a new disk
>   that is slightly (16MiB)larger?
> 
>   The old pv is on /dev/hdb1 and the new disk is /dev/hdc and is
>   unpartitioned so far. How would I proceed to make this work?

Following procedure to make it happen:

o partition the new disk with 1 partition of _exactly_
  the same size (in units of sectors) as /dev/hdb1

o dd(_rescue) content over

o remove the old disk

o vgscan

o vgchange -ay

>   
>   This might seem odd to do as I could perhaps use pvmove, but pvmove
>   requires the whole vg to be present in the system, right?
> 
>   //Anders
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Moving a PV to a new, larger, disk.
  2004-01-14  8:37 ` Heinz Mauelshagen
@ 2004-01-14 10:09   ` Spam
  2004-01-14 18:22     ` Heinz Mauelshagen
  0 siblings, 1 reply; 5+ messages in thread
From: Spam @ 2004-01-14 10:09 UTC (permalink / raw)
  To: Heinz Mauelshagen


> On Tue, Jan 13, 2004 at 03:45:54PM +0100, Spam wrote:
>> 
>>   Hello,
>> 
>>   Is it possible to use dd/dd_rescue to simply copy a PV to a new disk
>>   that is slightly (16MiB)larger?
>> 
>>   The old pv is on /dev/hdb1 and the new disk is /dev/hdc and is
>>   unpartitioned so far. How would I proceed to make this work?

> Following procedure to make it happen:

> o partition the new disk with 1 partition of _exactly_
>   the same size (in units of sectors) as /dev/hdb1

> o dd(_rescue) content over
> o remove the old disk
> o vgscan
> o vgchange -ay

  Great! Thank you. Now I know who to blame if things does not work ;)

  //Anders

>>   
>>   This might seem odd to do as I could perhaps use pvmove, but pvmove
>>   requires the whole vg to be present in the system, right?
>> 
>>   //Anders
>> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Moving a PV to a new, larger, disk.
  2004-01-14 10:09   ` Spam
@ 2004-01-14 18:22     ` Heinz Mauelshagen
  0 siblings, 0 replies; 5+ messages in thread
From: Heinz Mauelshagen @ 2004-01-14 18:22 UTC (permalink / raw)
  To: linux-lvm

On Wed, Jan 14, 2004 at 04:08:09PM +0100, Spam wrote:
> 
> 
> > On Tue, Jan 13, 2004 at 03:45:54PM +0100, Spam wrote:
> >> 
> >>   Hello,
> >> 
> >>   Is it possible to use dd/dd_rescue to simply copy a PV to a new disk
> >>   that is slightly (16MiB)larger?
> >> 
> >>   The old pv is on /dev/hdb1 and the new disk is /dev/hdc and is
> >>   unpartitioned so far. How would I proceed to make this work?
> 
> > Following procedure to make it happen:
> 
> > o partition the new disk with 1 partition of _exactly_
> >   the same size (in units of sectors) as /dev/hdb1
> 
> > o dd(_rescue) content over
> > o remove the old disk
> > o vgscan
> > o vgchange -ay
> 
>   Great! Thank you. Now I know who to blame if things does not work ;)

Right, unless you didn't follow the steps exactly _and_
removed all mistakes ;-)

> 
>   //Anders
> 
> >>   
> >>   This might seem odd to do as I could perhaps use pvmove, but pvmove
> >>   requires the whole vg to be present in the system, right?
> >> 
> >>   //Anders
> >> 
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Moving a PV to a new, larger, disk.
  2004-01-13  9:47 [linux-lvm] Moving a PV to a new, larger, disk Spam
  2004-01-14  8:37 ` Heinz Mauelshagen
@ 2004-01-20 16:11 ` Steven Lembark
  1 sibling, 0 replies; 5+ messages in thread
From: Steven Lembark @ 2004-01-20 16:11 UTC (permalink / raw)
  To: linux-lvm

>   Is it possible to use dd/dd_rescue to simply copy a PV to a new disk
>   that is slightly (16MiB)larger?
>
>   The old pv is on /dev/hdb1 and the new disk is /dev/hdc and is
>   unpartitioned so far. How would I proceed to make this work?
>
>   This might seem odd to do as I could perhaps use pvmove, but pvmove
>   requires the whole vg to be present in the system, right?

Why not back it up to stable media and restore it (or do the
move on the same day you make your normal image backups). That
way if anything goes wrong you can just say a few words and
start the restore over...


--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 888 359 3508

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-20 16:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13  9:47 [linux-lvm] Moving a PV to a new, larger, disk Spam
2004-01-14  8:37 ` Heinz Mauelshagen
2004-01-14 10:09   ` Spam
2004-01-14 18:22     ` Heinz Mauelshagen
2004-01-20 16:11 ` Steven Lembark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox