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

Re: LVM reorganization



On Thursday 18 December 2008 02:49:40 M.Lewis wrote:
> Boyd Stephen Smith Jr. wrote:
> > On Thursday 18 December 2008, "M.Lewis" <cajun@cajuninc.com> wrote
> >
> > about 'Re: LVM reorganization':
> >> Thanks Boyd. After reading through it a couple of times, it appears
> >> pretty straight forward.
> >
> > I've done it probably a dozen times now, and it's not hard if you are
> > careful.  It also helps to know your way around either fuser or lsof to
> > find (and kill if needed) processes using the areas you are moving to
> > different LVs.
> >
> > Shrinking the LV is probably the most dangerous part.  You don't want to
> > have the filesystem be bigger than it's LV at any point.  Make *sure* any
> > filesystem on shrunk LVs are good before you start writing data to new or
> > extended LVs.  That data might end up over-writing the end of the
> > filesystem!
>
> Please elaborate on how this is done. Visually? 'du -h'?

Oh, to many pronouns, You want to know how to tell if you shrink the LVM 
smaller then the file system.  Yes.  du, df, something like gtkdiskfree for 
the cli impaired.  In general, you want to know how much disk (read LVM 
partition)  is used, how much is free, any tool you use would be good.
>
> [snip]
>
> --
>
>   To be, or not to be, those are the parameters.
>    01:45:01 up 1 day,  1:22,  1 user,  load average: 1.71, 1.52, 1.17
>
>   Linux Registered User #241685  http://counter.li.org



-- 
Damon L. Chesser
damon@damtek.com
404-271-8691 Cell
678-401-8420 hm
http://www.linkedin.com/in/dchesser



Reply to: