Re: [CentOS] Safely Remove Disk on LVM

2011-09-21 Thread Theo Band
On 09/19/2011 10:59 AM, Muhammad Panji wrote:
 On Fri, Sep 16, 2011 at 5:57 PM, Theo Band theo.b...@greenpeak.com
 mailto:theo.b...@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,

Four disk in a volume group? I would never do that. You increase the
chance that something breaks with a factor 4 if every disk has the same
probability of failing. If they are the same size, you better create a
raid5 for instance. You loose one disk of capacity to recover from a
single disk failure in the array. I think it's worth it, but it depends
on the data that you store on it of course. In your case, if a disk
fails dramatically, you need to start the volume group with a missing
disk. This will create a big hole (zeros or IO errors) in the place were
the disk PE should have been in your logical volume. It's just guessing
what happens to the file system that you have created on top of it...

Theo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Safely Remove Disk on LVM

2011-09-19 Thread Muhammad Panji
On Fri, Sep 16, 2011 at 5:57 PM, Theo Band theo.b...@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
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Safely Remove Disk on LVM

2011-09-16 Thread Theo Band
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.

Theo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Safely Remove Disk on LVM

2011-09-16 Thread Devin Reade
--On Friday, September 16, 2011 10:03:39 AM +0700 Muhammad Panji
sumodi...@gmail.com wrote:

 I plan to replace an error disk that is part of an LV.

I realize that this doesn't help you in this case, but if you are
in the future able to put LVM on top of a RAID1/5/6 device it makes
the process a whole lot easier (detach the bad disk, remove it, add
another, and attach the new one).

Devin

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Safely Remove Disk on LVM

2011-09-15 Thread Muhammad Panji
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,





-- 
-
Muhammad Panji
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos