<br><br><div class="gmail_quote">On Wed, Aug 26, 2009 at 1:43 AM, Aldo Foot <span dir="ltr"><<a href="mailto:lunixer@gmail.com">lunixer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, Aug 25, 2009 at 10:17 AM, solarflow99<<a href="mailto:solarflow99@gmail.com">solarflow99@gmail.com</a>> wrote:<br>
> I noticed resize2fs doesn't seem to work on my encrypted LVM, even the GUI<br>
> tool cant do anything with the underlying filesystem.  Does anyone know what<br>
> can be done about this?  I want to shrink a volume.<br>
><br>
>   # resize2fs /dev/VolGroup00/LVspare 39G<br>
> resize2fs 1.41.4 (27-Jan-2009)<br>
> resize2fs: Device or resource busy while trying to open<br>
> /dev/VolGroup00/LVspare<br>
> Couldn't find valid filesystem superblock.<br>
><br>
<br>
</div></div>I don't know whether encryption has anything do to with the size.<br>
But start by reading the lvresize man page.<br>
<br>
"man lvresize"<br>
<br>
DESCRIPTION<br>
       lvresize allows you to resize a logical volume.  Be  careful<br>
when  reducing  a  logical  volume’s  size,<br>
       because  data in the reduced part is lost!!!  You should<br>
therefore ensure that any filesystem on the vol-<br>
       ume is shrunk first so that the extents that are to be removed<br>
are not in use.  Resizing snapshot logical<br>
       volumes  (see  lvcreate(8) for information about creating<br>
snapshots) is supported as well.  But to change<br>
       the number of copies in a mirrored logical volume use lvconvert(8).</blockquote><div><br>thats why i was using resize2fs.  I can't even get the fs down in the first place, before I can lvreduce or lvresize.  The GUI tool doesn't warn you either, I have a bugzilla on that one too.  <a href="https://bugzilla.redhat.com/show_bug.cgi?id=517759">https://bugzilla.redhat.com/show_bug.cgi?id=517759</a><br>
<br><br> <br></div></div><br>