Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of common commands in NetApp

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "NetApp common command summary", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "NetApp common command summary" bar!

Data ONTAP operating system

1. View hard disk information

Credit-2 > sysconfig-r

two。 View the information of the host fiber interface

Credit-2 > fcp show initiator

3. View the information of the volume

Data > qtree

4. View LUN space usage

Credit-2 > df-g

5. View the information that stores the created group

Credit-2 > df-Ag

6. Check the network interface

Credit-2 > ifconfig-a

7. Check whether the cluster status is normal

Credit-2 > cf status

8. Performance check

Credit-2 > sysstat 3

Credit-netapp1 > sysstat-x 1

9. View the Syslog:

Check carefully if there are words such as failed,error,warning.

Credit-2 > rdfile / etc/messages

10. Check all hardware

Credit-2 > sysconfig-v

11. Check whether the network is working properly

Credit-2 > ping 192.168.1.200

twelve。 Create a jydb volume in aggr0 with a size of 200g

Credit-1 > vol create jydb aggr0 200g

13. Dynamically add 100g to the jydb volume

Credit-1 > vol size jydb + 100g

Reduce volume size:

Credit-netapp1 > vol size neirong-7t

14. To delete a credit volume, offline before destroy

Credit-1 > vol offline credit

Credit-1 > vol destroy credit

15. Output exportfs

Copy the content first

Credit-2 > rdfile / etc/exports

/ vol/cps-sec=sys,rw=172.16.10.0/24,root=172.16.10.0/24,nosuid

/ vol/hetong-sec=sys,rw=172.16.10.0/24,root=172.16.10.0/24,nosuid

/ vol/weixin-sec=sys,rw=172.16.10.102:172.16.10.122,root=172.16.10.102:172.16.10.122,nosuid

And then execute:

Credit-2 > wrfile / etc/exports

If you paste the content you have just copied, you must enter before the last line will take effect.

Ctl+c exit and save

Execute the exportfs command and output the directory:

Credit-2 > exportfs-a

Netapp > exportfs-I-o rw=10.1.15.125,root=10.1.15.125 / vol/test

-I-o is currently in effect, such as writing to / etc/exports file, restart recovery

Netapp > exportfs-p sec=sys,rw=10.1.15.125,root=10.1.15.125 / vol/test

In / etc/exports, the previous / vol/test configuration is annotated by "#" and the corresponding new configuration is generated.

16. Delete snapshot

Credit-1 > snap delete-a dbbk

Are you sure you want to delete all snapshots for volume dbbk? Y

Deleted dbbk snapshot hourly.5.

Deleted dbbk snapshot nightly.1.

Deleted dbbk snapshot hourly.4.

Deleted dbbk snapshot hourly.3.

Deleted dbbk snapshot hourly.2.

Deleted dbbk snapshot hourly.1.

Deleted dbbk snapshot nightly.0.

Deleted dbbk snapshot hourly.0.

Credit-1 > snap reserve dbbk 0

Credit-1 > snap sched dbbk 0 0 0

17. Add NetApp default route command

Credit-2 > route add default 172.16.10.1 1

Configuration file:

Credit-1 > rdfile / etc/rc

# Auto-generated by setup Mon Jan 7 17:20:14 CST 2013

Hostname credit-1

Ifgrp create lacp vif01-b ip e0b e0a

Ifconfig vif01 `hostname`-vif01 mediatype auto partner vif01

# route add default NONE 1

Route add default 172.16.10.1 1

Routed on

Options dns.enable off

Options nis.enable off

18. Modify file system inode

Can be modified through the maxfiles vol_name command

Maxfiles vol_name View

Maxfiles vol_name max_num_files modification

The value that can be modified is the size of the volume divided by 4KB

Credit-1 > maxfiles ruleengine 120000000

The new maximum number of files specified is more than twice as big as

It needs to be, based on current usage patterns. This invocation of the

Operation on the specified volume will allow disk space consumption for

Files to grow up to the new limit depending on your workload. The maxfiles

Setting cannot be lowered below the point of any such additional disk space

Consumption and any additional disk space consumed can never be reclaimed.

Also, such consumption of additional disk space could result in less

Available memory after an upgrade, which means you might not be able to

Run WAFL_check.

The new maximum number of files will be rounded to 119999989.

Are you sure you want to change the maximum number of files? Maxfiles: Maximum number of files not changed.

19. Add chenyu user

Useradmin user add chenyu-g administrators username / password: chenyu/Chenyu#2013

20. Set up clock server

Credit-netapp1 > options timed.servers 10.151.20.63, 10.151.20.73

Credit-netapp1 > options timed.enable on

21. View disk, raid group status

Credit-netapp1 > sysconfig-r

twenty-two。 View the status of aggr

Credit-netapp1 > aggr status-v

23. Enter advanced mode

Credit-netapp1 > priv set advanced

24. Remove hard disk head attribution

Credit-netapp1* > disk remove_ownership 0a.30.23

25. View the disk without the home head

Credit-netapp1* > disk show-n

twenty-six。 Assign all disks that do not have a home head to the head

Credit-netapp1* > disk assign all

twenty-seven。 Add a disk to aggr

Credit-netapp1* > aggr add aggr0-n 11

Aggr add aggr0-d 0a.30.5 0a.20.7 0a.30.4 0a.20.6 0a.30.3 0a.20.5 0a.30.2 0a.20.4 0a.30.1 0a.20.3 0a.30.0

twenty-eight。 Add a license for snapmirror.

Credit-2 > license add JOJTQPJ

A snapmirror 90 day site license has been installed.

twenty-nine。 View the status of snapmirror

Credit-2 > snapmirror status

Snapmirror is on.

thirty。 Set the status of the volume to limit mode

Credit-netapp1 > vol restrict huizheng

Volume 'huizheng' is now restricted.

thirty-one。 Create an incremental synchronization policy for snapmirror

Credit-netapp1 > rdfile / etc/snapmirror.conf

Credit-1:hetong credit-netapp1:hetong-0 23 * *

Credit-2:huizheng credit-netapp1:huizheng-5 23 * *

-5 horizontal bars do not automatically perform incremental synchronization.

-* 4 horizontal bars and 4 stars represent execution once a minute.

thirty-two。 Set the destination IP to the trust relationship on the source side

Credit-2 > options snapmirror.access host=172.16.10.250172.16.10.251

thirty-three。 The first full synchronization

Credit-netapp1 > snapmirror initialize-S credit-1:hetong credit-netapp1:hetong

thirty-four。 Incremental synchronization

Credit-netapp1 > snapmirror update-S credit-1:hetong credit-netapp1:hetong

thirty-five。 View the current cifs share

Credit-netapp1 > cifs shares

thirty-six。 Add a cifs share

Credit-netapp1 > cifs shares-add rural / vol/rural

thirty-seven。 Delete a cifs share

Credit-netapp1 > cifs shares-delete rural

thirty-eight。 Use netapp default administrator user access on the windows operating system

Credit-netapp1 > useradmin user list

Name: root

Info: Default system administrator.

Rid: 0

Groups:

Name: administrator

Info: Built-in account for administering the filer

Rid: 500

Groups: Administrators

Name: chenyu

Info:

Rid: 131073

Groups: Administrators

thirty-nine。 Mount the netapp log volume to the linux host

# mount 172.16.10.250:/vol/vol0 / mnt

forty。 Check the parameter settings of the volume

Credit-netapp2 > vol options dss_hetong

Nosnap=off, nosnapdir=off, minra=off, no_atime_update=off, nvfail=off

Ignore_inconsistent=off, snapmirrored=off, create_ucode=on

Convert_ucode=off, maxdirsize=73400, schedsnapname=ordinal

Fs_size_fixed=off, guarantee=volume, svo_enable=off, svo_checksum=off

Svo_allow_rman=off, svo_reject_errors=off, no_i2p=off

Fractional_reserve=100, extent=off, try_first=volume_grow

Read_realloc=off, snapshot_clone_dependency=off, dlog_hole_reserve=off

Nbu_archival_snap=off

Add route: # route add-net 172.16.10.0 netmask 255.255.255.0 gw 172.16.20.1

Windows operating system add routes: route add 172.16.10.0 mask 255.255.255.0 172.16.20.1

Log in to netapp Stora

# ssh root@172.16.10.10

The password is credit#2013

Create a 50g siz

Credit-1 > vol create cps aggr0 50g

Thank you for your reading, the above is the content of "NetApp common command summary", after the study of this article, I believe you have a deeper understanding of the problem of NetApp common command summary, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report