In general, smaller file system block sizes are best in cases where there are many small, random reads and writes, as when a volume is used for home directories or general file sharing. In cases such as these, the default 4 KB block size is best. If, however, the workflow supported by the volume consists mostly of sequential reads or writes, as is the case for audio or video streaming or capture, you can get better performance with a larger block size. Try a 64 KB block size in such cases.Other options for this portion of the volume setup include:
- Allocation Strategy – How data is written to the Affinity Tags (see below for more information on Affinity Tags). The Allocation Strategy of Round Robin is used by default and in most cases is recommended. You can use Balanced if you want to make sure that your Affinity Tags are written to in a consistent manner or Fill if you want to rotate between Affinity Tags in a manner where each is filled with data in sequence; however choosing either option will typically degrade performance.
- Spotlight – Use to enable and disable Spotlight for volumes (given that Spotlight is not currently working effectively in 2.x, this should typically be disabled)
- Access Control Lists – Use to enable and disable ACLs on the volume. This should typically be enabled
- Windows ID Mapping
- Allocation Settings – Always check with a technical project manager before customizing any of these settings.
- File Expansion Min – Set the number of minimum blocks written to the SAN for each new file created. This can be customized to speed up writes for large files by increasing it or to speed up the writes for a large number of smaller files by decreasing it.
- File Expansion Increment – The number of blocks used for each incremental size above the File Expansion Min.
- File Expansion Max – The maximum number of blocks used for the file. Can help to reduce fragmentation on your volume
- Cache Settings – Always check with a technical project manager before customizing any of these settings.
- iNode Cache Size – an iNode is a data structure holding information about files in a Unix file system. There is an iNode for each file and a file is uniquely identified by the file system on which it resides and its iNode number on that system. Xsan is just a file system and uses iNodes to keep track of the data that resides on the file system.
- Buffer Cache Size – the buffer cache is
- Any Data – the Affinity Tag can be used to house metadata or User Data
- Journaling and Metadata Only – the Affinity Tag can be used exclusively for metadata, or the data that keeps track of where the pieces of the user data resides on the SAN
- User Data Only – the Affinity Tag can be used only for Data that is written to the volume
- Only data with affinity – force data written to the Affinity Tag to a specified folder
- Stripe Breadth – The size of each stripe of data (in blocks) written to one Affinity Tag before moving on to the next.
- The volumeâ€™s block allocation size (in kilobytes)
- The stripe breadth of the storage pools that make up the volume (in number of allocation blocks)
transfer size = block size x stripe breadth
For example, the default Xsan block size of 4 KB combines with the default storage pool stripe breadth of 256 blocks to produce a transfer size of 1 MB. If you increase the block size to 64 KB, for example, to suit data streaming, set the stripe breadth to 16 blocks, so the product of the two remains 1 MB.
Now it is time to setup your metadata controllers for your volume. Here you will see each system that is set as a Metadata controller. Typically 2 should suffice for any given volume or set of volumes. Each Metadata controller on a volume will appear in Activity Monitor as an instance of the fsm process and performance in terms of memory and processing required for the fsm process can be tracked as with any other service.Failover At the Volume Failover Priority screen you can customize the order of priority assigned to a metadata controller (MDC). Simply drag items higher or lower in the list to make them higher or lower priority. By default the top item in the list will always be the default MDC. More than 3 MDCs can cause unneeded latency on the volume, so feel free to deactivate any that are not needed. When you click Continue you will now see your new Volume (as can be seen below). The Affinity Tags along with the percentage of each that is consumed with data will also appear along with the capacity of the pool (under the Size column), the Available disk space (under the Available column) and the active MDC (under the Hosted By column). The structure of the volume in terms of Affinity Tags and LUNs can also be seen here. New Volume Here you will have a number of options available (as can be seen below), by clicking on a Volume name and clicking on the Cog Wheel. Volume Options Use the Edit Notification Settings to assign email updates to administrators of the SAN. Use Edit Failover Priorty to add or remove MDCs or just change their priority. Use the Force failover to test failover between MDCs and use Start and Stop to Start and Stop the volume. Your volume setup is now complete and you can move on to adding Computers that can see the volume.