5.6. Storage

5.6.1. Supported Storage Server Platforms
5.6.2. About Storage Clustering
5.6.3. How to Set Up an Oracle Solaris Storage Server
5.6.4. How to Set Up a Sun Storage 7000 Unified Storage System
5.6.5. How to Replicate and Replace a Sun Unified Storage System
5.6.6. How to Replicate and Replace an Oracle Solaris Storage System

5.6.1. Supported Storage Server Platforms

The Oracle VDI and Microsoft Hyper-V desktop providers require storage that is managed by Oracle VDI. The following are the supported storage servers:

  • Oracle Solaris 10 10/09 x86 (64-bit) and later

    Note

    Oracle Solaris 11 and Oracle Solaris on SPARC platforms are not supported.

  • Sun Storage 7000 series Unified Storage Systems 2009.Q2.5.1 and later

For Sun Storage 7000 series Unified Storage Systems, note the following:

  • Oracle VDI does not support disabling the write cache without write SSDs (Logzilla).

    If the write cache is enabled and write SSDs are present, the write SSDs are not used. See Section 8.4.2, “About ZFS Storage Caches” for more information on write caching.

  • Oracle VDI supports only the default pool.

    Use projects to separate your areas of concern.

For more information about supported storage, see the following:

5.6.2. About Storage Clustering

Oracle VDI supports active-passive as well as active-active storage clusters starting with firmware 2010.Q1.0.0. Clustered storage is managed by Oracle VDI the same way as normal storage, simply add the storage via the Add Storage wizard. The following paragraphs provide some insight to the necessary management in Sun Storage 7000 series Unified Storage Systems.

A storage cluster introduces redundancy for the server components of a storage including CPU, memory, main board, network cards, but does not increase the redundancy of the disks or their controllers. That is taken care of by the JBODS and the RAID levels used.

The two storage servers in the cluster (called 'heads') are connected over a special card, the Clustron, which allows the heads to exchange state and configuration information and to detect a failed head.

A resource is a core concept of clustering, and is typically either a network interface or a storage pool. To ensure availability, the resource it is taken over by a head if the other head fails.

The main configuration steps when setting up a cluster are to define the resources, which is performed the same way as in a single setup (Configuration, Storage or Configuration, Network), and to assign a head as the resource owner (Configuration, Cluster).

A cluster is called "active/passive" if only one head owns all resources. A cluster is called "active/active" if both heads own resources. While the performance of an active/passive cluster does not degrade if one head fails, both heads of an active/active cluster are actively processing requests during normal operation resulting in a better utilization of the available hardware.

Identical hardware available on both storages can only be used to create one resource owned by one head. For example, if you configure a 192.168.100.100 interface using the nge0 device and assign head1 as it's owner, head2 will use its nge0 device to take over the 192.168.100.100 interface in case head1 fails. To be able to do so the nge0 device must be unused on head2.

Another constraint to be noted about clustered interfaces - they must be statically configured, you cannot use DHCP.

A typical setup for two storages with 4 network devices each and array:

 

Head1

Head2

nge0

owner

-

nge1

owner

-

nge2

-

owner

nge3

-

owner

Array 1

owner

-

Array 2

-

owner

nge0 and 1 as well as nge2 and 3 are typically trunked / aggregated.

For more information about Sun Storage 7000 series Unified Storage Systems and clustering, refer to the Administration Guide:

5.6.3. How to Set Up an Oracle Solaris Storage Server

An Oracle Solaris storage host must be an x86 system. Each virtual disk is represented by a ZFS volume, and the volumes are stored in a ZFS pool that is accessed by Oracle VM VirtualBox through iSCSI. The management of the ZFS volumes is done by Oracle VDI and requires SSH root access to the ZFS storage server and a ZFS pool on that server.

Steps

  1. Install the Oracle Solaris operating system.

    The Oracle Solaris installer offers you the option to use UFS or ZFS for the root file system. If the storage server contains multiple disks and the other disks are exclusively used for the Oracle VDI ZFS pools, either of the two choices is fine. If only one disk is available, choose ZFS.

  2. Enable root access.

    1. Edit the file /etc/ssh/sshd_config and change the line PermitRootLogin no to PermitRootLogin yes

    2. Restart the SSHD service to implement the changes you made to the sshd_config file.

      # svcadm restart ssh
  3. (Optional) Create a ZFS pool.

    If ZFS was selected during installation, the Oracle Solaris OS installer created a pool named rpool. This pool contains the root file systems and can also be used by Oracle VDI. Create a dedicated pool to separate the Oracle VDI data from the Oracle Solaris file systems.

    # zpool create <pool name> <disk1> <disk2> <disk3> ...
    
  4. Enable iSCSI access.

    Type the following CLI command as root on the Oracle Solaris OS storage server.

    # svcadm enable svc:/system/iscsitgt:default

