天道酬勤

Oracle and My Life

Archive for the ‘Operating System’ Category

AIX multipath for DS[345]K

one comment

Multipath options with DS3000/DS4000/DS5000:

DS Subsystem Support multipath driver

Default driver on AIX

AIX5.2 AIX5.3 AIX6.1
DS3000 native MPIO only MPIO
DS4000 RDAC, native MPIO, MPIO w/SDDPCM RDAC RDAC MPIO
DS5000 native MPIO, MPIO w/SDDPCM

MPIO

AIX MPIO is supported on AIX starting from AIX 5.2 TL10, AIX 5.3 TL6 and AIX 6.1 SP2 though various PTFs and fixes may be required (see interoperability matrix and AIX MPIO documentation below). It is supported with DS4000 firmware 6.60.xx.xx and higher on DS4800, DS4700, DS4200, DS4500 and DS4300. MPIO is the strategic driver for all current DS4000 platforms in AIX 6.1 and up – except for DS4400 which is RDAC only. RDAC is the default driver on all levels of AIX 5.2 and 5.3.

In AIX Version 6.1, the DS4K products are configured as Multipath I/O (MPIO) devices by default. A DS4K product using the FCPARRAY (RDAC) driver may be migrated to the MPIO driver by using the instructions found in the documents below, or all DS4K devices may be migrated by uninstalling the devices.fcp.disk.array.rte package and then running the cfgmgr command or rebooting.

Default driver on AIX6.1:

# oslevel -r
6100-03
# lsdev -Cc disk
hdisk0 Available 08-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 08-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 05-08-01     MPIO Other DS4K Array Disk
hdisk3 Available 05-08-01     MPIO Other DS4K Array Disk
# lspath
Enabled hdisk0 scsi0
Enabled hdisk1 scsi0
Enabled hdisk2 fscsi0
Enabled hdisk3 fscsi0
Enabled hdisk2 fscsi1
Enabled hdisk3 fscsi1
# mpio_get_config -Av
Frame id 0:
    Storage Subsystem worldwide name: 60ab80011f0e000004d6f113e
    Controller count: 2
    Partition count: 1
    Partition 0:
    Storage Subsystem Name = 'DS4800'
        hdisk      LUN #   Ownership          User Label
        hdisk2         0   B (preferred)      1
        hdisk3         1   A (preferred)      EBS

Default driver on AIX5.3:
BTW:当前主机连接一台DS4800存储

# oslevel -r
5300-10
# manage_disk_drivers  
1: DS4100: currently RDAC; supported: RDAC/fcparray, MPIO
2: DS4300: currently RDAC; supported: RDAC/fcparray, MPIO
3: DS4500: currently RDAC; supported: RDAC/fcparray, MPIO
4: DS4700/DS4200: currently RDAC; supported: RDAC/fcparray, MPIO
5: DS4800: currently RDAC; supported: RDAC/fcparray, MPIO

Change default drive to MPIO from RDAC:

# manage_disk_drivers -c 5
DS4800 currently RDAC/fcparray
Change to alternate driver? [Y/N] Y
DS4800 now managed by MPIO
 
It is necessary to perform a bosboot before rebooting the system in
order to incorporate this change into the boot image.
In order to change to the new driver, either a reboot or a full
unconfigure and reconfigure of all devices of the type changed
must be performed.
# bosboot -a
bosboot: Boot image is 40130 512 byte blocks.
# shutdown -Fr
 
# manage_disk_drivers
1: DS4100: currently RDAC; supported: RDAC/fcparray, MPIO
2: DS4300: currently RDAC; supported: RDAC/fcparray, MPIO
3: DS4500: currently RDAC; supported: RDAC/fcparray, MPIO
4: DS4700/DS4200: currently RDAC; supported: RDAC/fcparray, MPIO
5: DS4800: currently MPIO; supported: RDAC/fcparray, MPIO
# lsdev -Cc disk
hdisk0 Available 08-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 08-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 05-08-01     MPIO Other DS4K Array Disk
# lspath
Enabled hdisk0 scsi0
Enabled hdisk1 scsi0
Enabled hdisk2 fscsi0
Enabled hdisk2 fscsi1
#  mpio_get_config -Av
Frame id 0:
    Storage Subsystem worldwide name: 60ab80011f0e000004d6f113e
    Controller count: 2
    Partition count: 1
    Partition 0:
    Storage Subsystem Name = 'DS4800'
        hdisk      LUN #   Ownership          User Label
        hdisk2         0   A (preferred)      1

AIX 6.1 TL4的命令与之前的版本有所不同:

#manage_disk_drivers
    Usage :
    manage_disk_drivers [-l]
    manage_disk_drivers -d device -o driver_option
    manage_disk_drivers -h
    Meaning of the Flags:
    -l: Display the Devices, Present Drivers, and Driver Options
    -d: The Device to change the Driver
    -o: Selects the new Driver
    -h: should be help but is interpreted as an illegal option
#manage_disk_drivers -l 查看当前使用的是哪种多路径模式
Device  Present Driver Driver Options
DS4100  AIX_APPCM  AIX_APPCM,AIX_fcparray
DS4300  AIX_APPCM  AIX_APPCM,AIX_fcparray
DS4500  AIX_APPCM  AIX_APPCM,AIX_fcparray
DS4700  AIX_APPCM  AIX_APPCM,AIX_fcparray
DS4800  AIX_APPCM  AIX_APPCM,AIX_fcparray
DS5020  AIX_APPCM  AIX_APPCM
DS5100/DS5300  AIX_APPCM  AIX_APPCM AIX_APPCM
#manage_disk_drivers -d DS4800 -o AIX_fcparray
将DS4800由AIX_APPCM(MPIO)改成AIX_fcparray(RDAC)
#bosboot -a

