• NetAPP常用操作


    ===CIFS share===========================================================================================
    NAS1> vol create dbv02 aggr0 1t

    NAS1> qtree security /vol/dbv02 ntfs

    NAS1> cifs shares -add dbv02 /vol/dbv02

    NAS1> cifs shares
    Name Mount Point Description
    ---- ----------- -----------
    dbv02 /vol/dbv02   everyone / Full Control

    NAS1> cifs access -delete dbv02 everyone
    1 share(s) have been successfully modified

    NAS1> cifs shares
    Name Mount Point Description
    ---- ----------- -----------
    dbv02 /vol/dbv02

    NAS1> cifs access dbv02 "DBAs" "full control"

    NAS1> cifs shares
    Name Mount Point Description
    ---- ----------- -----------
    dbv02 /vol/dbv02  domaindbas / Full Control


    ===Disable snapshot=======================================================================================
    NAS1> vol options dbv02 nosnap on
    NAS1> vol options dbv02 nosnapdir on

    NAS1> snap reserve dbv02
    Volume dbv02: current snapshot reserve is 5% or 53687088 k-bytes.

    NAS1> snap reserve dbv02 0
    NAS1> snap reserve dbv02
    Volume dbv02: current snapshot reserve is 0% or 0 k-bytes.

    NAS1> snap delete -a dbv02
    Are you sure you want to delete all snapshots for volume dbv02? y
    Deleted dbv02 snapshot nightly.1.

    NAS1> snap sched dbv02 0 0 0 [disable sched for dbv02]

    ===NFS share=========================================================================================

    NAS1> exportfs
    NAS1> rdfile /etc/exports
    #Auto-generated by setup Wed Jan 6 01:31:44 GMT 2010
    #/vol/vol0 -sec=sys,rw,anon=0,nosuid
    #/vol/vol0/home -sec=sys,rw,nosuid

    NAS1> wrfile /etc/exports  {push Enter, Ctril+C to save and exit}
    #Auto-generated by setup Wed Jan 6 01:31:44 GMT 2010
    #/vol/vol0 -sec=sys,rw,anon=0,nosuid
    #/vol/vol0/home -sec=sys,rw,nosuid
    /vol/ndbv01 -sec=sys,rw=192.168.100.22,root=192.168.100.22

    NAS1> exportfs /vol/ndbv01
    NAS1> exportfs
    /vol/ndbv01 -sec=sys,rw=192.168.100.22,root=192.168.100.22

    NAS1> exportfs #display exported file sys path
    NAS1> exportfs -r #clear mem and refresh nfs conf from /etc/exportfs
    NAS1> exportfs -a #load nfs conf from /etc/exportfs
    NAS1> exportfs -io rw=10.45.67/24 /vol/dbv01 #override /etc/exportfs and refresh nfs
    NAS1> exportfs -u /vol/dbv01 #unexport /vol/dbv01
    NAS1> exportfs -ua #unexport all file patch
    NAS1> exportfs -z /vol/dbv01 #unexport /vol/dbv01 and remove entry from /etc/exportfs
    NAS1> exportfs -f /vol/dbv01 #flush all entries for /vol/dbv01
    NAS1> exportfs -w /etc/exports.save #saving file system path

    =====================================================================================================

  • 相关阅读:
    MySQL的索引
    Linux 恢复rm -rf命令所删除的达梦数据文件
    史上最全Oracle文件损坏处理办法(附实验步骤)
    【2020-MOOC-浙江大学-陈越、何钦铭-数据结构】树(第四周的笔记和编程作业)
    你以为运维就是修电脑?大错特错!盘点一个高级运维的一天
    ElasticSearch中的_source和store:既生瑜何生亮
    为什么你不想学习?只想玩?人是如何一步一步废掉的
    【程序员日记】快乐的一周嘛(第8期)(财富、快乐、技术)
    【2020-MOOC-浙江大学-陈越、何钦铭-数据结构】树(第三周的笔记和编程作业)
    SqlBulkCopy 批量插入
  • 原文地址:https://www.cnblogs.com/oskb/p/3670631.html
Copyright © 2020-2023  润新知