免费注册 查看新帖 |

Chinaunix

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

redhat es5中安装使用netapp simulator [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-28 22:33 |只看该作者 |倒序浏览

redhat es5中安装使用netapp simulator
1、Linux中安装netapp-simulator
netapp-simulator的安装过程并不复杂,可以直接按照提示一步步进行安装。
安装完成后,执行以下命令
Password:
netapp01> Wed Mar  1 00:08:51 IST [console_login_mgr:info]: root logged in from console
//*This will create an aggregate of 8 GB comprising of 8 disks each of 1 GB.
It will take some while(around 15 mins) to initialize the disks. *//
netapp01> aggr create aggr1 -t raid4 8
Creation of an aggregate with 8 disks has been initiated.  The disks need
to be zeroed before addition to the aggregate. The process has been initiated
and you will be notified via the system log as disks are added.
//*Below you can view aggregate is getting initialized.
You can take a coffee break here !!!*//
netapp01> aggr status aggr1
           Aggr State      Status            Options
          aggr1 creating   raid4, aggr       snapshot_autodelete=off,
                           initializing      lost_write_protect=off
                Volumes:
                Plex /aggr1/plex0: offline, empty, active
//*Once the aggregate is initialized following would be the status.*//
netapp01> aggr status aggr1
           Aggr State      Status            Options
          aggr1 online     raid4, aggr
                Volumes:
                Plex /aggr1/plex0: online, normal, active
                    RAID group /aggr1/plex0/rg0: normal
//*You can disable snaps creatation to maximize the performance.*//
netapp01> aggr options aggr1 nosnap on
netapp01> aggr status aggr1

           Aggr State      Status            Options
          aggr1 online     raid4, aggr       nosnap=on
                Volumes:
                Plex /aggr1/plex0: online, normal, active
                    RAID group /aggr1/plex0/rg0: normal
//*Now you create the volume(vol1) of 2GB. This can dynamically extended as per your requirement.
2GB would be sufficient for creating the seed database.*//
netapp01> vol create vol1 aggr1 2g
Creation of volume 'vol1' with size 2g on containing aggregate
'aggr1' has completed.
//*Status of the volume can be checked with following command.*//
netapp01> vol status vol1
         Volume State      Status            Options
           vol1 online     raid4, flex       create_ucode=on,
                                             convert_ucode=on
                Containing aggregate: 'aggr1'

netapp01> lun setup

        This setup will take you through the steps needed to create LUNs
        and to make them accessible by initiators. You can type ^C (Control-C)
        at any time to abort the setup and no unconfirmed changes will be made
        to the system.
Do you want to create a LUN? [y]: y
Multiprotocol type of LUN (image/solaris/windows/hpux/aix/linux/netware/vmware)
        [image]: linux
        A LUN path must be absolute. A LUN can only reside in a volume or
        qtree root. For example, to create a LUN with name "lun0" in the
        qtree root /vol/vol1/q0, specify the path as "/vol/vol1/q0/lun0".
Enter LUN path: /vol/vol1/lun0
        A LUN can be created with or without space reservations being enabled.
        Space reservation guarantees that data writes to that LUN will never
        fail.
Do you want the LUN to be space reserved? [y]: y
        Size for a LUN is specified in bytes. You can use single-character
        multiplier suffixes: b(sectors), k(KB), m(MB), g(GB) or t(TB).
Enter LUN size: 2g
        You can add a comment string to describe the contents of the LUN.
        Please type a string (without quotes), or hit ENTER if you don't
        want to supply a comment.
Enter comment string: oradata01
        The LUN will be accessible to an initiator group. You can use an
        existing group name, or supply a new name to create a new initiator
        group. Enter '?' to see existing initiator group names.
Name of initiator group []: ora
Type of initiator group ora (FCP/iSCSI) [iSCSI]: iSCSI
        An iSCSI initiator group is a collection of initiator node names.Each
        node name can begin with either 'eui.' or 'iqn.' and should be in the
        following formats: eui.{EUI-64 address} or iqn.yyyy-mm.{reversed domain
        name}:{optional string composed of alphanumeric characters, '-', '.'
        and ':'}
        Eg: iqn.2001-04.com.acme:storage.tape.sys1.xyz or eui.02004567A425678D
        You can separate node names by commas. Enter '?' to display a list of
        connected initiators. Hit ENTER when you are done adding node names to
        this group.
Enter comma separated nodenames: iqn.1987-05.com.cisco:calvin
Enter comma separated nodenames: iqn.1987-05.com.cisco:hobbes
Enter comma separated nodenames:
The initiator group has an associated OS type. The following are
currently supported: solaris, windows, hpux, aix, linux, netware, vmware
or default.
OS type of initiator group "ora" [linux]:
        The LUN will be accessible to all the initiators in the
        initiator group. Enter '?' to display LUNs already in use
        by one or more initiators in group "ora".
LUN ID at which initiator group "ora" sees "/vol/vol1/lun0" [0]:
LUN Path                          : /vol/vol1/lun0
OS Type                           : linux
Size                              : 2g (2097152000)
Comment                           : oradata01
Initiator Group                   : ora
Initiator Group Type              : iSCSI
Initiator Group Members           : iqn.1987-05.com.cisco:calvin
                                  : iqn.1987-05.com.cisco:hobbes
Mapped to LUN-ID                  : 0
Do you want to accept this configuration? [y]: y
Do you want to create another LUN? [n]: n
//*Check the status of the iscsi service on the NetApp Filer.*//
netapp01> iscsi status
iSCSI service is not running
//*Start the service on the NetApp Filer.*//
netapp01> iscsi start
Wed Mar  1 23:13:42 IST [iscsi.adapter.online:notice]: ISCSI: iswta, Adapter brought online.
iSCSI service started
Wed Mar  1 23:13:42 IST [iscsi.service.startup:info]: iSCSI service startup
//*Recheck the status of the iscsi service.*//
netapp01> iscsi status
iSCSI service is running
//*Check the status of the LUN on the NetApp filer.*//
netapp01> lun show
        /vol/vol1/lun0               1.6g (1712324608)    (r/w, online, mapped)
2、在客户端连接iscsi
在redhat es5版本中连接iscsi与之前版本有较大差异:
# rpm -ivh iscsi-initiator-utils-6.2.0.742-0.5.el5.rpm
(RHEL5的光盘(1/5)中有这个文件)
# chkconfig iscsid start
# /etc/init.d/iscsid start
# iscsiadm -m discovery -t sendtargets -p 192.168.122.1:3260
172.16.122.1:3260,1 iqn.2001-04.com.example:storage.disk2.sys1.xyz
(iqn.2001..........这部份应该和iscsi服务器中ietd.conf中的标记一样)
# iscsiadm -m node -T iqn.2001-04.com.example:storage.disk2.sys1.xyz -p 172.16.122.1:3260 -l
(以上两个iscsiadm的操作只在第一次连接iscsi服务器时要执行,以后每当iscsid启动都会自动连接)
# fdisk -l
(应该可以看到多出来一个/dev/sdx的分区)
明天要弄明白的是:如果两台机器同时连上了之后,oracle rac是如何安装的呢?


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43331/showart_1095238.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP