mkfs.ext4 hangs on format of /dev/mapper/crypt0 on certain dmcrypt disks
Issue
- Trying to setup
dmcrypt
withcryptsetup
(all defaults) but can't create the filesystem. Themkfs.ext4
filesystem goes into hung state and never recover it. The command used for conversion ofcciss
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.