[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] replace bad hard disc



On Tue, Oct 16, 2001 at 12:16:34PM +0200, Ulrich Wiederhold wrote:
> * Heinz J . Mauelshagen <mauelshagen sistina com> [011016 10:55]:
> > 
> > Stefan,
> > 
> > add a new hard drive to your system and create (at least) an LVM partition
> > (Type 0x8E) on it. Let's call the new one /dev/sde1 and your flaky one
> > /dev/sdd1 just for the purpose of this example.
> > 
> > Then:
> > 
> > pvcreate /dev/sde1
> > vgextend Stonki2 /dev/sde1
> > pvmove /dev/sdd1 /dev/sde1
> > vgreduce Stonki2 /dev/sdd1
> > 
> 
> Hello,
> will pvmove work if /dev/sde1 is already added to Stonki2 if there is
> enough space available on /dev/sde1 ?
> 
> Reason: I have a vg containing 5 HDs that includes a small 4GB one. I
> would like to remove this one without adding another HD. Enough space is
> available.

Uli,

yes pvmove will work. Say your 4G PV is accessed via /dev/sdc1 then
you just run "pvmove /dev/sdc1" and it'll search for free space on the other
PVs to relocate data to. If your LV(s) with data allocated on /dev/sdc1 are
striped, you need to have enough space for the particular stripes on /dev/sdc1
on another PV in the VG, which doesn't have other stripes of the very same LV(s)
allocated.

> 
> Regards
> Uli
> 
> -- 
> 'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]