Loading...
 

SnapDrive

Installation and Configuration

Snapdrive for Unix

This is just a rough guide, we don't install that many. I'll add more detail as we use the product more

  1. Validate that some account exists to be used to access the filer, if one doesn't exist, create it
    +
    create -vserver <vServer_Name> -username <some_username> -application ontapi -role vsadmin -authmethod password
  2. Configure Snapdrive on the Linux Server
    1. Install 'sg3_utils' and 'sg3_utils-libs'
      yum install sg3_utils sg3_utils_libs
    2. Install the Snapdrive RPM
    3. Configure /opt/NetApp/snapdrive/snapdrive.conf
      • At this time we don't modify any of the default parameters in 'snapdrive.conf'
    4. Set the access to your vServer. You will need to enter the password for the account created above
      snapdrive config set sd4unix <vServer_Name>
      • This is what it should look like
        [root@server]# snapdrive config list
        username    appliance name   appliance type
        ----------------------------------------------
        <some_user>     <vserver_name>   StorageSystem
    5. Create local host records that point to the private IP addresses. Even though you have mapped the vServer name to the private IPs in the step above, SMO tries to issue commands against the vServer using it's hostname. In order to force that communication to occur across the private interfaces you must create host records for the vServer in '/etc/hosts' that point to the private IPs of your vServer.
      • This is what it should look like
        10.100.1.207    <vserver_name>.domain.com_<lif_name> <vserver_name>.domain_<lif_name>
        10.100.1.206    <vserver_name>.domain.com_<lif_name> <vserver_name>.domain_<lif_name>
    6. Set the management path for Snapdrive. This is required so that API communication with the vServer occurs over the private interfaces. You are basically creating a mapping between what the DNS host record points to which is the managment LIF for the vServer and the private interfaces that your NFS volumes are mounted on.
      snapdrive config set -mgmtpath <vServer_Name> <private_IP> <vServer_Name> <private_IP>
      • This is what it should look like
        [root@server]# snapdrive config list -mgmtpath
        system name      management interface   datapath interface
        ----------------------------------------------------------
        <vserver_name>   172.24.1.165           10.100.1.206|10.100.1.207
  3. Adjust the NFS mounts. Since Snapdrive interacts with the vServer based on the file system path that your NFS volumes are mounted on you must mount the NFS volumes using the host names that you created above, rather than the IP address.
      • This is what it should look like
        <vserver_name>_<lif_name>:/volume_name /directory nfs rw,bg,hard,rsize=65536,wsize=65536,vers=3,actimeo=0,nointr,timeo=600,suid,tcp 0 0
        <vserver_name>_<lif_name>:/volume_name /directory nfs rw,bg,hard,rsize=65536,wsize=65536,vers=3,actimeo=0,nointr,timeo=600,suid,tcp 0 0
        <vserver_name>_<lif_name>:/volume_name /directory nfs rw,bg,hard,rsize=65536,wsize=65536,vers=3,actimeo=0,nointr,timeo=600,suid,tcp 0 0
        etc.
        etc.
        etc.
  4. Verify that Snapdrive can talk to the vServer by listing any snapshots, there might not be any but the command should at least succeed.
    snapdrive snap list -fs /directory

Troubleshooting

  • Windows Server 2008 R2 Service Pack 1 and SnapDrive
    • A known issue exists when attempting to install Service Pack 1 on a Windows Server 2008 R2 server that has SnapDrive 6.3 installed. You will receive an error 0x800f0a12
    • I have verified that this issue does exist on SnapDrive 6.3, but it may also be a problem with other versions of SnapDrive. As of this writing the issue is not fixed in any SnapDrive version, however the following workaround from the SnapDrive 6.3 release notes can be used:
      Windows 2008 R2 SP1 installation fails if SnapDrive is installed
      
      Workaround 
      
      1. Disable SnapDrive Service.
      2. Enable Automount by running any one of the following commands on command prompt:
          a. Enter mountvol /E.
          b. Enter diskpart. At diskpart prompt, enter automount enable.
      3. Restart the system.
      4. Install Windows 2008 SP1.
      5. Change SnapDrive Service startup type to Automatic.
      6. Start SnapDrive Service.


Show php error messages