mkfs.ext4 hangs on format of /dev/mapper/crypt0 on certain dmcrypt disks

Solution Verified - Updated -

Issue

  • Trying to setup dmcrypt with cryptsetup (all defaults) but can't create the filesystem. The mkfs.ext4 filesystem goes into hung state and never recover it. The command used for conversion of cciss device is as below:
cryptsetup -h sha256 create crypt0 /dev/cciss/c0d0p7
  • Details of device:
$ parted -s /dev/cciss/c0d0 print 
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 440GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      512B    526MB   526MB   primary   ext4
 2      526MB   5770MB  5243MB  primary   linux-swap(v1)
 3      5770MB  11.0GB  5243MB  primary   ext4
 4      11.0GB  440GB   429GB   extended
 5      11.0GB  13.1GB  2097MB  logical   ext4
 6      13.1GB  15.2GB  2097MB  logical   ext4
 7      15.2GB  440GB   425GB   logical     <---

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content