Sunday, November 21, 2010

Partition Alignment

A hard drive can be dissected into different sections or partitions for many reasons – such as to segment data or because an operating system typically sits on one partition while applications and files sit on others. These partitions are positioned on the hard drive to optimize the way data is read and written to them. With new hard drives that rely on a different sector base than legacy drives, computers may not be able to recognize this change, effectively reducing the performance of hard drives and in some cases decreasing the lifespan of the drives dramatically.

To ensure the best performance of these drives, it’s important to make sure the partitions are all aligned properly and that data can be written and accessed without any issues

Why misaligned partitions are the problem for SAN and RAID
RAID is used to compose many hard disk drives or other storage devices into one large array of data. This array is seen as one large storage device in the system across which data is striped. The granularity at which data is stored on one drive of the array before subsequent data is stored on the next drive of the array (data striping) is based on the drive settings, none of which allow for adjusting for a newer 4K alignment.

System performance may slow when a hardware-based redundant array of independent disks (RAID) or a software-based RAID is used – or if the starting location of the partition is not aligned with a stripe unit boundary in the disk partition that is created on the RAID. In this case, one data operation will be multiplied over several RAID disks.

To resolve this issue, aligning the partitions properly maximizes the performance. All data operations become faster as there are no redundant disk operations.

Naturally, a SAN (Storage Area Network) is just a large RAID distributed over a local network or by Fibre Channel. Thus all issues of RAID partition alignment are the same for SAN.

Why misaligned partitions are the problem for virtual environments
Alignment in a virtual infrastructure is critical to performance, hardware lifecycle, and storage efficiencies. Misalignment results in retrieving more data from an underlying array than what the virtual machine is requesting, which causes inefficiencies requiring more storage hardware resources to serve a workload and slow down the process.

In the future, partition alignment issues for 4K HDD and SSD will lessen as 4K physical sectors and memory pages become visible and accessible on the operating system level, and the need for emulating becomes unnecessary.  However misalignment will continue to be a problem for RAID/SAN and virtual environments for the foreseeable future, and it is important to recognize and tackle this problem head-on.

Saturday, November 20, 2010

How to clear port stats from Cisco MDS Fabric switch

Execute the following commands in the switch (use putty to telnet or ssh)

clear counters interface all

debug system internal clear-counters all

Enabling Network Level Authentication on Windows XP Service Pack 3 for access to Server 2008 via Remote Desktop

When connecting to a Windows 2008 Server using remote desktop from a Windows XP client running service pack 2 or earlier, you get the following error message:
The remote computer requires Network Level Authentication, which your computer does not support.
To enable NLA in XP machines; first install XP SP3, then edit the registry settings on the XP client machine to allow NLA
• Configure Network Level Authentication
1. Click Start, click Run, type regedit, and then press ENTER.
2. In the navigation pane, locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3. In the details pane, right-click Security Packages, and then click Modify.
4. In the Value data box, type tspkg. Leave any data that is specific to other SSPs, and then click OK.
5. In the navigation pane, locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders
6. In the details pane, right-click SecurityProviders, and then click Modify.
7. In the Value data box, type credssp.dll. Leave any data that is specific to other SSPs, and then click OK.
8. Exit Registry Editor.
9. Restart the computer.