Hi, when I use lvm on my IQ31244 board, I can't create pv. build lvm and device-mapper like this: device-mapper-1.02.07: ./configure --host=armv5l-linux --prefix=/opt/buildfs make all install lvm2.2.02.06: ./configure --host=armv5l-linux --prefix=/opt/buildfs make all install linux kernel 2.6.15 when I check the metadata on disk, but no label data, add sync() in _io function like: n = should_write ? write(fd, buffer, (size_t) where->size - total) : read(fd, buffer, (size_t) where->size - total); sync(); the metadata on disk ok(dd out to another file), but the dev_read function read data and calculate CRC data failure. this is the output: root@iop:~# dd if=/dev/zero of=/dev/sda1 bs=8K count=1 1+0 records in 1+0 records out 8192 bytes (8.2 kB) copied, seconds, MB/s root@iop:~# pvcreate /dev/sda1 -vv Setting global/locking_type to 1 Setting global/locking_dir to /var/lock/lvm File-based locking enabled. Locking /var/lock/lvm/P_orphans dev_read from /dev/sda1 offset : 0x0 len : 2048 /dev/sda1: No label detected /dev/sda1: size is 488397105 sectors dev_read from /dev/sda1 offset : 0x3a38b10000 len : 4 metadata/pvmetadatasize not found in config: defaulting to 255 metadata/pvmetadatacopies not found in config: defaulting to 1 /dev/sda1: size is 488397105 sectors dev_write to /dev/sda1 offset : 0x1000 len : 1 Set up physical volume for "/dev/sda1" with 488396721 available sectors Scanning for labels to wipe from /dev/sda1 dev_read from /dev/sda1 offset : 0x0 len : 2048 Zeroing start of device /dev/sda1 dev_write to /dev/sda1 offset : 0x0 len : 2048 Writing physical volume data to disk "/dev/sda1" write mda header to /dev/sda1: 1bc73560204c564d3220785b35412572 304e2a3e010000000010000000000000 00f00200000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 dev_write to /dev/sda1 offset : 0x1000 len : 512 pe size : 3a38af6200 write label data to /dev/sda1: 4c4142454c4f4e450100000000000000 750a9468200000004c564d3220303031 536e5a68365269314c666f763531694a 6859706232666b5564394b47427a3044 0062af383a0000000000030000000000 00000000000000000000000000000000 00000000000000000010000000000000 00f00200000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 /dev/sda1: Writing label to sector 1 dev_write to /dev/sda1 offset : 0x200 len : 512 Physical volume "/dev/sda1" successfully created Unlocking /var/lock/lvm/P_orphans root@iop:~# pvdisplay /dev/sda1 -vv Setting global/locking_type to 1 Setting global/locking_dir to /var/lock/lvm File-based locking enabled. Using physical volume(s) on command line dev_read from /dev/sda1 offset : 0x0 len : 2048 read label data from /dev/sda1: 4c4142454c4f4e450100000000000000 750a9468200000004c564d3220303031 4c02f2bef4cf0a40050000003b080000 00000000d80c0f400015000005000000 0062af383a0000000000030000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 0010000090ff1440ffffffff005b0700 cc740940ffffffff000000000b000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 000000006c1f1540e0250a4090ff1440 a81c154000b001400000000001000000 d4110a403000000000000000295b0700 2a5b0700d0120a4090ff144084270a40 295b07002f00000000000000ec08f2be 000000006c1f154058f0074000000000 050000000000000044f707408008f2be 4c08f2bea4e5f2ff140af2be06000000 00000000000000000000000000000000 00000000000000000000000000000000 ffffffff300000000e5b07004c08f2be 03000000020000000000000000000000 000000000a0000000000000000000000 00000000000000000000000000000000 00000000000000000000000001000000 00000000200000006400000000000000 Label checksum incorrect on /dev/sda1 - ignoring /dev/sda1: No label detected No physical volume label read from /dev/sda1 Failed to read physical volume "/dev/sda1" root@iop:~# ----------------------------- Wyatt Kong (孔晗) Dahua Security Technology Ltd co. Phone : +86-0571-28939557 Email : kong_han@xxxxxxxxxxxxx ----------------------------- -- dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel