# mkfs.xfs /dev/mapper/vg-timemachine warning: device is not properly aligned /dev/mapper/vg-timemachine Use -f to force usage of a misaligned device kernel: 4.13.12-300.fc27.x86_64 xfsprogs-4.12.0-4.fc27.x86_64 Model Family: Seagate Barracuda 2.5 5400 Device Model: ST2000LM015-2E8174 Reproduce steps: 1. Partitioning of the physical device, partition 5 is the relevant one # gdisk -l /dev/sda Number Start (sector) End (sector) Size Code Name 1 2048 104859647 50.0 GiB 8300 fedoraroot 2 104859648 2252343295 1024.0 GiB FFFF brick1 3 2252343296 2252752895 200.0 MiB EF00 EFI System 4 2252752896 2254850047 1024.0 MiB 8300 fedoraboot 5 2254850048 3907029134 787.8 GiB 8E00 Linux LVM 2. Make sda5 a pv, create a vg, just defaults here. 3. create thin pool, and virtual size LV # lvcreate -T vg/thintastic -L 700G # lvcreate -V 200G -T vg/thintastic -n timemachine 4. That gets me here: # pvs PV VG Fmt Attr PSize PFree /dev/sda5 vg lvm2 a-- <787.79g <83.62g # vgs VG #PV #LV #SN Attr VSize VFree vg 1 3 0 wz--n- <787.79g <83.62g # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert cryptoswap vg -wi-ao---- 4.00g thintastic vg twi-aotz-- 700.00g 0.00 0.44 timemachine vg Vwi-a-tz-- 200.00g thintastic 0.00 # blockdev --getss /dev/mapper/vg-timemachine 512 # blockdev --getpbsz /dev/mapper/vg-timemachine 4096 # blockdev --getalignoff /dev/mapper/vg-timemachine 512 $ lsblk -t pretty version (expires in 1 month) https://pastebin.mozilla.org/9072860 for the list archive: NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE RA WSAME sda 0 4096 0 4096 512 1 cfq 128 128 0B ├─sda1 0 4096 0 4096 512 1 cfq 128 128 0B ├─sda2 0 4096 0 4096 512 1 cfq 128 128 0B │ └─brick1 512 4096 0 4096 512 1 128 128 0B ├─sda3 0 4096 0 4096 512 1 cfq 128 128 0B ├─sda4 0 4096 0 4096 512 1 cfq 128 128 0B └─sda5 0 4096 0 4096 512 1 cfq 128 128 0B ├─vg-cryptoswap 512 4096 0 4096 512 1 128 128 0B │ └─swap 512 4096 0 4096 512 1 128 128 0B ├─vg-thintastic_tmeta 512 4096 0 4096 512 1 128 128 0B │ └─vg-thintastic-tpool 512 524288 524288 4096 512 1 128 128 0B │ ├─vg-thintastic 512 524288 524288 4096 512 1 128 128 0B │ └─vg-timemachine 512 524288 524288 4096 512 1 128 128 0B └─vg-thintastic_tdata 512 4096 0 4096 512 1 128 128 0B └─vg-thintastic-tpool 512 524288 524288 4096 512 1 128 128 0B ├─vg-thintastic 512 524288 524288 4096 512 1 128 128 0B └─vg-timemachine 512 524288 524288 4096 512 1 128 128 0B So I have no idea what mkfs.xfs is complaining about being unaligned. If I go ahead and use -f: # mkfs.xfs -f /dev/mapper/vg-timemachine warning: device is not properly aligned /dev/mapper/vg-timemachine meta-data=/dev/mapper/vg-timemachine isize=512 agcount=16, agsize=3276672 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=0, rmapbt=0, reflink=0 data = bsize=4096 blocks=52426752, imaxpct=25 = sunit=128 swidth=128 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal log bsize=4096 blocks=25600, version=2 = sectsz=512 sunit=8 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 # -- Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html