Sample Header Ad - 728x90

mkswap complains that partition is misaligned (LVM on RAID-0)

1 vote
1 answer
699 views
I have a RAID-0 setup on two identical hard disks (same brand and model). The partition table is identical on both (I have cloned it). However, /dev/md0 occupies only part of the disks, because I had to do some juggling with data I had on a previous installation, so I could not just wipe out everything. Anyway, I set up LVM on md0, and created some logical volumes, including one for swap. But when I use mkswap, it complains about the partition being misaligned: sudo mkswap /dev/vg000/swap mkswap: warning: /dev/vg000/swap is misaligned Setting up swapspace version 1, size = 8 GiB (8589930496 bytes) Am I supposed to worry about this? If it only means some Mb of swap won't be usable, that's fine. But if it means I may have memory corruption because swapping won't work properly, then, obviously, I'd like to know how to fix it!
Asked by Jay (171 rep)
May 19, 2016, 11:53 AM
Last activity: Jan 16, 2019, 10:05 AM