免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4464 | 回复: 15
打印 上一主题 下一主题

[新手入门] AIX真J8烂,一大堆命令不支持,麻烦死了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-28 19:57 |只看该作者 |倒序浏览
原来的帖子锁了,就是这个
http://bbs.chinaunix.net/thread-1637257-1-1.html
摆渡 ksh for 搜出来的,看了不舒服,挖出来拍两砖

我所见,这个帖,回帖的 风气/人品/技术 真差!
你特么会改个默认脚本解释器有啥了不起的,贴一堆的J8图显摆,就是不说怎么回事,故弄玄虚;
剩下就是一堆跟着讽刺挖苦的,别人是有困难才来的,你们一帮敝帚自珍的大爷作风
那几个出seq主意的同学,态度还是值得表扬和肯定的,但是就没考虑过性能问题么 5个可以这样搞,for 后面 10万个能行么?

回到纠纷的主体,AIX 比 Linux 难用一万倍!
别拿你们管理员怎么牛B可以优化设置说事儿!你们干得那点活搁 Linux 那就一失业的份。
用户只关心体验如何,别找什么借口。

论坛徽章:
0
2 [报告]
发表于 2012-11-29 09:00 |只看该作者
个人觉得这只是关于ksh和bash开发,使用风格和习惯不同所造成的,并不是操作系统本身的问题。AIX上支持绝大多数的shell, 只是由于默认的是KSH, 你可以通过下载你熟悉的shell包,通过修改默认shell配置来使用你熟悉的shell。其实不必牵涉到其他东西。
每个人总有很多不懂得东西,碰到问题学习就是了。共勉

论坛徽章:
12
CU大牛徽章
日期:2013-09-18 15:20:4815-16赛季CBA联赛之同曦
日期:2016-02-01 20:28:25IT运维版块每日发帖之星
日期:2015-11-10 06:20:00操作系统版块每日发帖之星
日期:2015-10-28 06:20:002015亚冠之塔什干棉农
日期:2015-06-04 11:41:56丑牛
日期:2014-05-10 16:11:33技术图书徽章
日期:2013-09-23 13:25:58CU大牛徽章
日期:2013-09-18 15:21:17CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:20:58数据库技术版块每日发帖之星
日期:2016-02-08 06:20:00
3 [报告]
发表于 2012-11-29 10:41 |只看该作者
lenovov 发表于 2012-11-28 19:57
原来的帖子锁了,就是这个
你特么会改个默认脚本解释器有啥了不起的,贴一堆的J8图显摆,就是不说怎么回事,故弄玄虚

看了那个帖子,说的应该是我吧。09年的事情,还真是怀念~~~
那个时候我记得Linux认个新磁盘,比如SAN LUN都要重启,不知道现在是否有长进了......

论坛徽章:
0
4 [报告]
发表于 2012-12-03 14:01 |只看该作者
我了个去诶,两个楼主还真像嘿
作为一名菜鸟~我表示见到二位楼主的神贴以及贴内回复,我现在更有信心学好AIX了~

论坛徽章:
0
5 [报告]
发表于 2012-12-03 21:47 |只看该作者
AIX是IBM的操作系统,是自成一家的unix,不像linux是开放的,当然会有很多区别。说AIX很烂,只能说明你还对aix还不熟悉。

论坛徽章:
7
双子座
日期:2013-09-09 15:55:31CU大牛徽章
日期:2013-09-18 15:22:06CU大牛徽章
日期:2013-09-18 15:22:20CU大牛徽章
日期:2013-09-18 15:22:26CU大牛徽章
日期:2013-09-18 15:22:31CU大牛徽章
日期:2013-09-18 15:22:37CU大牛徽章
日期:2013-09-18 15:22:46
6 [报告]
发表于 2012-12-04 11:37 |只看该作者
本帖最后由 milujite 于 2012-12-04 11:38 编辑
mike79 发表于 2012-11-29 10:41
看了那个帖子,说的应该是我吧。09年的事情,还真是怀念~~~
那个时候我记得Linux认个新磁盘,比如SAN LU ...


