netapp system administration

来源:互联网 发布:做网络销售股票犯法吗 编辑:程序博客网 时间:2024/05/29 02:25
Netapp

1.常用操作

Use the applicable key combination to move the cursor within the same line and edit the
command:
If you want to...                                                                                                                                    Then press...
Move the cursor right one position                                                                                                  Ctrl-f or the Right arrow key
Move the cursor left one position                                                                                                     Ctrl-b or the Left arrow key
Move the cursor to the end of the line                                                                                             Ctrl-e
Move the cursor to the beginning of the line                                                                                  Ctrl-a
Delete all characters from the cursor to the end of the line                                                        Ctrl-k
Delete the character to the left of the cursor and move the cursor left one position                   Ctrl-h
Delete the line                                                                                                                                      Ctrl-u
Delete a word                                                                                                                                       Ctrl-w
Reprint the line                                                                                                                                     Ctrl-r
Abort the current command                                                                                                               Ctrl-c


2.权限切换

Enter the following command:
priv set [-q] [admin | advanced]
admin sets the privilege level to administrative.
advanced sets the privilege level to advanced.
-q enables quiet mode. It suppresses the warning that normally appears when you set the
privilege level to advanced.
Note: If no argument is given, the default, admin, is applied.
Example
Assuming the name of the storage system is sys1, the storage system prompt is sys1>, as shown
in the following example.
sys1> priv set advanced
The following message is displayed, followed by the advanced mode storage system prompt.
Warning: These advanced commands are potentially dangerous; use them
only when directed to do so by technical personnel.
sys1*>

3.会话环境配置

options telnet.distinct.enable [on|off]
autologout.console.enable 
autologout.console.timeout
autologout.telnet.enable
autologout.telnet.timeout
options ssh.enable on
options ssh2.enable on
options ssh1.enable off
options ssh.passwd_auth.enable on
options ssh.pubkey_auth.enable on
options httpd.admin.ssl.enable on
options ftpd.enable on
options ftpd.dir.override /vol/vol0/etc          default dir
options sftp.enable on
options sftp.dir_override /vol/vol0/etc


Setting up and starting ssh
secureadmin setup [-f] [-q] ssh
The -f option forces setup to run even if the SSH server has already been configured.
The -q option is the non-interactive mode for setting up SSH. See the na_secureadmin(1) man
page for more information.
secureadmin enable {ssh1|ssh2}


Reinitializing SSH
secureadmin disable {ssh1|ssh2}
secureadmin setup -f [-q] ssh
secureadmin enable {ssh1|ssh2}

display configuration
options ssh
options telnet
options autologout
secureadmin status (min)

enable ssl
secureadmin {enable|disable} ssl

Controlling the NFS mount privilege
options nfs.mount_rootonly on

Controlling anonymous CIFS share lookups
options cifs.restrict_anonymous 0|1|2

Controlling Telnet access using shostnames
options trusted.host -|*

4.log日志

If you would like to change the level of messages that are sent to /etc/messages, you can
edit /etc/syslog.conf. For more information about message levels and the /etc/syslog.conf
file, see the na_syslog.conf(5) man page.


5.change the root volume


Steps

1. Identify an existing volume to use as the new root volume, or create the new root volume by
using the vol create command.
For more information about creating volumes, see the Data ONTAP Storage Management Guide
for 7-Mode.
2. Use the ndmpcopy command to copy the /etc directory and all of its subdirectories from the
current root volume to the new root volume.
For more information about ndmpcopy, see the Data ONTAP Data Protection Tape Backup and
Recovery Guide for 7-Mode.
3. Enter the following command to specify the new root volume:
vol options vol_name root
vol_name is the name of the new root volume.
If the volume does not have at least 2 GB of free space, the command fails and an error message
appears.
After a volume is designated to become the root volume, it cannot be brought offline or restricted.
4. If you moved the root volume outside the current root aggregate, enter the following command to
change the value of the aggregate root option so that the aggregate containing the root volume
becomes the root aggregate:
aggr options aggr_name root
aggr_name is the name of the new root aggregate.
For more information about the aggregate root option, see the na_aggr(1) man page.
5. Enter the following command to reboot the storage system:
reboot
When the storage system finishes rebooting, the root volume is changed to the specified volume.
If you changed the root aggregate, a new root volume is created during the reboot when the
aggregate does not already contain a FlexVol volume designated as the root volume and when the
aggregate has at least 2 GB of free space.
6. Update the httpd.rootdir option to point to the new root volume.


6.startup and halt
version
reboot -t
halt

7.useradd
useradmin user add molly -n "Molly Mulberry" -c "Filer administrator in Corp IT" -g Administrators
useradmin domainuser add domain\username -g Administrators
useradmin group list
useradmin user list

8.Loading groups from the lclgroups.cfg file
When groups are created, they are placed in the lclgroups.cfg file. Normally, this file is for
administrative reference only. It is not used to reload groups into the system memory. However,
sometimes you need Data ONTAP to reload this file, for example, when you are migrating a storage
system or a vFiler unit.

Steps
1. Using a client, copy the new lclgroups.cfg file to the /etc directory, giving it a different
name.
2. Enter the following command:
useradmin domainuser load new_lclgroups.cfg_filename
new_lclgroups.cfg_filename is the name of the new lclgroups.cfg file you created in
Step 1.
The groups in the current lclgroups.cfg file are unloaded from memory and the groups in the
new lclgroups.cfg file are loaded into memory. In addition, the current lclgroups.cfg file
is moved to lclgroups.cfg.bak, and a new lclgroups.cfg file is created from the file you
specified.