次のコマンドを使用して論理ボリュームを作成すると、カーネルログにいくつかのソートエラーがあることが表示されます。
$ sudo vgcreate shinymarengo --dataalignment 1M /dev/sda /dev/sdb /dev/sdc
Volume group "shinymarengo" successfully created
$ sudo lvcreate --type raid5 -L 4T --nosync --stripesize 1M -n shinymarengo_data shinymarengo
WARNING: New raid5 won't be synchronised. Don't read what you didn't write!
Logical volume "shinymarengo_data" created.
最初はすべてが大丈夫だと思いますが、見るとdmesg
いくつかの警告があります。
[ +0.000052] device-mapper: table: 254:6: adding target device dm-3 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=512, start=0
[ +0.000010] device-mapper: table: 254:6: adding target device dm-5 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=0
[ +0.000010] device-mapper: table: 254:6: adding target device dm-3 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=512, start=0
[ +0.000008] device-mapper: table: 254:6: adding target device dm-5 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=0
[ +0.000290] device-mapper: table: 254:6: adding target device dm-3 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=512, start=0
[ +0.000009] device-mapper: table: 254:6: adding target device dm-5 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=0
[ +0.000008] device-mapper: table: 254:6: adding target device dm-3 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=512, start=0
[ +0.000008] device-mapper: table: 254:6: adding target device dm-5 caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=0
lsblk
次のような話をしているようです。
$ lsblk -t
NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE RA WSAME
sda 0 4096 0 4096 512 1 mq-deadline 58 128 32M
├─shinymarengo-shinymarengo_data_rmeta_0 0 4096 0 4096 512 1 128 128 32M
│ └─shinymarengo-shinymarengo_data -1 1048576 2097152 4096 512 1 128 6144 0B
└─shinymarengo-shinymarengo_data_rimage_0 0 4096 0 4096 512 1 128 128 32M
└─shinymarengo-shinymarengo_data -1 1048576 2097152 4096 512 1 128 6144 0B
sdb 0 4096 0 4096 512 1 mq-deadline 58 128 32M
├─shinymarengo-shinymarengo_data_rmeta_1 512 4096 0 4096 512 1 128 128 32M
│ └─shinymarengo-shinymarengo_data -1 1048576 2097152 4096 512 1 128 6144 0B
└─shinymarengo-shinymarengo_data_rimage_1 512 4096 0 4096 512 1 128 128 32M
└─shinymarengo-shinymarengo_data -1 1048576 2097152 4096 512 1 128 6144 0B
sdc 0 4096 0 4096 512 1 mq-deadline 58 128 32M
├─shinymarengo-shinymarengo_data_rmeta_2 0 4096 0 4096 512 1 128 128 32M
│ └─shinymarengo-shinymarengo_data -1 1048576 2097152 4096 512 1 128 6144 0B
└─shinymarengo-shinymarengo_data_rimage_2 0 4096 0 4096 512 1 128 128 32M
└─shinymarengo-shinymarengo_data -1 1048576 2097152 4096 512 1 128 6144 0B
ソート不良を排除するために別の方法で実行できることはありますか?それとも単にバグかもしれませんか?
編集 - プラットフォームの詳細:
- ラズベリーパイ4B 2GB
- ラズベリーパイネメシス
- Linux 4.19.108
- LVM 2.03.02(2)