认盘要重启可以说业余么,不过确实麻烦倒是真的~~
AIX什么都好,比Linux/SOLARIS都要简单,就KSH真他妈蛋疼,换个BASH这样功能强点shell会死啊。
  1. Issue
  2.         * How to remove or add scsi devices online?
  3.         * Added Three Additional SCSI Devices to System - OS Doesn't Recognize

  4. Environment
  5.         * Red Hat Enterprise Linux 5 update 4

  6. Resolution1. Add new SCSI disk on the server.
  7. 2. Run the command below as root:
  8. # echo "scsi add-single-device x y z u" > /proc/scsi/scsi

  9. x : The HOST of SCSI controller which controls the disk ("N" of scsiN)
  10. y : SCSI Channel of disk (the value is 0 when it's a single channel; If there are multi-channels, the value is determined by which channel the disk belongs to)
  11. z : SCSI ID of the disk (the value can be determined by which socket the disk pludged in)
  12. u : LUN ID of the disk (the value is 0 by default)

  13. If the values of "x", "y", "z" are not right, the system can not add the disk successfully.
  14. Check the file /proc/scsi/scsi and determine whether the disk can be added successfully. If added successfully, the content of file /proc/scsi/scsi may contain the information of the new disk. The file /proc/scsi/scsi contains the information of every device which system can recognize. The information includes vendor, model type, media type and so on.

  15. For example, I add the third disk in my server, and run the command below:
  16. # echo "scsi add-single-device 0 0 2 0" > /proc/scsi/scsi

  17. Then check the file /proc/partition, the new disk is recognized. And you can make partitions, format, and use it normally.

  18. If you want remove a disk online, take the steps below:
  19. 1. Run the command below:
  20. # echo "scsi remove-single-device x y z u" > /proc/scsi/scsi
  21. The meanings of "x", "y", "z" and "u" are the same as mentioned above.

  22. 2. Remove the disk physically.

  23. For example, I have a SCSI disk and a SCSI CD-ROM which are both on the motherboard. After booting my computer, the contents of file /proc/scsi/scsi are as follows by default:
  24. # cat /proc/scsi/scsi
  25. Attached devices:Host: scsi2 Channel: 00 Id: 00 Lun: 00  Vendor: ATA      Model: Hitachi HTS54168 Rev: SB2O  Type:   Direct-Access                    ANSI  SCSI revision: 05Host: scsi0 Channel: 00 Id: 00 Lun: 00  Vendor: HL-DT-ST Model: CDRW/DVD GCCT10N Rev: A100  Type:   CD-ROM                           ANSI  SCSI revision: 05

  26. Then I try to remove SCSI CD-ROM:
  27. # echo "scsi remove-single-device 0 0 0 0" > /proc/scsi/scsi
  28. Check the file /proc/scsi/scsi again, notice only SCSI disk remained.

  29. Then add the SCSI CD-ROM back again:
  30. # echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi

  31. Then I try to remove the only SCSI disk of my computer, as expectation, the system is kernel panic.
  32. # echo "scsi remove-single-device 2 0 0 0" > /proc/scsi/scsi

  33. After rebooting, everything is all right.
复制代码

论坛徽章:
12
CU大牛徽章
日期:2013-09-18 15:20:4815-16赛季CBA联赛之同曦
日期:2016-02-01 20:28:25IT运维版块每日发帖之星
日期:2015-11-10 06:20:00操作系统版块每日发帖之星
日期:2015-10-28 06:20:002015亚冠之塔什干棉农
日期:2015-06-04 11:41:56丑牛
日期:2014-05-10 16:11:33技术图书徽章
日期:2013-09-23 13:25:58CU大牛徽章
日期:2013-09-18 15:21:17CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:20:58数据库技术版块每日发帖之星
日期:2016-02-08 06:20:00
7 [报告]
发表于 2012-12-04 11:55 |只看该作者
milujite 发表于 2012-12-04 11:37
认盘要重启可以说业余么,不过确实麻烦倒是真的~~
AIX什么都好,比Linux/SOLARIS都要简单,就KSH真他 ...

SA在AIX上装个bash包会死啊?

论坛徽章:
7
双子座
日期:2013-09-09 15:55:31CU大牛徽章
日期:2013-09-18 15:22:06CU大牛徽章
日期:2013-09-18 15:22:20CU大牛徽章
日期:2013-09-18 15:22:26CU大牛徽章
日期:2013-09-18 15:22:31CU大牛徽章
日期:2013-09-18 15:22:37CU大牛徽章
日期:2013-09-18 15:22:46
8 [报告]
发表于 2012-12-04 12:02 |只看该作者
mike79 发表于 2012-12-04 11:55
SA在AIX上装个bash包会死啊?

论坛徽章:
0
9 [报告]
发表于 2012-12-07 09:42 |只看该作者
我觉得KSH很好呀,不能这么说AIX。。。

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-02-18 06:20:00
10 [报告]
发表于 2012-12-14 12:24 |只看该作者
Aix 比 Linux 难用?

楼主说的是哪款 Linux 啊……
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP