Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Eliezer Croitoru
On 06/24/2014 11:45 PM, Ljubomir Ljubojevic wrote: > It turned out that new partition, sdc5 is smaller then sdd7, so pvmove > failed. > > But then I checked the LVM GUI and solved the problem. I opened Physical > volumes, chose sdd7 and clicked on "Migrate Extents." which offered > to redistrib

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Ljubomir Ljubojevic
On 06/24/2014 10:11 PM, Ljubomir Ljubojevic wrote: > On 06/24/2014 09:59 PM, Mauricio Tavares wrote: >> On Tue, Jun 24, 2014 at 3:56 PM, Zhang, Jonathan >> wrote: >>> The doc is recommend you do pvremove first and then run vgreduce. >>> But you will get error something like "...you need to remove

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Ljubomir Ljubojevic
On 06/24/2014 09:59 PM, Mauricio Tavares wrote: > On Tue, Jun 24, 2014 at 3:56 PM, Zhang, Jonathan wrote: >> The doc is recommend you do pvremove first and then run vgreduce. >> But you will get error something like "...you need to remove from volume >> group first before delete the physical volu

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Zhang, Jonathan
If you need to move data out from sdd7 to new location. You need to pvmove /dev/new_disc first Then vgreduce and pvremove However, before do pvmove you need pvcreate /dev/new_disc vgextend vg_data/new_disc pvmove /dev/new_disc -Original Message- From: centos-boun...@centos.org [mailt

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Mauricio Tavares
On Tue, Jun 24, 2014 at 3:56 PM, Zhang, Jonathan wrote: > The doc is recommend you do pvremove first and then run vgreduce. > But you will get error something like "...you need to remove from volume > group first before delete the physical volume" (the message makes sense for > me. Need to remov

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Zhang, Jonathan
The doc is recommend you do pvremove first and then run vgreduce. But you will get error something like "...you need to remove from volume group first before delete the physical volume" (the message makes sense for me. Need to removing from volume group first then removing the physical one) Whi

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Eero Volotinen
2014-06-24 22:31 GMT+03:00 Zhang, Jonathan : > Fidsk -l (you will see sdd5, sdd6 and sdd7) > Pvdisplay (to make sure the Allocated PE on /dev/sdd7 > Vgreduce vg_data /dev/sdd7 > Pvremove /dev/sdd7 > > (before you run vgreduce you need to move all data from sdd7 to new dic > > this is wrong way to

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Zhang, Jonathan
Fidsk -l (you will see sdd5, sdd6 and sdd7) Pvdisplay (to make sure the Allocated PE on /dev/sdd7 Vgreduce vg_data /dev/sdd7 Pvremove /dev/sdd7 (before you run vgreduce you need to move all data from sdd7 to new dic -Original Message- From: centos-boun...@centos.org [mailto:centos-boun.

Re: [CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread James A. Peltier
- Original Message - | Hi. I have a volume group (let's say) vg_data. | It consists from /dev/sdd5 |sdd6 |sdd7 | I added sdc5 | | Now I want to remove (free) sdd7 and you is to for RAID partition. | | What are the commands (ord

[CentOS] How to remove LVM Physical Volume from Volume Group?

2014-06-24 Thread Ljubomir Ljubojevic
Hi. I have a volume group (let's say) vg_data. It consists from /dev/sdd5 sdd6 sdd7 I added sdc5 Now I want to remove (free) sdd7 and you is to for RAID partition. What are the commands (ordered) I need to perform? I failed to find clea