SnapDrive 2008 NetApp. All rights reserved. Objectives At the end of this module, you should be able to: Describe the features of SnapDrive Configure SnapDrive 6.0 for Windows for Windows Server 2003/2008 Configure SnapDrive 4.0 for UNIX on Suns Solaris 10
2 2008 NetApp. All rights reserved. SnapDrive SnapDrive software provides: Simple storage provisioning of LUNs (virtual disks) Consistent data Snapshot copies Automation for backups and recoveries SnapDrive is available for: Solaris Windows AIX This course investigates SnapDrive 6.0 for Windows and SnapDrive 4.0 for UNIX using the Solaris OS 3 Overview SnapDrive on Windows SnapDrive on Solaris
HP-UX Linux 2008 NetApp. All rights reserved. SnapDrive 6.0 for Windows Features: Supports Windows Server 2003 and 2008 Runs as a Windows service Communicates through RPC, HTTP, or HTTPS Removes CIFS dependency Integrates with Performance Manager Supports VMware Guest OS features such as VMotion Two Interfaces: CLI sdcli.exe GUI Integrates into Microsoft Management Console (MMC) 4 Overview SnapDrive on Windows SnapDrive on Solaris 2008 NetApp. All rights reserved. Install SnapDrive 6.0 for Windows Requires .NET Framework 3.0 Requires a valid license key Requires IP-to-hostname resolution Default ports: RPC 808 HTTP 4094 HTTPS 4095 5 2008 NetApp. All rights reserved. SnapDrive for Windows Integrates into MMC 6 2008 NetApp. All rights reserved. Storage System Management Configure the storage systems to manage 7 1. Select 2. Select 2008 NetApp. All rights reserved. SnapDrive Services Local SnapDrive Services 8 2008 NetApp. All rights reserved. LUN Creation with SnapDrive for Windows Select Disk and then Create Disk 9 2. Select 1. Select 2008 NetApp. All rights reserved. Create Disk Wizard 10 Select a predefined storage system 2008 NetApp. All rights reserved. Create Disk Wizard (Cont.) 11 2008 NetApp. All rights reserved. Create Disk Wizard (Cont.) 12 2008 NetApp. All rights reserved. Create Disk Wizard (Cont.) 13 2008 NetApp. All rights reserved. Create Disk Wizard (Cont.) 14 2008 NetApp. All rights reserved. Create Disk Wizard (Cont.) 15 2008 NetApp. All rights reserved. Create Disk Wizard (Cont.) 16 Success 2008 NetApp. All rights reserved. LUN Removal with SnapDrive for Windows 17 To remove, right-click and select Delete Disk 2008 NetApp. All rights reserved. Snapshot Creation with SnapDrive Created a file on the virtual disk 18 2008 NetApp. All rights reserved. Snapshot Creation with SnapDrive (Cont.) 19 Select 2008 NetApp. All rights reserved. Snapshot Creation with SnapDrive (Cont.) 20 2008 NetApp. All rights reserved. Snapshot Restore with SnapDrive 21 The test file is deleted 2008 NetApp. All rights reserved. Snapshot Restore with SnapDrive (Cont.) 22 1. Select the Snapshot 2. Click Restore Disk 2008 NetApp. All rights reserved. Snapshot Restore with SnapDrive (Cont.) Performs a single file Snapshot restore SnapRestore must be licensed
23 2008 NetApp. All rights reserved. Snapshot Restore with SnapDrive (Cont.) 24 The test file is back 2008 NetApp. All rights reserved. SnapDrive 4.0 for UNIX Features: Runs as a daemon service Supports Solaris MPxIO and Veritas Dynamic Multi-Pathing Intelligent provisioning and managing storage Creates and restores Snapshot copies Volume-based single file Snapshot restore Integrates with SnapManager software through a Web service Command-line interface: # snapdrive ... 25 Overview SnapDrive on Windows SnapDrive on Solaris 2008 NetApp. All rights reserved. Installation of SnapDrive on Solaris Uncompress the file
Expand the file
Install the application
Navigate to the install location 26 # cd /_work # uncompress NTAPsnapdrive_sun_4.0.tar.Z # tar -xvf NTAPsnapdrive_sun_4.0.tar # cd NTAPsnapdrive # ./install Installing NTAPsnapdrive now ... # cd /opt/NTAPsnapdrive # ls bin diag docs snapdrive.conf # cd bin # ls snapdrive snapdrive.admin snapdrived uninstall The daemon Main file Configuration file 2008 NetApp. All rights reserved. SnapDrive Daemon To use SnapDrive 4.0 for UNIX, start the daemon:
To stop the daemon:
Status of the daemon:
27 # cd /opt/NTAPsnapdrive/bin # snapdrived start Successfully started daemon # snapdrived stop Successfully stopped daemon # snapdrived status Snapdrive Daemon Version : 4.0 Snapdrive Daemon start time : Fri Apr 25 08:25:10 2008 Total Commands Executed : 5 Job Status: No command in execution User must be logged in as root user to execute daemon commands 2008 NetApp. All rights reserved. Set Up SnapDrive Access By default, SnapDrive 4.0 uses SSL Configure the storage system for SSL To configure: system> secureadmin setup ssl Follow the wizard-like prompts
Verify that OS can properly resolve host name Requires both forward and reverse resolution For example: DNS # vi /etc/hosts 28 2008 NetApp. All rights reserved. Set Up SnapDrive Access (Cont.) Verify current permissions to a storage system: 29 # snapdrive config access list storage_system_1_IP ALL ACCESS Commands allowed: snap create snap restore snap delete snap rename storage create storage resize snap connect storage connect storage delete snap disconnect storage disconnect 2008 NetApp. All rights reserved. Set Up SnapDrive Access (Cont.) Set the user name and password for access: 30 # snapdrive config set root storage_system_1_IP Password: Verify Password: Using root user for educational purposes only 2008 NetApp. All rights reserved. Creating a LUN with SnapDrive on Solaris To create a LUN
To create a LUN, provide LUN access, add a file system, and mount the virtual disk
# cd /mnt/lun5 # touch foo # ls foo lost+found #snapdrive storage create -lun system:/vol/vol_SAN1/lun4 -lunsize 100m igroup created earlier 2008 NetApp. All rights reserved. LUN Management List LUNs available
32 # snapdrive storage list -all Connected LUNs and devices: ... Host devices and file systems: raw device: /dev/dsk/c2t500A0981869832E4d2s2 mount point: /mnt/lun5 (persistent) fstype ufs
device filename adapter path size proto state clone lun path backing snapshot -------------------------------------------------------------------- /dev/dsk/c2t500A0981869832E4d2s2 - P 100m fcp online No san208f1:/vol/vol0/lun5 - 2008 NetApp. All rights reserved. Removing a LUN with SnapDrive To remove a mounted LUN: 33 # pwd /mnt # ls vol0 lun1 lun3 lun5 # snapdrive storage delete -fs /mnt/lun5
delete file system /mnt/lun5 - fs /mnt/lun5 ... deleted - LUN san208f1:/vol/vol0/lun5 ... deleted # ls vol0 lun1 lun3 Verify that you are not in the mountpoint 2008 NetApp. All rights reserved. Snapshot Creation with SnapDrive To create a Snapshot of a mounted LUN: 34 # snapdrive snap create -fs /mnt/lun5 -snapname my_snap Starting snap create /mnt/lun5 WARNING: DO NOT CONTROL-C! If snap create is interrupted, incomplete snapdrive generated data may remain on the filer volume(s) which may interfere with other snap operations. Successfully created snapshot my_snap on san208f1:/vol/vol0
snapshot my_snap contains: file system: /mnt/lun5 2008 NetApp. All rights reserved. List Snapshot Copies with SnapDrive List the Snapshot copies for a mounted LUN: 35 # snapdrive snap list -v -fs /mnt/lun5
snap name host date snapped --------------------------------------------------------- system:/vol/vol0:my_snap sun May 1 14:33 /mnt/lun5
lun path dev paths ------------------------------------------------------- system:/vol/vol0/lun5 /dev/dsk/c2t500A0981869832E4d2s2 2008 NetApp. All rights reserved. Snapshot Restore with SnapDrive To restore a mounted LUN: 36 # pwd /mnt/lun5 # ls foo lost+found # rm foo # ls lost+found # cd .. # pwd /mnt # snapdrive snap restore -fs /mnt/lun5 -snapname my_snap ... # cd lun5 # ls foo lost+found Verify that you are not in the mountpoint Requires snaprestore license on the storage system Remove a file The file is restored 2008 NetApp. All rights reserved. Summary SnapDrive software provides simple storage provisioning of LUNs SnapDrive 4.0 for UNIX and SnapDrive 6.0 for Windows provides methods for creating LUNs, creating consistent Snapshot copies, and restoring from a Snapshot SnapDrive 4.0 for UNIX runs with a daemon, while SnapDrive 6.0 for Windows runs as a service
37 Overview SnapDrive on Windows SnapDrive on Solaris 2008 NetApp. All rights reserved. 38 Exercise Estimated Time: 60 minutes 38 2008 NetApp. All rights reserved. 2008 NetApp. All rights reserved. Module Review What does SnapDrive software provide? Simple storage provisioning of LUNs Consistent data Snapshot copies Automates backups and recoveries SnapDrive for Solaris runs as a Solaris daemon, while SnapDrive for Windows runs as a Windows service. True or false? True 40