Académique Documents
Professionnel Documents
Culture Documents
A Best Practices Guide for Isilon IQ Storage By Michael Kade Global Systems Engineer
February 2010
ISILON SYSTEMS
Table of Contents
1. 2. 3. Introduction .......................................................................................................................................... 3 Isilon Best Practices for various vendor iSCSI initiators ................................................................ 3 Isilon Best Practices for iSCSI with OneFS ...................................................................................... 3 Hardware iSCSI Adapter ...................................................................................................................... 3 Snapshot Licensing .............................................................................................................................. 3 Optimal Block Size ............................................................................................................................... 4 2x Protection Recommended ............................................................................................................... 4 Dedicated Network ............................................................................................................................... 4 Jumbo Frames ..................................................................................................................................... 4 Maximum Number of Targets and Maximum Number of LUNs Per Target ......................................... 4 Write Caching ....................................................................................................................................... 5 Client Logical Volume Manager ........................................................................................................... 6 LUNs are Directly Associated with Targets .......................................................................................... 7 Dynamically Allocated IP Pools result in LUNs not being visible ......................................................... 7 Missing Logical Unit Number ............................................................................................................... 7 Concurrency vs. Streaming Access Pattern ........................................................................................ 7 OneFS Prefetch ................................................................................................................................... 7 LUN Provisioning ................................................................................................................................. 8 LUN Resizing ....................................................................................................................................... 8 LUN Backup ......................................................................................................................................... 8 iSCSI with SyncIQ ............................................................................................................................. 8 4. 5. Conclusion ........................................................................................................................................... 8 References............................................................................................................................................ 9
ISILON SYSTEMS
1. Introduction
The implementation of the iSCSI protocol within Isilon IQ brings unified storage capability to Isilon. Leveraging Isilon industry leading scale-out technology, Isilon iSCSI solutions allows applications like Microsoft Exchange, Microsoft SQL, and block-level file systems like VMware VMFS, to benefit from the Isilon distributed architecture. This guide reviews best practices directly related to the storage of Logical Units (LUNs) on the Isilon OneFS filesystem. This guide is intended to be complementary to the Isilon Installed Product Help, Isilon Online Knowledge Center, and other Isilon iSCSI Best Practices guides. Please see the References section of this guide for a more complete list of documentation covering iSCSI. The Isilon iSCSI implementation features the following capabilities: Implementation of RFCs 3720 and 5048 Support for Thin-Provisioned or Fully-Allocated LUNs Support for One-Way CHAP Authentication Support for dynamically growing LUNs Support for creating LUN clones, snapshots or shadow copies (writable snapshots) Support for SCSI reserve/release LUN arbitration control Client Support for iSNS (iSCSI Name Service) Support for VSS (Volume Shadow Service) when utilizing the Microsoft iSCSI Initiator Isilon iSCSI LUNs are constructed as files that reside within OneFS. Each iSCSI LUN is represented as eight extents within a particular directory. By default, directories lie underneath the target that the LUN is allocated to, although LUNs may be moved or placed anywhere within the directory hierarchy for convenience (e.g. to enforce a single set of SmartQuotas or aid in SyncIQ).
Snapshot Licensing
Cloning allows the user to create a new LUN based upon an exact point-in-time copy of an existing LUN. There are three types of clones available; normal, snapshot and shadow. Each of these types of clones requires that SnapshotIQ be licensed. Without SnapshotIQ licensed, iSCSI will continue to work, but it will be impossible to clone a Logical Unit.
ISILON SYSTEMS 3
2x Protection Recommended
In most cases, 2x (mirrored) protection will result in better performance since parity reads arent required during the write process. However, if your workflow is primarily reads, then 2x protection wont provide as much benefit. Additionally if space is a primary concern then you may be willing to sacrifice some write performance to free up space. Setting 2X protection on a LUN may fail if the global setting for FlexProtect is different than 2X (mirrored). You can change the individual protection for a Logical Unit once you have changed the FlexProtect setting to advanced. In order to set the FlexProtect setting to advanced, login to one node of the cluster and type isi flexprotect advanced.
Dedicated Network
iSCSI is a block based protocol and, as such, can be very network intensive. Best performance will be achieved if iSCSI is the only protocol accessing the assigned gigabit or 10-gigabit Ethernet port.
Jumbo Frames
In order to achieve maximum performance, it was previously recommended that the block size of the client system be right-sized to match the block size of OneFS. Since each I/O would then be one or more multiples of 8K, it is recommended that you enable Jumbo Frames of 9K on the Ethernet ports dedicated to iSCSI on both the Isilon node(s) and the client system. This will result in 6 times less I/O and consequently better performance than using the default Ethernet frame size of 1500.
ISILON SYSTEMS
Write Caching
Write caching on Isilon iSCSI LUNs is turned off by default. Turning Write Caching on can result in write performance improvements, but at a risk of corruption if a node loses power or crashes while uncommitted data is in the write cache. Some software iSCSI initiators protect this data-in-flight, but unless you know whether your client initiator has this commit technology, it is recommended that this setting stay in the default off setting. One exception would be to turn write caching on during the creation of a thickly allocated LUN, and turning write caching off once the LUN creation has completed. If it is discovered that your client initiator does not protect data in-flight, then it may still be possible to use Write Caching by implementing LUN protection using techniques available to Logical Volume Managers available with some client operating systems. One example is given in the next section entitled Client Logical Volume Manager.
ISILON SYSTEMS
Large Server
RAID-0 striped logical volumes will give you higher performance, but they offer no additional protection. In some cases, they could offer less protection since the failure of any one LUN will cause data loss. To prevent this, it is possible to build two RAID-0 logical volumes and then mirror them (RAID-1). This is often called RAID-10. This will provide for the temporary removal of any LUN (say through the reboot of a node); thereby keeping the entire logical
ISILON SYSTEMS
volume online and available to your users. When the node reboots or its functions are transferred to another node in the cluster, then the client LVM will detect this and rebuild the RAID-1 mirror automatically. The previous diagram illustrates how such a RAID-10 logical volume could be built. Note that the best protection occurs when the LUNs of the two RAID-0 stripes are accessed through offset nodes of the cluster. This protects against node failures taking down the same LUNs in the RAID-1 (mirrored) set.
OneFS Prefetch
Occasionally, you will have an application that has an access pattern that is so random in nature, that the prefetching that OneFS does with each file can be too aggressive in regards to the overall performance of the application. You can turn off prefetching either temporarily or permanently. Until you are sure that turning off prefetch results in an increase in performance, you should only disable prefetch temporarily. To turn off prefetching temporarily, login to one node of the cluster and type isi_for_array sysctl efs.bam.enable_prefetch=0; isi_flush To turn off prefetching permanently, login to one node of the cluster and add the following line to the file /etc/mcp/override/sysctl.conf efs.bam.enable_prefetch=0 After you are done adding the line to the file, you must reboot the cluster in order to have prefetching disabled.
ISILON SYSTEMS
LUN Provisioning
Isilon supports provisioning LUNs as thin or thick. Provisioning a LUN as thin will take less time at creation. During testing, it has been demonstrated that Thinly Provisioned LUNs may initially have higher performance than Thickly Provisioned LUNs. This performance improvement occurs because every initial write in a thinly provisioned LUN does not result a read, modify and write operation within the OneFS filesystem. Of course, this improvement goes away once a block has been written once within the thin LUN. Every rewrite within a thin LUN could potentially result in the same read, modify and write operation. As previously written in the sections entitled Optimal Block Size and 2x Protection Recommended, it is possible to reduce or remove the expense of the rewrite operation for both Thin and Thick LUNs.
LUN Resizing
Isilon supports resizing of LUNs to be larger than original size, but does not support shrinking of LUNs. The size of the LUN can be increased while it is being reserved, and while another resize operation is still pending. LUNs that are thinly allocated or fully allocated can be resized.
LUN Backup
There are several ways to backup the contents of a LUN. One method would be to make a snapshot of LUN and then to backup the snapshot directly from the cluster. This method has the advantage of having the highest backup performance, but recovery entails restoring the entire LUN and not just the piece of data that is missing. The preferred method also involves taking a snapshot and assigning that snapshot LUN to a Target. Once it is assigned to a Target, have a client initiator backup the contents of the LUN with the appropriate backup software. This method is just a little bit slower, but has the advantage of allowing the user to recover any specific piece of data within the LUN. Under both methods, it will be necessary to first quiesce the LUN before taking a snapshot. This ensures that all data has been flushed from the client to the LUN prior to the creation of the snapshot. One method to achieve this in a Microsoft environment would be to use Volume Shadow Service (VSS). Please see the Best Practices Guide for the MIcrosoft iSCSI Initiator for more information on this method.
4. Conclusion
This Best Practices guide is focused on helping you configure iSCSI within the OneFS filesystem and achieving the best performance possible. I hope this information has been beneficial to you and will allow you to realize potential block-level access use and Unified Storage from Isilon products. The references below should be helpful and contain more in-depth information of many of the topics discussed in this paper.
ISILON SYSTEMS
5. References
Isilon Best Practices Guide for the Microsoft iSCSI Initiator OneFS 5_5_4 iSCSI Module
Isilon Systems (NASDAQ: ISLN) is the proven leader in scale-out NAS. Isilon clustered storage and data management solutions drive unique business value for customers by maximizing the performance of their missioncritical applications, workflows, and processes. Isilon enables enterprises and research organizations worldwide to manage large and rapidly growing amounts of file-based data in a highly scalable, easy-to-manage, and costeffective way. Information about Isilon can be found at http://www.isilon.com.
2009 Isilon Systems, Inc. All rights reserved. Isilon , Isilon Systems, OneFS, SyncIQ are registered trademarks of Isilon Systems, Inc. Isilon IQ, SmartConnect, SnapshotIQ, TrueScale, Autobalance, FlexProtect, SmartCache, HOW BREAKTHROUGHS BEGIN. and the Isilon logo are trademarks or registered trademarks of Isilon. Other product and company names mentioned are the trademarks of their respective owners. U.S. Patent Numbers 7,146,524; 7,346,720; 7,386,675. Other patents pending.
ISILON SYSTEMS