Planning Storage
The most typical storage found in Xsan setups is the Apple XRAID. Any XRAID will work within an Xsan deployment. XRAID systems being used in an Xsan should have the maximum amount of RAM available, which is 512MB.
The Apple XRAID comes with 14 drive modules. Drive modules in an XRAID are split into two channels, each with 7 modules. Drive modules are just UltraATA or SATA enclosures for the Hard Drives used in an XRAID. XRAIDs are available in sizes up to 10.5TB. Due to the large amount of media, it can take 30 or more hours to format the RAID completely. While there are options that allow writing to the XRAID while it is formatting this is often going to cause a performance decrease on the XRAID.
Each controller of the XRAID has a serial port, a Gigabit Ethernet port and a Gigabit Fibre channel port. For best performance, both controllers should be used when using an Xserve RAID with Xsan.
This brings up the two main factors when planning the storage needs for an Xsan: speed and space. Space is typically the biggest choice made when purchasing storage devices. Since all of the Xserve RAIDs get their space aggregated to create two gigabits per Xserve RAID, the speed requirements can often mean a need for purchasing more Xserve RAIDs even when the extra space is not a requirement.
Configuring the XRAID
The RAID Admin Utility is used when configuring an Apple XRAID. Multiple LUNs, or RAIDs can be configured in each RAID. The RAID Admin Utility should be used when specifying which drives are used in each RAID and what RAID levels they shall use as well as RAID settings and notifications.
When you open RAID Admin you will first want to add a RAID to administer. To do this:
1. Open RAID Admin from /Applications/Server (see Figure 2.x)
Figure 2.x Raid Admin
2. Click on the button for Add System.
3. From the list of available Xserve RAIDs select the RAID you would like to administer (see Figure 2.x).
4. Enter the admin password. By default the password to monitor an Xserve RAID is public.
5. Click Add. If the password is correct, you will now see the Xserve RAID listed in RAID Admin.
Figure 2.x Add RAID Screen
Once you have added all of the Xserve RAIDs to RAID Admin you will likely want to customize the settings of each. In order to do so:
1. Open RAID Admin from /Applications/Server.
2. Click Settings in the toolbar of RAID Admin.
3. Enter the management password for the Xserve RAID you are customizing the settings for.
4. Under the System tab (see Figure 2.x):
a. Enter the Name for the Xserve RAID in the System Name field.
b. Enter the Location in the Location field. This is only used so that when people are administering or monitoring the RAID they will know where it is.
c. Enter the contact information for the administrator of the RAID in the Contact field. This is only used when monitoring personell need to contact the administrator.
d. Select a Time Synchronization Method and if appropriate enter an NTP server to be used for clock synchronization.
e. Use the Change buttons in the Passwords section to change the monitoring and management password for the RAID.
f. Uncheck the Enable audible system alerts if you do not want the Xserve RAID to emit a loud noise if a component on the device fails. This is not advised as if something fails you likely really want to know.
g. Uncheck the box for Restart automatically after a power failure if you want the Xserve RAID to reboot if it looses power.
h. Uncheck the box for Enable SNMP if you will not be using SNMP traps to monitor the device. If you will do not use SNMP then for security purposes you should disable this option.
Figure 2.x System Settings
5. Each controller on the Xserve RAID has its own network controller. By defualt these receive DHCP addresses. We suggest giving each network controller a static IP address or using Static Mappings in your DHCP pool to give controllers IP address. If IP addresses change, then controllers are no longer available in RAID Admin and must be readded which is not typically a good idea. Network settings can be configured under the Network Tab (see Figure 2.x).
Figure 2.x Network Settings
6. The Fibre Channel settings are available under the Fibre Channel tab. This is where the WWN is available to be viewed, Hard Loops are created, speeds are set to static and the topology is defined. These can typically be left as they are unless you will be using arbitrated loops in your Fibre Channel topology (see Figure 2.x).
Figure 2.x Fibre Channel Settings
7. The Performance tab can be used to customize certain features that may enhance performance of the Xserve RAID (see Figure 2.x).
a. Drive cache can be enabled and disabled for each array. Drive cache …
b. Write Cache can be enabled or disabled per controller. Write cache …
c. Read Prefetch can be set to 1 stripe, 8 stripes or 128 stripes for each controller. The number of stripes for the Read Prefetch
Figure 2.x Performance Settings
You will now want to setup the LUNs for the RAID. If you remember from Chapter 1, a LUN is a logical portion of an Xserve RAID. These are referred to as Arrays in RAID Admin.
Each array will be assigned a RAID level depending on your requirements. The RAID levels supported on an Xserve RAID are:
RAID 0 offers no redundancy. While RAID 0 gives the fastest speeds of media and the most inexpensive solution where data availability is concerned there is absolutely no fault tolerance.
RAID 1 comes with the highest cost where data is concerned.
RAID 3 has one drive dedicated to parity.
RAID 5 stripes parity data across all of the drives in the RAID giving RAID 5 volumes full redundancy at the lowest cost of drive space.
To create a LUN in RAID Admin:
1. Open RAID Admin.
2. Select the Xserve RAID you will be creating a LUN on.
3. Click on the Create Array button in the toolbar of RAID Admin.
4. Enter the management password for the Xserve RAID and click OK.
5. Select the RAID level of the LUN (see Figure 2.x).
Figure 2.x Setting up a LUN
6. Select the Drives to be included in the LUN by clicking in the box on each drive.
7. If you wish to begin writing data onto the Xsan during the initialization period of the drives, leave the background initialization option enabled for now.
8. The prefered configuration for drives used in an XSAN environment is to enable the Use drive cache option. You should do so now.
9. Click on Create Array.
10. You will no be placed back at the RAID Admin screen while the Xserve RAID restarts the controller. Wait for this before attempting to reformat any other LUNs.
Installing the Metadata Network
The Metadata network is a private Ethernet network used exclusively for Metadata. This is one of the least documented components of an Xsan.
There should be a gigabit network for Xsan metadata and the network should be configured with static addresses to keep DHCP traffic at a minimum. There should also be no DNS records point to IP addresses within the metadata network unless required. DNS can be used, but it is often easier to not use DNS as there are stringent requirements for how DNS is configured on the Metadata network.
You should use gigabit Ethernet PCI cards, a gigabit Ethernet switch, and good quality (Cat-5e or Cat-6) cabling. In the Network preference pane’s “Network Port Configuration,” the private network interface should be listed below the public network interface. This sets the public interface as the default. When configuring the private interface’s TCP/IP parameters, only fill in IP Address and Subnet Mask. Leave the other fields such as Gateway, Default Domain and Name Servers blank.
Choose an IP address range that is unrouted and unassigned to a DNS domain (see below).
There are three IP subnets primarily used for private network ranges. They are 10.0.0.0 to 10.255.255.255, 192.168.0.0 to 192.168.168.255.255 and 172.16.0.0 to 172.31.255.255. This offers a lot of flexibility to make sure that the range is not duplicated on other parts of your network. The range of private IP address that you choose to use should not be used by any other network you can access.
The address range 192.168.1.1 – 192.168.1.254 is often used by consumer router manufacturers. If this is the range you use on your network to connect to the Internet, you must not use it for your metadata network. Choose another range.
DNS is a trickier issue to diagnose. Last week, for example, I was setting up a SAN for a small workgroup in a large corporation. Following the instructions in the Xsan guide, we set the private network to use the 192.168.1.x with a 255.255.255.0 subnet mask. We found that Xsan Admin was working extremely slowly. Every tab change or refresh took minutes to complete.
With the proper Terminal command, we were able to determine that the corporate IT department was already using the range 192.168 for another division in its network. Xsan Admin was trying the (incorrect) DNS name for the server for each transaction, timing out, and falling back to the IP address. By changing the range of the private network to 10.17.17.1 with a 255.255.255.0 mask, we were able to eliminate the timeouts without modifying DNS. We chose the “17.17″ randomly, but confirmed that it was not in use elsewhere on the corporate network.
Choosing a Subnet Mask
The subnet mask tells the computer how big the IP range is. A subnet mask of 255.255.255.0 is equivalent to a range of x.x.x.1 – x.x.x.254. This mask is appropriate for almost all private metadata networks.
Useful Terminal commands
dig +short -x 192.168.1.1
This command queries your DNS servers to see if an address has an associated name. If there is no name, then no result is returned. For example, dig +short -x 17.254.3.183 returns apple.com.. (Although Xsan can work with IPs that have associated DNS addresses, the DNS records must be configured perfectly. It is far easier just to keep DNS out of the picture.)
lsof -ni4 | grep fsm
When run from the active metadata controller, shows the IP addresses of all connected Xsan clients. This may be useful to determine that all clients are connecting via the correct network. If you see any addresses in your public range, you have routing problems.
Setting up the Fibre Channel Switches
When configuring the SAN switches, a computer will need to have an IP within the same Subnet as the SAN switch initially. The IP of the switch can then be changed to be one within the LAN network of the SAN or the general network so that on a move forward basis the SAN switch will be configable from a client or Metadata controller.
Headless Installations
Much to the chagrin of many administrators and the humor of many older UNIX administrators, the Xserves no longer being shipped with a graphics card. This is now an upgrade that many administrators do not know they will need to puchase. Apple suggests using Xserves as Metadata Controllers, but doesn’t think to tell administrators that they will have no video for the system. Luckily, Apple has provided us with numerous ways around this issue.
One of the best features of Mac OS X Server is that the when you boot to a CD or DVD SSH and a client for the Mac OS X Server Setup Assistant are automatically running on the system. You can use Setup Assistant to complete the installation that was started at the factory.
How do you find the system on the network. Bonjour browser can be useful for this. The Setup Assistant will search the network for systems that are waiting for this portion of the installation to be complete.
The password to log into an Xserve when it is booted to the CD is the first eight digits of the servers serial number. If you are installing on an older Xserve, the serial number may be “12345678.”
/System/Library/ServerSetup/sa_srchr IP_Address
You can also boot to a Fibre Channel port.
Once the server has been installed, you should be able to tap in using Apple Remote Desktop
Setting up Xsan
Once you have setup all of your LUNs or Arrays, then you will be ready to go about installing the Xsan software. We suggest setting up the LUNs first, because it allows them some time to format before you begin writing data to them.
You will install the Xsan software on all of the systems that will be running as Metadata Controllers and on all of the client computers. To install the Xsan software:
1. Run the Install Xsan.mpkg file from the Xsan Install Disc.
2. Read the Welcome to the Xsan Installer screen and click Continue.
3. Read the Important Information and click Continue.
4. Read the Software License Agreement and click Continue.
5. Agree to the Software License Agreement by clicking on the Agree button.
6. Select the volume for the Xsan software to be installed on.
7. Once your Destination has been selected, click Continue (see Figure 2.x).
Figure 2.x Select a Destination
8. If you would like to only install the Xsan software and not the Xsan admin program to manage the xSan then click on Customize and uncheck the box for that package (see Figure 2.x).
Figure 2.x Custom Installation
9. Whether you are installing both the Xsan software and the Xsan Admin software click Install when you are ready to install.
10. Run Software Update and update each system running the Xsan software to the latest version before going on to configure the Xsan.
Creating a Volume
Figure 2.x
Figure 2.x
Creating Storage Pools
Figure 2.x
Starting the Volume
Once the volume has been created, you will likely want to start it. This is going to be a common step so remember how to complete this task. Also, remember that if you stop the volume, you will first want to unmount the volume from all client computers.
1. Open Xsan Admin from /Applications/Server.
2. Under the SAN Components list click on the Volume you would like to start.
3. Click on the Start Volume button in the toolbar.
Mounting the Volume
To mount a volume:
4. Open Xsan Admin from /Applications/Server.
5. Under the SAN Components list click on the Volume you would like to mount.
6. Click on the Clients tab for the volume.
7. Click on the client you would like to mount the volume for (see Figure 2.x).
8. Click on the Mount Read Only if the client system does not need to write to the volume. If the client system does need to write to the volume, click on the Mount Read Write button.
Figure 2.x Mounting the Volume on a client
9. Once you have mounted the volume, click on it using the Finder.
10. Click on the Finder menu of the system and select Get Info.
11. Make sure that the volume size and attribute look as they should.
Figure 2.x Get Info on Mounted Volume