DDF (SNIA Common RAID Disk Data Format)

DDF is the SNIA standard for describing RAID sets on disk, so that different controllers and software can read one another’s arrays. It is used by some Linux MD arrays and by several firmware and controller vendors.

Overview

DDF stores an anchor header near the end of each member disk with signature 0xDE11DE11, followed by controller data, a physical disk records table, virtual disk records and configuration records. Virtual disks describe the RAID level, stripe size, member order and extents. All values are big-endian.

History

  • Published by the Storage Networking Industry Association (SNIA) in 2006.

Structures

Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.

Read Sectors

OffsetSizeTypeFieldNotes
at2u16 BE–
at4u32 BE–
at8u64 BE–

Other fields read

Read inOffsetSizeTypeFieldNotes
Crc Ok0x44u32 BEStored

Constants

Ddf Module

NameValueTypeNotes
HeaderMagic0xDE11DE11uint
PhysicalRecordsMagic0x22222222uint
DiskDataMagic0x33333333uint
VirtualRecordsMagic0xDDDDDDDDuint
ConfigMagic0xEEEEEEEEuint
GuidLength24int

Members in order: each mirror set’s disks in turn for RAID 10.

NameValueTypeNotes
sectorSize512intDDF addresses in 512-byte blocks (as mdadm reads it)
Sector512int
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.