<div dir="ltr">Hi all,<br><br>I am trying to setup a storage pool with correct disk alignment and I hope somebody can help me to understand some unclear parts to me when configuring XFS over LVM2.<br><br>Actually we have few storage pools with the following settings each:<br>
<br>- LSI Controller with 3xRAID6<br>- Each RAID6 is configured with 10 data disks + 2 for double-parity.<br>- Each disk has a capacity of 4TB, 512e and physical sector size of 4K.<br>- 3x(10+2) configuration was considered in order to gain best performance and data safety (less disks per RAID less probability of data corruption)<br>
<br>From the O.S. side we see:<br><br><span style="font-family:courier new,monospace">[root@stgpool01 ~]# fdisk -l /dev/sda /dev/sdb /dev/sdc<br><br>Disk /dev/sda: 40000.0 GB, 39999997214720 bytes<br>255 heads, 63 sectors/track, 4863055 cylinders<br>
Units = cylinders of 16065 * 512 = 8225280 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br>Disk identifier: 0x00000000<br><br>Disk /dev/sdb: 40000.0 GB, 39999997214720 bytes<br>
255 heads, 63 sectors/track, 4863055 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br>Disk identifier: 0x00000000<br>
<br>Disk /dev/sdc: 40000.0 GB, 39999997214720 bytes<br>255 heads, 63 sectors/track, 4863055 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br>
Disk identifier: 0x00000000<br></span><br>The idea is to aggregate the above devices and show only 1 storage space. We did as follows:<br><span style="font-family:courier new,monospace"><br>vgcreate dcvg_a /dev/sda /dev/sdb /dev/sdc<br>
lvcreate -i 3 -I 4096 -n dcpool -l 100%FREE -v dcvg_a<br></span><br>Hence, stripe of the 3 RAID6 in a LV.<br><br>And here is my first question: How can I check if the storage and the LV are correctly aligned?<br><br>On the other hand, I have formatted XFS as follows:<br>
<br><span style="font-family:courier new,monospace">mkfs.xfs -d su=256k,sw=10 -l size=128m,lazy-count=1 /dev/dcvg_a/dcpool</span><br><br>So my second question is, are the above 'su' and 'sw' parameters correct on the current LV configuration? If not, which values should I have and why? AFAIK su is the stripe size configured in the controller side, but in this case we have a LV. Also, sw is the number of data disks in a RAID, but again, we have a LV with 3 stripes, and I am not sure if the number of data disks should be 30 instead.<br>
<br>Thanks a lot,<br>-- <br>Marc Caubet Serrabou<br>PIC (Port d'Informació CientÃfica)<br>Campus UAB, Edificio D<br>E-08193 Bellaterra, Barcelona<br>Tel: +34 93 581 33 22<br>Fax: +34 93 581 41 10<br><a href="http://www.pic.es" target="_blank">http://www.pic.es</a><br>
Avis - Aviso - Legal Notice: <a href="http://www.ifae.es/legal.html" target="_blank">http://www.ifae.es/legal.html</a>
</div>