Chinaunix首页 | 论坛 | 博客
  • 博客访问: 821297
  • 博文数量: 188
  • 博客积分: 4433
  • 博客等级: 上校
  • 技术积分: 1905
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-14 07:14
个人简介

linux

文章分类

全部博文(188)

文章存档

2016年(6)

2015年(22)

2014年(18)

2013年(5)

2012年(125)

2011年(10)

2010年(2)

分类: 系统运维

2012-03-27 22:18:53

网上收集了一些solaris的面试题,算是对solaris学习过程的一个总结
1.网友bininbinin
问:在solaris上换掉一个坏的镜像
答:
问:如何设置,solaris的网卡如何做到loadbalance
答:
问:新添加的网卡,如何在solaris主机上识别出来
答:
问:如何添加网络上面的storage,识别新的网络硬盘?
答:
问:如何在线扩文件系统
答:
How to replace a failed SCSI disk mirrored with SolsticeDiskSuite (command line method) WITHOUT taking Solaris down:

The following assumptions have been made for this example procedure:
A. Server name= bigserver.company.com
B. OS = Solaris 7 or 8
C. DiskSuite versions 4.2 or 4.2.1
D. The ‘bad’ disk is hot-swappable.
E. Metadevice numbers and state database replicas are taken from those used on
the actual system.
F. Actual command line syntax is shown in bold text.
1. Collect output from the following:
# metastat
# metastat -p
# metadb -i
2. To identify the disk to be replaced:
Examine the "metadb -i" output. You should see a "W" in the flags field associated with slice 7 of the disk experiencing write errors. Another indication is to look at the output from the “format” command.Next to the device name the text string “” will appear indicating that the disk label cannot be read and therefore it is very likely that the disk has failed. For this example, we will assume the failed disk device is c0t0d0.
3. Delete any metadevice state database replicas that are on the 'bad' disk:
# metadb -d c0t0d0s7
# metadb -i (to make sure they have been deleted)
4. State of the submirrors:
The “metastat” command output reports that all submirrors on the bad disk are at a State of “Needs maintenance”. This indicates that DiskSuite has automatically disabled the submirrors, so there is no need to “metadetach” the submirrors.
5. Physically replace the failed hot-swappable disk.
6. Partition the new disk:
Easiest way to do this is to copy the partition table from the root mirror (c0t1d0s2) to the new disk (c0t0d0s2) with the following dd command:
# dd if=/dev/rdsk/c0t1d0s2 of=/dev/rdsk/c0t0d0s2 count=16
Verify the partition table was copied correctly using the format utility. Type "format", select the corresponding disk number from the disk selection menu, then type "p", then "p" again to view the partition table. Compare and make sure the partition tables match EXACTLY.
7. Recreate the metadevice state database replicas that were deleted in step 3 from c0t0d0s7:
# metadb -a -f -c 3 /dev/dsk/c0t0d0s7
# metadb -i (verify the creation)
8. Re-enable the submirrors:
# metareplace –e d1 c0t0d0s0 (d1 is / and c0t0d0s0 is device associated w/ d11 submirror)
# metareplace –e d2 c0t0d0s1 (d2 is /usr and c0t0d0s1is device associated w/ d12 submirror)
# metareplace –e d3 c0t0d0s3 (d3 is /var and c0t0d0s3 is device associated w/ d13 submirror)
# metareplace –e d5 c0t0d0s5 (d5 is /opt and c0t0d0s5 is device associated w/ d15 submirror)
Note: Run "metastat | grep sync" to check syncing status. When all syncing is complete, run
"metastat" again to verify that the "State" of all submirrors is "Okay".

1.solaris有哪些配置文件,(如/etc/hosts,inetd.conf,passwd,shadow等)它们有什么作用?
/etc/hosts (存放IP和主机名)
/etc/netmasks (子网掩码)
/etc/inetd.conf(一些服务和启动项目)
/etc/passwd  /etc/shadow 用户登陆口令

