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

Re: [linux-lvm] Reducing PV/ Reclaiming free PEs from a PV to be usedfor another partition/purpose outside of LVM



On Sun, 6 Feb 2005 20:24:40 +0000, "Alasdair G Kergon" <agk redhat com>
said:
> On Sun, Feb 06, 2005 at 12:15:48PM -0800, Ajeet Nankani wrote:
> > vgcfgbackup which would give me meta file data as below 
>  
> >         extent_size = 65536             # 32 Megabytes
> 
> >                         device = "/dev/hda6"    # Hint only
>  
> >                         pe_start = 384
> >                         pe_count = 266  # 8.3125 Gigabytes
> 
> >                                 extent_count = 192      # 6 Gigabytes
> >                                         "pv0", 0
> 
> 0-191
> 
> >                                 extent_count = 32       # 1024 Megabytes
> >                                         "pv0", 192
> 
> 192-223
> 
> > Now here if i edit it and in physical volume section where it says that
> > pe_count = 266, i change it to pe_count = 224 which is the last PE used
> > by the Logical Volume.
>  
> Yes.
> 
> > after saving it if i run vgcfgrestore with this file, will my PV be
> > reduced?? 
> 
> That's what pvresize would do.

but pvresize says command not implemented yet. 

also what this "pe_start = 384" in meta data means.

Thanks

-ajeet.

> 
> > after that i can reduce hda6 with parted or similar utility.
>  
> and the new size is 384 sectors plus 224 extents of 65536 sectors each.
> 
> Alasdair
> -- 
> agk redhat com
> 


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