-The End-

Written by ochef

May 25th, 2011 at 4:18 pm

Posted in IBM日记,Operating System

Tagged with

AIX的那些事儿

leave a comment

因为公司客户的关系,需要了解学习IBM产品基础知识:aix、ds storage、informix、websphere、tsm、db2。拜读过<<走入IBM小型机世界>>的作者 Orian写的一点感想及aix如何快速入门到精通的文章,结合自己的一点感受写下这篇博文,仅以此鼓励自己。

一、AIX系统主要管理事件

Devices management 设备管理 (安装/删除,配置等)

Logic volume management 存储管理 (主要是围绕逻辑卷的创建,删除,配置等)

File system management  文件系统管理(文件系统的安装/卸载,删除,备份与恢复,NFS等)

Memory management (主要是关于VMM,paging space的事)

CPC processor Dispatcher management (进程,作业,SRC)

TCP/IP network management  (系统的网络管理,各种稀奇古怪的interface有N多)

User management (用户管理)

DLPAR management(动态逻辑分区管理,这得要玩转HMC啊)

Cluster management(HACMP,HPC)

二、入门导向:二个基本点,一个中心

1.以理论为基础

我党再三强调要理论联系实际,可见基础知识是非常重要的。windows、unix、linux计算机系统其实都差不多。就像我们人一样,男地、女地,大人、小孩,除了外表和一些功能的强弱不同外,内部结构基本上没二样,重要的一点是:心中要有一个大概的系统结构图,它们不是孤立,内部都存在着一定的联系。

2.理论联系实际

想要玩转unix的话,那么命令行的操作是一定要熟悉的(虽然unix也有CDE,),命令多,命令的参数更多,一个命令你不敲上几十上百遍是很熟悉的。TNND,更要命的是么些参数有互斥性和组合性,千万不要死记硬背,要多练习和观察。

3.思考

记得国学大师季老的一句话:

路不空行,行必所思,思必所得。

任何时候任何事,思考都是最重要的。学得再多,事后不总结、不思考,到头来那点东西还是别人的,只不过就是在你身体里过了一遍没被消化掉更别说吸收了。

三、想精通,学编程

我正处在那门槛上,前辈们都说:不去编程是没办法精通的,你的程序编到那,你那一部分就精通了,想精通就照做吧。

四、备注:

1.遇到问题先搜索官方文档,再google、baidu啥的,无果再请教,过程很重要。不要一张口就问,真是问一遍不当回事,自己搞清楚了才算会。

2.学习资料的事

现象一:

大家还记得上中学的时候,一到周末放假,恨不得很把一桌子的书都带回家,满以为二天的时间在家能好好学习,结果是带回家了瞄都没瞄一眼然后又带回学校,到最后袋子都提坏了几个,人也瘦了几斤,想减肥,就这么简单。

现象二:

现在网上资源太多,要做到有的放矢,要有选择。就像我以前一样,不停的在网上下载资料,这样日复一日,哪怕有海量的硬盘也有放满的一天啊,最后苦于没有空间了,就删资料,结果删除的都还是没有解过压的。

我得到的教训,资料不在多,在于精,搞懂一个就是一个,一口气吃不成一个胖子,需要什么资料就找什么资料,及时消化,IBM机器附带的Document CD就够看的了。

IBM常用链接 下载

最后,请大家谨记:不知者无畏,千万不要在生产系统上进行你的libs。

-The End-

Written by ochef

July 23rd, 2009 at 12:49 pm

Posted in Operating System

Tagged with

Solaris与OpenSolaris的区别

leave a comment

一直对SolarisOpenSolaris的区别不是很了解,今天终于通过伟大的GOOGLE彻底搞明白了。

OpenSolarisSun的一个开源项目,代码更新很快,很多系统的新特性会优先在这个版本里面体现,比如DTraceZFS 等等,当技术成熟稳定之后会用到Solaris的后续发行版本里面。SolarisSun自己维护的一个版本,因为用了很多第三方的代码,有一些版权上面的关系,所以这个版本与OpenSolaris不太一样,据 sun自己宣传,SolarisSun拥有的代码已经全部开源到OpenSolaris上了,现在可以在sun的网站上免费下载DVD的镜像,而且SUN还提供了对Solaris的商业支持,但OpenSolaris没有任何支持。

OpenSolaris社区发布了一些基于OpenSolaris的操作系统,它们包括:

Solaris Express Community Edition 代号为Nevada,是SUNOpenSolaris开发者发布的二进制格式的操作系统,该系统包括由最新的OpenSolaris源代码和尚未公开的技术编译而成,尚未经过测试,没有任何技术支持。该系统每两个礼拜的礼拜五更新。

Solaris Express Developer Edition 该系统是经过测试的开发版本系统,供免费免费使用,可以在这里获得技术支持,该版本每三到四个月更新一次。

BeleniX 基于OpenSolaris源码的LiveCD

marTux 基于SPARC处理器的OpenSolaris发布。

NexentaOS 基于GNUOpenSolaris,该系统集成了OpenSolaris内核,和开源软件(OSS)应用程序。

Schillix x86x64EM64T发布的OpenSolaris LiveCD

-The End-

Written by ochef

May 16th, 2009 at 2:29 am

Posted in Operating System

Tagged with

Oracle Buys Sun

leave a comment

昨天4月20日,Oracle以74亿美刀收购了Sun。不多说,请看官方的消息:

Oracle

Sun

Written by ochef

April 21st, 2009 at 10:40 am

Posted in Database,Operating System

Tagged with ,

无觅相关文章插件,快速提升流量