2.简单描述Solaris,Linux,AIX,HP-UX

3.Solaris,HP-UX,Linux,AIX的备份命令分别是什么
solaris备份命令:

ufsdump 0uf (0是备份级别;u写进/etc/dumpdatas文件中;f后跟备份设备)
ufsrestore rf (恢复)
           ivf (交互模式)
4.用过什么安全工具
unix和linux下
nessus,ipfilter,checkpoint
5.接触过什么小型机

6.写出所知道的Sun的Open Boot PROM命令
power-on self-test 加电自检
printenv
printenv boot-device 查看某一参数
setenv auto-boot?flase 改某一参数
set-defaults 将所有printenv值设置成默认
set-default parnameter-name 只将一个变量值设置成默认值
probe 检测当前系统设备(有可能会把机器冻结,只有在开机时使用)
show-devs 列出系统里所有通用设备
devalias 查看所有系统通用设备的别名
nvalias设置某一个别名
7.Oracle的体系结构,备份命令

8.概念题,什么是SAN,什么是ZONE

9.如果系统无法启动,会是什么样的原因,你会怎样解决
先看提示,不行
进单用户进不去就STOP-A,测试下硬件
在不行cd引导,挂上有日志的分区,看
10.VLAN中的机器无法连通,会是什么原因,怎样解决
VLAN中的机器无法连通?汗一个,看看线,再在核心交换上
show run
还可能ip冲突
11.用户反映系统缓慢,什么原因,怎么解决

12.Solaris,HP-UN,Linux,AIX的文件系统各是什么?

1.下载Sun的补丁到哪


2.Solaris8的补丁文件名格式是什么

3.配置过CVS么?

4.怎样修改子网掩码使重启后还生效
vi  etc/netmasks 文件
5.下载source版软件后安装步骤第一步通常是什么?

6.修改二进制格式安装包的安装路径加什么参数

7.Solaris自带的C编译器是什么?在什么路径?

8.安装过Linux么?

9.自学能力怎样?大学时自学过什么课程

10.安装过GNU的软件么?

11.设置路由的文件是什么?
/etc/gateways
net gateway metric
dest. net 目标网段
router 下一跳路由器的地址
count 跳数
12.apache的配置文件在哪里?

13.你觉得系统管理的主要任务是什么?

14.系统管理员的知识是要更深还是更广?

问题1: Sun主机中OpenBoot PROM是指什么?有什么功能?

问题2:Solaris安装软件包的命令是什么?如何查看系统已经安装的软件包

问题3:用什么命令对solaris打补丁?

问题4:Solaris下管理用户和用户组的图形工具是什么?用命令行增加一个dba的组的命令是什么?

问题5:Solaris下要查找一个叫“appmonitor”的进程的命令是什么?

问题6:Solaris下查找一个叫“htsbak”的文件的命令是什么?

问题7:Solaris下查找剩余磁盘空间的命令是什么?

问题8:Solaris下kstar用户下一个目录“src”,另外一个dc用户需要只读该目录,应该如何设置权限,请给出命令。


问题9:请编写一段c代码,把a数组中的n个数和b数组中逆序的n个数一一对应相加,结果存在c数组中,并对c数组按照升序排序。
要求:
(1) 思路清晰,编码合理。
(2) 从文件中读入数组a和数组b的数据,打印出输入数据和输出数据。
(3) 时间45分钟。
(4) 使用VC编译。

solaris下oracle自启动

1. 设置自动启动服务:
在 /var/opt/oracle/ 下的 oratab 文件将这一行
ORACLE_SID:ORACLE_HOME:
修改为:
ORACLE_SID:ORACLE_HOME:Y
修改完后,将其拷贝到 /etc/ 路径下。
2.创建监听服务:
把 /etc/services文件最后加一行:
listener_name 1521/tcp


阅读(1846) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

小蝌蚪1232012-03-30 01:05:49

讨厌面试题!

桔色花花朵2012-03-28 22:41:43

恩,代码就是要清晰!