5.6.4. How to Set Up a Sun Storage 7000 Unified Storage System

To see an up-to-date list of supported Sun Storage 7000 Unified Storage Systems, see Section 5.6.1, “Supported Storage Server Platforms”.

Steps

  1. Set up the system.

    Follow the instructions provided by the "Quick Setup" manual of the Sun Unified Storage System.

  2. (Optional) Update the Sun Unified Storage System Software.

    Update the Sun Storage 7000 software to get important performance enhancements. See Section 5.6.1, “Supported Storage Server Platforms” to make sure the Sun Unified Storage System Software release is supported with your configuration.

  3. Create a project.

    Project names must be unique. Using a project name that exists on both heads of a Sun Storage 7000 cluster will lead to application failure in case of cluster failover.

5.6.5. How to Replicate and Replace a Sun Unified Storage System

Storage replication is a useful technique to increase storage server availability for lower budget Oracle VDI installations. After replicating a Sun Storage 7000 Unified Storage System, the Oracle VDI storage replace feature allows you to easily enable the replicated storage server from Oracle VDI Manager if, for some reason, the storage server fails.

Preparation

Configure the Sun Storage 7000 Unified Storage System for replication and replicate it. Replication is a built-in feature, and can be configured from the Sun Unified Storage System UI. The steps below are valid for 2010.Q1 firmware and above.

  1. Add the target storage for the replication to the Remote Replication service. Go to Configuration, then Services.

  2. Add a replication action to the project. Go to Shares, Projects, <project>, then Replication. The "Include Snapshots" option must be selected.

The ZFS structures are now replicated to the target storage as replication package.

Disaster Recovery

If a storage server fails, use the procedure below to replace and re-enable the storage server.

  1. Disable the failed storage server.

    1. In Oracle VDI Manager, go to Desktop Providers.

    2. Select a desktop provider that uses the failed storage server.

    3. Go to the Storage tab, select the storage server, and click Maintenance.

    4. Choose a time for the server to begin entering maintenance, or click Now to select the current time.

    5. Click OK to submit the maintenance mode job.

  2. In the Unified Storage System UI, convert the replication package to a local project.

    Sever the replication connection of the replication target. Go to Shares, Projects, Replica, <replication package>, then Replication.

  3. Enable the new storage server.

    1. In Oracle VDI Manager, go to Desktop Providers.

    2. Select a desktop provider that uses the failed storage server.

    3. Go to the Storage tab.

    4. Select the storage server to be replaced and click Replace to activate the Replace Storage wizard. Enter information about the new storage (replication target).

    5. Select the new storage and click Edit to activate the Edit Storage wizard.

    6. Enter additional information about the new storage.

    7. Select the new storage and click Enable.

5.6.6. How to Replicate and Replace an Oracle Solaris Storage System

Storage replication is a useful technique to increase storage server availability for lower budget Oracle VDI installations. After replicating an Oracle Solaris storage system, Oracle VDI Manager enables you to replace a failed storage server with the replicated storage.

Preparation

Replicate the Oracle Solaris storage on another host.

  1. Take a ZFS snapshot of the whole storage pool.

    # zfs snapshot <pool>@rep
    
  2. Take a ZFS snapshot of each volume in the storage pool.

    Use the following command for each volume.

    # zfs snapshot <pool>/<volume>@rep
    
  3. Export the ZFS file system to the new storage host.

    # zfs send -R <pool>@rep | ssh root@<host> zfs receive -dF <newpool>
    
  4. Delete all ZFS snapshots on the original and new storage servers.

    Use the following command for the whole storage pool.

    # zfs destroy <pool>@rep
    

    Use the following command for each volume.

    # zfs destroy <pool>/<volume>@rep
    

Disaster Recovery

If a storage server fails, use this procedure to replace the storage server.

  1. Disable the failed storage server.

    1. In Oracle VDI Manager, go to Desktop Providers.

    2. Select a desktop provider that uses the failed storage server.

    3. Go to the Storage tab.

    4. Select the storage server, and click Maintenance.

    5. Choose a time for the server to begin entering maintenance, or click Now to select the current time.

    6. Click OK to submit the maintenance mode job.

  2. Enable the new storage server.

    1. Go to the Storage tab.

    2. Select the storage server to be replaced and click Replace to activate the Replace Storage wizard.

    3. Enter the information about the new storage.

    4. Select the new storage and click Edit to activate the Edit Storage wizard.

    5. Enter additional information about the new storage.

    6. Select the new storage and click Enable.