- M03- basic admin
- Alternative GUIs
- ?哪里可调出windows computer management?(MMC)
- RLM模块
- 公司的应该看看是否可以配置
- Login
- Telnet 允许options的试验没成功.
- RSH - 允许远程机器不用维护console会话(without having console session) 来执行console命令 (一般用的filer的用户是root用户 远程用户如果不是root 需要-l option)
- Options rsh.enable on
- Configuration file: /etc/hosts.equiv
- Format: hostname(IP) username(remote user)
- 客户端命令格式
- Unix : rsh storage_system "command"
- Windows: rsh storage_system -l <user> "command" (windows用户一般不可能定义root用户 所以-l, jj/Administrator - 一定写成Administrator)
- 调试: 可以看日志中的登录信息提示(或者root用户登录console或telnet会话后日志屏显)
- Ssh
- Secureadmin
- Host keys are stored in /etc/sshd/ssh_host_key, /etc/sshd/ssh_host_rsa_key, and /etc/sshd/ssh_host_dsa_key.
- Then try : permission denied
- Secureadmin
- Advanced privilege commands
- Priv set advanced
- Priv set admin
- Sample
- disk命令在adv模式下多了一些命令:
unfail [-s] <disk_name> - unfail a disk (-s not valid in maintenance mode)
- disk命令在adv模式下多了一些命令:
- Alternative GUIs
power_cycle [ -f ] { [-d <disk_list>] | [ -c <channel_name> [ -s <shelf_number> ] ] } - power-cycle one or more disks
upgrade_ownership - upgrade disks to new ownership scheme
- Basic system configuration
- Sysconfig
- -v:get system configuration info
- -r:raid info
- -d:disk info
- -c: check configuration whether has some wrong.
- Sample
- 这次启动的时候filer2遇到点问题:(后来filer1 giveback后看起来问题消失了)
- Sysconfig
suse1:/sim/node2 # ./runsim.sh
runsim.sh script version Script version 22 (18/Sep/2007)
This session is logged in /sim/node2/sessionlogs/log
NetApp Release 7.3.1: Thu Jan 8 00:10:49 PST 2009
Copyright (c) 1992-2008 NetApp.
Starting boot on Thu Dec 3 12:14:23 GMT 2009
Thu Dec 3 12:14:25 GMT [cf.disk.ResvFail:CRITICAL]: Disk v0.16 has been reserved by the cluster partner and cannot be accessed.
Thu Dec 3 12:14:25 GMT [cf.disk.ResvTakeOver:CRITICAL]: This node will wait for cluster giveback and the disk reservations to be released.
Waiting for giveback
Reservation conflict found on this node's disks!
Local System ID: 99904947
Press Ctrl-C for Maintenance menu to release disks.
Disk reservations have been released
- Filer1 3块磁盘,filer2 2块磁盘
filer1> sysconfig -r
Aggregate aggr0 (online, raid0) (zoned checksums)
Plex /aggr0/plex0 (online, normal, active)
RAID group /aggr0/plex0/rg0 (normal)
RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks)
--------- ------ ------------- ---- ---- ---- ----- -------------- --------------
data v0.16 v0 1 0 FC:A - FCAL N/A 120/246784 127/261248
data v0.17 v0 1 1 FC:A - FCAL N/A 120/246784 127/261248
data v0.18 v0 1 2 FC:A - FCAL N/A 120/246784 127/261248
Spare disks (empty)
Partner disks
RAID Disk Device HA SHELF BAY CHAN Pool Type RPM Used (MB/blks) Phys (MB/blks)
--------- ------ ------------- ---- ---- ---- ----- -------------- --------------
partner v4.17 v4 1 1 FC:B - FCAL N/A 120/246784 127/261248
partner v4.16 v4 1 0 FC:B - FCAL N/A 120/246784 127/261248
filer1> sysconfig -d
Device HA SHELF BAY CHAN Disk Vital Product Information
---------- --------------- ----- ------------------------------
v0.16 v0 1 0 FC:A 21660000
v0.17 v0 1 1 FC:A 21660001
v0.18 v0 1 2 FC:A 21660002
v4.16 v4 1 0 FC:B 23861000
v4.17 v4 1 1 FC:B 23861001
- System configuration
- Command line interface
- Options/vol options
- Will save in related configuration files automatically
- File is in /etc/registry---don’t change this file manually!!!
- 有一些系统自动的备份的registry存在--如/etc/registry.lastgood /etc/registry.bck
- 怎样调用呢?
- Options [name ] values(on|off or other)
- value如果包含特殊字符(比如包含空格),用"".
- 可以过滤
- Vol & aggr options
- filer1> vol options vol0
- Will save in related configuration files automatically
- Options/vol options
- Command line interface
root, diskroot, nosnap=off, nosnapdir=off, minra=off,
no_atime_update=on, nvfail=off, ignore_inconsistent=off,
snapmirrored=off, create_ucode=on, convert_ucode=on, maxdirsize=2621,
schedsnapname=ordinal, fs_size_fixed=off, compression=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,
filer1> aggr options aggr0
root, diskroot, nosnap=off, raidtype=raid0, raidsize=8,
ignore_inconsistent=off, snapmirrored=off, resyncsnaptime=60,
fs_size_fixed=off, snapshot_autodelete=on, lost_write_protect=on
Sample:
Aggr options aggr0 raidtype raid4(如果原来是dp)
Disk zero spares-看到多了一个spare盘
- Other configuration files
- /etc/hosts; /etc/rc; /etc/hosts.equiv; /etc/dgateways
- 如果配置出线错误,可能filer不能使用甚至启用,此时,可以手工执行一些命令来修正(比如网络如果设置有问题,可以ifconfig手工修改先,网络通了然后再去修改这些配置文件.
- Admin hosts
- NFS:
- 要求:setup命令设置adminhost或者--修改/etc/hosts.equiv来设置授权机器和用户
- Admin host上获得的权限:以root权限mount filer root directory; 用rsh来远程管理command
- Cifs
- 要求:domain administrator(如果在域上的话)
- 访问c$
- 测试:
- nfs做过多次了,再做一个与exportfs有没有关系的测试
/vol/vol0 -sec=sys,ro,rw=192.168.1.220,root=192.168.1.220,nosuid -->修改之后无需等待,直接exportfs看到结果,客户端直接访问(即使先前已经mount了)
测试过了,root还需要设置 /etc/是root用户拥有的, - 用windows试一下修改系统配置文件
- Filer1>useradmin user list
- nfs做过多次了,再做一个与exportfs有没有关系的测试
- NFS:
Name: administrator
Info: Built-in account for administering the filer
Rid: 500
Groups: Administrators
- windows客户端上(??任意客户端??)-因为现在的filer cifs的模式为netgroup,没有domain(以后架设一个域来测试一下)
//192.168.1.221/c$ -用filer本地上的administrator登录
展开看到目录树,再去修改--ok - 此时,在filer上监控一下
filer1> cifs sessions -s
users
Security Information
192.168.1.6() (FILER1/administrator - root)
***************
UNIX uid = 0
user is a member of group daemon (1)
user is a member of group daemon (1)
NT membership
FILER1/administrator
BUILTIN/Administrators
User is also a member of Everyone, Network Users,
Authenticated Users
- console上的编辑
- Rdfile & wrfile(个人不推荐用这种方法,因为该工具不方便而且有风险-不注意就清掉了以前的内容)
- 用filer view来修改-略,图形化的方式,看看就行.
- Autosupport email features
- Autosupport events & subject line of email--list
- Autosupport.content minimal|complete
- /etc/log/autosupport --> stored position
- Detailed contents
- System commands output: sysconfig, vol stauts, …. Etc
- Date and timestamp of msg
- Software version
- System id and hostname
- License enabled
- SNMP contact info and location
- /etc/messages
- /etc/serialnum
- …
- Options
- Autosupport.enable -->autosupport daemon(是否启用autosupport)
- Autosupport.support.enable -->whether to notify to network appliance(是否通知netapp公司)
- Autosupport.mailhost ->SMTP mail host to receive autosupport email
- Autosupport.to -->email 发给谁(自己公司的netapp管理员)
- How to test autosupport
- Options autosupport.doit testing(subject) , on colsole, you can see one info 'system notification sent'
- Test
- SNMP 设置: snmp contact "aaa"; snmp location "asdgad; snmp init 1
Telnet to mailhost , /usr/ucb/mail,看邮件
- SNMP 设置: snmp contact "aaa"; snmp location "asdgad; snmp init 1