Bug 549927

Summary: Cryptsetup-luks cannot resize an existing block device.
Product: [Fedora] Fedora Reporter: ben
Component: cryptsetup-luksAssignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: agk, dwysocha, lvm-team, mbroz, opensource, pjones, prockai, whulbert
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-23 10:22:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ben 2009-12-22 23:58:38 UTC
Description of problem:
Cannot resize encrypted devices.

Version-Release number of selected component (if applicable):
Fedora 12 i686

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora with an encrypted block device done during install.
2. After installation, try to resize the encrypted  volume using the normal command line tools (lvresize, cryptsetup resize).

Actual results:
'cryptsetup resize' throws the following error:

Device (null) doesn't exist or access denied.
Command failed: Device (null) doesn't exist or access denied.

And the device stays the same size.

Expected results:
cryptsetup should show no results, but should resize the encrypted device, adding the space that was added to the underlying logical volume by the lvresize.

Additional info:
Fresh Fedora 12 install on an HP 6730b.

Comment 1 Milan Broz 2009-12-23 10:22:26 UTC
Please update cryptsetup first.

*** This bug has been marked as a duplicate of bug 547119 ***