[CentOS] Safely Remove Disk on LVM

Mon Sep 19 08:59:50 UTC 2011
Muhammad Panji <sumodirjo at gmail.com>

On Fri, Sep 16, 2011 at 5:57 PM, Theo Band <theo.band at greenpeak.com> wrote:

> On 09/16/2011 05:03 AM, Muhammad Panji wrote:
> > Dear All,
> > I plan to replace an error disk that is part of an LV. from LVM how-to
> > it could be done with using pvmove to move all PE from old disk to new
> > disk.But the howto also said that pvmove is slow. Anyone has
> > experience using pvmove on 2TB disk?
> >
> > Is it possible to make all PE on the old disk empty so I don't have to
> > do pvmove (assuming that I can make a free space >= 2TB). Thank you in
> > advance
> > Regards
> Yes it is slow, but it works. You can condider to remove some (unused)
> LVM that have extends on the physical disk. That speeds it up, as the
> extends are marked free again. How many disks do you now have in your
> volume group? If only one, then simply try to copy the entire disk to
> another one (dd/ddrescue/clonezilla). If the disk has bad sectors, then
> the pvmove will most likely fail anyhow.
>
Hi Theo,
thank you for the reply. I have four disk in one LV. so yesterday I already
done pvmove the 2TB disk and it took time about 20 hours. I think the disk
is just start to fail and most part of the disk is still good, that's why
the pvmove process didn't take time that long.
Regards,








-- 
-----
Muhammad Panji
http://www.panji.web.id                         http://www.kurungsiku.com
http://sumodirjo.wordpress.com          http://www.kurungsiku.web.id

http://www.linuxbox.web.id
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110919/1be4cd61/attachment-0005.html>