Linux LVM users
 help / color / mirror / Atom feed
From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] replace bad hard disc
Date: Tue, 16 Oct 2001 10:55:33 +0200	[thread overview]
Message-ID: <20011016105533.A4318@sistina.com> (raw)
In-Reply-To: <110278234233.20011015163039@difi.de>; from Stefan.Onken@difi.de on Mon, Oct 15, 2001 at 04:30:39PM +0200

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

After this went ok you can uninstall the flaky drive from your system
and start to disassemble it in order to create some nice wallclocks ;-)

In case pvmove complains about read errors and stops before moving all
data over, please come back to me for further help.

Regards,
Heinz    -- The LVM Guy --

On Mon, Oct 15, 2001 at 04:30:39PM +0200, Stefan Onken wrote:
> Hello,
> 
>  I already looked in the How-to and FAQ, but I do not find any
>  step by step tutorial to change a bad hard disc in a LVM System.
> 
>  I have two hard discs, 100 Gig + 60 Gig with reiserfs. The 60gig
>  hard drive has some bad blocks, so I would like to replace it
>  with a new hard disc. May anyone please be so kind and give me a
>  helping hand for this problem....
>  
> linux:~ # lvscan
> lvscan -- ACTIVE            "/dev/Stonki2/LV_Stonki2" [150.59 GB]
> lvscan -- 1 logical volumes with 150.59 GB total in 1 volume group
> lvscan -- 1 active logical volumes
> 
> 
> 
> linux:~ # lvdisplay /dev/Stonki2/LV_Stonki2
> --- Logical volume ---
> LV Name                /dev/Stonki2/LV_Stonki2
> VG Name                Stonki2
> LV Write Access        read/write
> LV Status              available
> LV #                   1
> # open                 1
> LV Size                150.59 GB
> Current LE             38550
> Allocated LE           38550
> Allocation             next free
> Read ahead sectors     120
> Block device           58:0
> 
> 
> thanks anyway...
> 
> cu
> 
> stonki
> 
> 
> -- 
> The More I See, The More I Know. The More I Know, The Less I Understand
> 
> 
> _______________________________________________
> 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

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

  reply	other threads:[~2001-10-16  8:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-15 14:30 [linux-lvm] replace bad hard disc Stefan Onken
2001-10-16  8:55 ` Heinz J . Mauelshagen [this message]
2001-10-16 10:16   ` Ulrich Wiederhold
2001-10-16 12:34     ` Heinz J . Mauelshagen
2001-10-18  9:39   ` Stefan Onken
2001-10-18  9:53     ` Markus Dobel
2001-10-18 20:23       ` Ulrich Wiederhold
2001-10-19  4:59         ` Heinz J . Mauelshagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011016105533.A4318@sistina.com \
    --to=mauelshagen@sistina.com \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox