<div dir="ltr"><div><div><div>Hi all,<br><br></div><div>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>
</div><div><br></div>Actually we have few storage pools with the following settings each:<br><br></div>- 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>
</div><div>- 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></div><div><br>From the O.S. side we see:<br><span style="font-family:courier new,monospace"><br>
[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</span><br></div><div><div><div>
<div><div><br>The idea is to aggregate the above devices and show only 1 storage space. We did as follows:<br><br><span style="font-family:courier new,monospace">vgcreate dcvg_a /dev/sda /dev/sdb /dev/sdc<br>lvcreate -i 3 -I 4096 -n dcpool -l 100%FREE -v dcvg_a                       </span><br>
<br></div><div>Hence, stripe of the 3 RAID6 in a LV. <br></div><div><br>And here is my first question: How can I check if the storage and the LV are correctly aligned?<br></div><div><br></div><div>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></div><div>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></div><div>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></div></div></div></div></div>