shrinking encrypted LVM's

Aldo Foot lunixer at gmail.com
Tue Aug 25 17:43:11 UTC 2009


On Tue, Aug 25, 2009 at 10:17 AM, solarflow99<solarflow99 at gmail.com> wrote:
> I noticed resize2fs doesn't seem to work on my encrypted LVM, even the GUI
> tool cant do anything with the underlying filesystem.  Does anyone know what
> can be done about this?  I want to shrink a volume.
>
>   # resize2fs /dev/VolGroup00/LVspare 39G
> resize2fs 1.41.4 (27-Jan-2009)
> resize2fs: Device or resource busy while trying to open
> /dev/VolGroup00/LVspare
> Couldn't find valid filesystem superblock.
>

I don't know whether encryption has anything do to with the size.
But start by reading the lvresize man page.

"man lvresize"

DESCRIPTION
       lvresize allows you to resize a logical volume.  Be  careful
when  reducing  a  logical  volume’s  size,
       because  data in the reduced part is lost!!!  You should
therefore ensure that any filesystem on the vol-
       ume is shrunk first so that the extents that are to be removed
are not in use.  Resizing snapshot logical
       volumes  (see  lvcreate(8) for information about creating
snapshots) is supported as well.  But to change
       the number of copies in a mirrored logical volume use lvconvert(8).

~af




More information about the fedora-list mailing list