Why is the mkfs.xfs Command Hanging When Executed on iSCSI Block Devices Coming from Openshift Container Storage?

Solution Verified - Updated -

Issue

  • The mkfscommand required to construct a file system on the top of an iSCSI block device provisioned by OpenShift Container Storage hangs:

    mkfs.xfs -i size=512 -n size=8192 /dev/mapper/mapthX
    
  • An stracecaptured on this process shows that the hanging occurs at the writing phase:

    write(4</dev/dm-9), "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00".....262144 
    write(4</dev/dm-9), "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00".....262144 
    write(4</dev/dm-9), "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00".....262144 
    write(4</dev/dm-9), "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00".....262144 
    

Environment

  • Openshift Container Storage 3.X

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