Posts Tagged ‘ontap’

Migrating NetApp Filer Shelves to New Filer Head

Current Filer Head:
- Upgrade OS to match new filer head
- Shutdown filer head

New Filer Head
- Run options disk.auto_assign off
- Shutdown filer head
- Connect only one of the shelf chains from the current filer head
- Boot to maintenance mode
- Run disk assign all
- Shutdown the filer head
- Connect the other shelf chain
- Boot to normal mode
- Verify shelves – aggr status
- Run aggr online
- Verify shelves are online
- Run options disk.auto_assign on

Posted: March 30th, 2011
Categories: netapp, storage
Tags: , ,
Comments: No Comments.

NetApp OnTap Adding Volume for NFS with Permissions

Create volume
vol create NEW_VOLUME_FOR_NFS -s volume AGGREGATE 10g
vol status NEW_VOLUME_FOR_NFS
 
Read current exports
rdfile /etc/exports
 
Export
exportfs -p /vol/NEW_VOLUME_FOR_NFS
 
Export options - read-only for all, root and read-write for only ALLOWED_HOST
exportfs -io ro,root=ALLOWED_HOST:ALLOWED_HOST.sub.domain.com,rw=ALLOWED_HOST:ALLOWED_HOST.sub.domain.com /vol/NEW_VOLUME_FOR_NFS
 
Confirm client can access ethe xport (Use IP Address)
exportfs -c ALLOWED_HOST_IP_ADDR /vol/NEW_VOLUME_FOR_NFS
 
Unexport
#exportfs -u /vol/NEW_VOLUME_FOR_NFS
 
Flush access-cache
#exportfs -f
Posted: March 25th, 2011
Categories: netapp, ontap, storage
Tags: , , ,
Comments: No Comments.

Snapmirror

 
SnapMirror Volume Level
 
Source:
vol create BLAH
options snapmirror.enable
rdfile /etc/snapmirror.allow
wrfile -a /etc/snapmirror.allow "Destination"
 
Destination:
vol create sm_BLAH -s volume aggr0 50g
vol restrict sm_BLAH
snapmirror init -S Source:/vol/BLAH
 
Confirm on Destination:
snapmirror status
 
Schedule on Destination:
rdfile /etc/snapmirror.conf
 
Resync on Destination:
snapmirror resync
 
Break on Destination:
snapmirror quiesce
snapmirror break
 
Update on Destination:
snapmirror update
 
Abort on Destination:
snapmirror abort
Posted: March 25th, 2011
Categories: netapp, storage
Tags: , ,
Comments: No Comments.

Duplicating the Volume & LUNs to an Aggregate using NetApp Snapmirror

# Gather original volume size and LUN serials
vol size /vol/SOURCE_VOL
lun show -v /vol/SOURCE_VOL/SOURCE_1_LUN
lun show -v /vol/SOURCE_VOL/SOURCE_2_LUN
( Note Volume Size & Serial# for each LUN )
# Create volume
vol create TARGET_VOL -s volume NEW_AGGREGRATE SIZE_FROM_SOURCE
vol options TARGET_VOL nosnap on
vol options TARGET_VOL nosnapdir on
vol restruct TARGET_VOL
snapmirror initialize -S FILER:SOURCE_VOL TARGET_VOL
snapmirror status
# Unmount LUNs from the host
# Update Snapmirror
(host) umount LUN_1_PATH
(host) umount LUN_2_PATH
snapmirror update -S FILER:SOURCE_VOL TARGET_VOL
snapmirror status
# Break Snapmirror
# Update volume options
snapmirror break TARGET_VOL
snapmirror status -l (record snapshot volume)
snap delete TARGET_VOL BASE SNAPSHOT FROM STATUS -L)
vol options TARGET_VOL fs_size_fixed off
snap sched TARGET_VOL 0 0 0
snap reserve TARGET_VOL 0
vol size TARGET_VOL ANY_NEW_SIZE
# Unmap source LUNs
lun unmap /vol/SOURCE_VOL/SOURCE_1_LUN LUN_HOST
lun unmap /vol/SOURCE_VOL/SOURCE_2_LUN LUN_HOST
# Offline source & target LUNs
lun offline /vol/SOURCE_VOL/SOURCE_1_LUN
lun offline /vol/SOURCE_VOL/SOURCE_2_LUN
lun offline /vol/TARGET_VOL/TARGET_1_LUN
lun offline /vol/TARGET_VOL/TARGET_1_LUN
# Apply serial number on target LUNs
lun serial /vol/TARGET_VOL/TARGET_1_LUN SERIAL#
lun serial /vol/TARGET_VOL/TARGET_2_LUN SERIAL#
# Online target LUNs
lun online /vol/TARGET_VOL/TARGET_1_LUN
lun online /vol/TARGET_VOL/TARGET_2_LUN
# Map target LUNs
lun map /vol/TARGET_VOL/TARGET_1_LUN LUN_HOST
lun map /vol/TARGET_VOL/TARGET_2_LUN LUN_HOST
# Mount LUNs from the host
# Applying the serial number to the LUN keeps the device path
(host) mount LUN_1_PATH
(host) mount LUN_2_PATH
Posted: December 13th, 2009
Categories: netapp, ontap, storage
Tags: , , , ,
Comments: No Comments.

Useful NetApp Commands

To go into the advanced mode:
- priv set advanced (diag mode)
To read files on the console:
- rdfile
To read files from your machine:
- Mount :/vol0
To write files on the console:
- wrfile (CTRL-C)
Some useful disk commands (use -v for more info):
- sysconfig -r (show disks)
- aggr status
- vol stat
vol options
- nosnap
- nosnapdirectory
- no_i2p
vol create -s dist_vol origin:source_vol guarantee=none (thin provisioned)
Security:
- qtree security /vol/volume/qtree
- options wafl
Snapmirror:
- snapmirror status
- snapmirror destinations
- rdfile /etc/snapmirror.allow
- vol create volumes -s none aggr0 100g (source)
- vol create volume_dr -s none aggr1 110g (destination)
- vol restrict volumes_dr
- snapmirror initialize -s 5train:volumes volume_dr
- snapmirror status
- rdfile /etc/snapmirror.conf
Exports:
- exportfs -p
- exportfs -a (if you do this with a file)
Posted: September 26th, 2008
Categories: netapp, ontap
Tags: ,
Comments: No Comments.