Netapp
Jump to navigation
Jump to search
Creating a Volume
- aggr show_space and chose an aggr
- vol create vol12_dhs_syslog_ashna3_nas -l en aggr6_1TB_SAS_SATA 500g to create the new volume on that aggr
- snap sched vol12_dhs_syslog_ashna3_nas 0 0 0 to set snapshot schedule to none
- snap reserve vol12_dhs_syslog_ashna3_nas 0 to set snapshot reserve space to 0
- qtree create /vol/vol12_dhs_syslog_ashna3_nas/ashsyslog02 to create a qtree if needed
Add qtree to exports file: /vol/vol12_dhs_syslog_ashna3_nas/ashsyslog02 -sec=sys,rw,root=10.252.0.31:server_ip,nosuid
Snap Sched
dsnetapp14> snap sched vol1_dhs_vm_datastore_dsna14_nas Volume vol1_dhs_vm_datastore_dsna14_nas: 0 2 6@8,12,16,20
This means:
- keep 0 weekly snapshots
- create a snapshot every day and keep a max of 2
- Create snapshots at 0,12,16,20 hours every day, and keep at most 6
Breaking Snapmirrors
Do this on the destination netapp, not source To Break:
- snapmirror quiesce <volname>
- snapmirror break <volname>
To Resync:
- snapmirror resync <volname>
Increase Inodes for a Volume
- maxfiles vol13_boats_imtimages_dsna2_nas 23499996
Luns
[root@ashmon1 log]# ssh ashnetapp03 "lun show" | grep vol1_aa_sql1_sqldata7_ashna3_san /vol/vol1_aa_sql1_sqldata7_ashna3_san/sqldata7.lun 320.0g (343619297280) (r/w, offline, mapped)
See how the lun was offline.
You increase the space in the volume and then do a "lun online /vol/vol1_aa_sql1_sqldata7_ashna3_san/sqldata7.lun"
[root@ashmon1 log]# ssh ashnetapp03 "lun show" | grep vol1_aa_sql1_sqldata7_ashna3_san /vol/vol1_aa_sql1_sqldata7_ashna3_san/sqldata7.lun 320.0g (343619297280) (r/w, online, mapped)
Luns on server side
- To view where a lun is mounted: sanlun lun show -p