This discussion is archived
7 Replies Latest reply: Feb 22, 2010 2:36 AM by 661723 RSS

iscsi or SAN NFS+ASM

661723 Explorer
Currently Being Moderated
hi

my questions look stupid.but its a vary simple question.
Do i need any iscsi or SAN to install clusterware 11gR2 in OEL 5.4 x86_64?

regards
  • 1. Re: iscsi or SAN
    587651 Explorer
    Currently Being Moderated
    not necessarily, to install oracle clusterware (grid infratstructure) you need shared storage for ocr and voting disks. The shared storage can be provided by using one of the following or their combination
    1. nfs (supported NAS) mount points
    2. ASM (can use both iscsi/san luns)
    3. supported cluster file system (such as ocfs2 or gfs)
    raw or block devices are not supported any more for oracle 11g r2 grid infrastructure and rac for new installations but can be used if you are upgrading from a previous release.
  • 2. Re: iscsi or SAN
    661723 Explorer
    Currently Being Moderated
    hi

    thanx for the reply.

    GFS needs a lock manager.(more specifically External Lock manager )
    so to configure it,do we need three nodes?

    NFS OR ASM looks considerably fine.how it could be combined?

    regards
  • 3. Re: iscsi or SAN
    587651 Explorer
    Currently Being Moderated
    I would recommend to use asm and candidate disks for asm can be both nfs mount points, san/iscsi luns. What infrastructure you are planning to put in for this
  • 4. Re: iscsi or SAN
    661723 Explorer
    Currently Being Moderated
    [root@rac-1 ~]# mount /dev/sdb9 /ASM
    mount: unknown filesystem type 'oracleasm'
    [root@rac-1 ~]# mount -t oracleasm /dev/sdb9 /ASM
    mount: unknown filesystem type 'oracleasm'
    [root@rac-1 ~]# 
    although the asmlib is loaded.so how it could be exported via NFS then?
    Gagan Arora wrote:
    What infrastructure you are planning to put in for this
    basically i dnt want SAN and iscsi.For iscsi i need to have open filer or net filer again to install.As it is just a home practice so failover/ risk caution is neglected.i just want to avoid iscsi and SAN.i have two machines
    both have c2D proc. 1GB RAM, 2GB RAM respectively for x and y.and normal sata hdd. and normal Giga Bt eth with 2 NIcs each they are put in private and public network.

    So For shared dev and ocr probably ASM is enough with external redundancy?

    regards
  • 5. Re: iscsi or SAN
    587651 Explorer
    Currently Being Moderated
    Try as root on
    node1
    # /etc/init.d/oracleasm createdisk DATA <node2 nfs share>
    #/etc/init.d/oracleasm createdisk FRA <node1 nfs share>

    on node2
    #/etc/init.d/oracleasm scandisks
    #/etc/init.d/oracleasm listdisks
    DATA
    FRA


    if you dont want to use nfs you can create iscsi targets on each node and create iscsci initiator on each node

    Edited by: Gagan Arora on Feb 22, 2010 6:17 PM

    Edited by: Gagan Arora on Feb 22, 2010 6:22 PM
  • 6. Re: iscsi or SAN
    721050 Explorer
    Currently Being Moderated
    1. Create the file

    dd if=/dev/zero bs=1024k count=1000 of=/disk1



    2. Setup loopback driver

    losetup /dev/loop1 /disk1



    3. Label device

    oracleasm createdisk LOOP1 /dev/loop1



    4. Use it with ASM
  • 7. Re: iscsi or SAN
    661723 Explorer
    Currently Being Moderated
    Gagan Arora wrote:
    Try as root on
    node1
    # /etc/init.d/oracleasm createdisk DATA <node2 nfs share>
    #/etc/init.d/oracleasm createdisk FRA <node1 nfs share>

    on node2
    #/etc/init.d/oracleasm scandisks
    #/etc/init.d/oracleasm listdisks
    DATA
    FRA


    if you dont want to use nfs you can create iscsi targets on each node and create iscsci initiator on each node
    i dnt want iscsi.
    >



    DID you exactly min this?
    [root@rac-1 ~]# mount /dev/sdb10 /u02
    [root@rac-1 ~]# vi /etc/exports
    [root@rac-1 ~]# exports -a
    bash: exports: command not found
    [root@rac-1 ~]# export -a
    [root@rac-1 ~]# srvice nfs restart
    bash: srvice: command not found
    [root@rac-1 ~]# service nfs restart
    Shutting down NFS mountd:                                  [  OK  ]
    Shutting down NFS daemon:                                  [  OK  ]
    Shutting down NFS quotas:                                  [  OK  ]
    Shutting down NFS services:                                [  OK  ]
    Starting NFS services:                                     [  OK  ]
    Starting NFS quotas:                                       [  OK  ]
    Starting NFS daemon:                                       [  OK  ]
    Starting NFS mountd:                                       [  OK  ]
    [root@rac-1 ~]# mount -t nfs rac-1:/u02 /mnt/rac-1/nfs1
    [root@rac-1 ~]# oracleasm listdisks
    VOLUME1
    VOLUME2
    VOLUME3
    VOLUME4
    [root@rac-1 ~]# oracleasm createdisk VOLUME5 /mnt/rac-1/nfs1
    File "/mnt/rac-1/nfs1" is not a block device
    [root@rac-1 ~]# oracleasm createdisk VOLUME5 rac-1:/u02
    Unable to query file "rac-1:/u02": No such file or directory
    [root@rac-1 ~]# 
    i got only:

    [root@rac-1 ~]# oracleasm createdisk VOLUME5 /mnt/rac-1/nfs1
    File "/mnt/rac-1/nfs1" is not a block device

    Edited by: you on Feb 22, 2010 5:35 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points