Skip to main content

Mounting Raw Devices On RHEL with EMC Strorage



·       Step # 2Download the latest EMC Power Path Software and Install them on the nodes

       Path -->  http://powerlink.emc.com--> Products à Downloads ( based on the OS version)

     Install the Power Path Software (as given below )

[root@db01 EMCPowerPath]# tar xf EMCPower.LINUX.5.6.GA.b143.gz
[root@db01 EMCPowerPath]# ls -ltr
total 112240
-r--r--r-- 1 nobody nobody  9945245 Mar 25  2011 EMCPower.LINUX-5.6.0.00.00-143.
-r--r--r-- 1 nobody nobody 22392284 Mar 25  2011 EMCPower.LINUX-5.6.0.00.00-143.
-r--r--r-- 1 nobody nobody  7201040 Mar 25  2011 EMCPower.LINUX-5.6.0.00.00-143.
-r--r--r-- 1 nobody nobody 18216828 Mar 25  2011 EMCPower.LINUX-5.6.0.00.00-143.
-rw-r--r-- 1 root   root   57024083 May 15 15:07 EMCPower.LINUX.5.6.GA.b143.gz
[root@db01 EMCPowerPath]# rpm -ivh EMCPower.LINUX-5.6.0.00.00-143.RHEL5.x86_64
Preparing...                ########################################### [100%]
   1:EMCpower.LINUX         ########################################### [100%]
All trademarks used herein are the property of their respective owners.
NOTE:License registration is not required to manage the CLARiiON AX series array

·   Step # 2  Register the Power Path Software

[root@db01 EMCPowerPath]# emcpreg -install

===========   EMC PowerPath Registration ===========
Do you have a new registration key or keys to enter?[n] y
                  Enter the registration keys(s) for your product(s),
                  one per line, pressing Enter after each key.
                  After typing all keys, press Enter again.

Key (Enter if done): XXXX-VVVV-GGGG-CCCC-MMMM-RRRR
1 key(s) successfully added.
Key successfully installed.

Key (Enter if done):
1 key(s) successfully registered.
[root@db01 EMCPowerPath]# powermt check_registration

Key B2PW-VB43-RF3K-QF39-ME9S-RBT6
  Product: PowerPath
  Capabilities: All

·          Start the Power Path
[root@db01 EMCPowerPath]# /etc/init.d/PowerPath start
Starting PowerPath:  done

Step # 3    List the LUNS that are currently presented to this node

[root@db01 EMCPowerPath]# powermt display dev=all

# This should show all EMC Psuedo names instead of drive names #

Pseudo name=emcpowerr
Symmetrix ID=000192601485
Logical device ID=0358
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   4 qla2xxx                  sdam      FA  3hB   active  alive       0      0
   3 qla2xxx                  sdn       FA 14hB   active  alive       0      0

Pseudo name=emcpowerb
Symmetrix ID=000192601485
Logical device ID=0359
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   4 qla2xxx                  sdan      FA  3hB   active  alive       0      0
   3 qla2xxx                  sdo       FA 14hB   active  alive       0      0

Pseudo name=emcpowerq
Symmetrix ID=000192601485
Logical device ID=035A
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   4 qla2xxx                  sdao      FA  3hB   active  alive       0      0
   3 qla2xxx                  sdp       FA 14hB   active  alive       0      0

Pseudo name=emcpowerp
Symmetrix ID=000192601485
Logical device ID=0533
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   4 qla2xxx                  sdap      FA  3hB   active  alive       0      0
   3 qla2xxx                  sdq       FA 14hB   active  alive       0      0

Pseudo name=emcpowero
Symmetrix ID=000192601485
Logical device ID=053B
state=alive; policy=SymmOpt; priority=0; queued-IOs=0;
==============================================================================
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   4 qla2xxx                  sdaq      FA  3hB   active  alive       0      0
   3 qla2xxx                  sdr       FA 14hB   active  alive       0      0

·       Step # 4   If the node is showing the device names (e.g /dev/sdc )along with the Pseudo names then disable the native device’s and allow the pseudo name ONLY as given below.

[root@db01 ~]# /etc/lvm/lvm.conf

# By default we accept every block device:   à Disable
    #filter = [ "a/.*/" ]

    # Add this line so that the system see’s the drives with Pseudo name ONLY  #  à ADD
     filter = [ "a|/dev/emcpower.*|", "a|/dev/sda2$|", "r|.*|" ]

·      Step # 5   Check if the node is only listing the pseudo names for the LUNS attached

[root@db01 ~]# lvmdiskscan

  /dev/emcpowera  [       33.00 GB]
  /dev/emcpowerq  [      100.00 GB]
  /dev/sda2       [      136.02 GB] LVM physical volume
  /dev/emcpowerb  [       33.00 GB]
  /dev/emcpowerr  [      100.00 GB]
  /dev/emcpowerc  [       30.00 GB]
  /dev/emcpowers  [      100.00 GB]
  /dev/emcpowerd  [        3.00 GB]
  /dev/emcpowert  [      250.02 GB]
  /dev/emcpowere  [      100.00 GB]
  /dev/emcpoweru  [      250.02 GB]
  /dev/emcpowerf  [       30.00 GB]
  /dev/emcpowerv  [      250.02 GB]
  /dev/emcpowerg  [       33.00 GB]
  /dev/emcpowerw  [      250.02 GB]
  /dev/emcpowerh  [       33.00 GB]
  /dev/emcpowerx  [       30.00 GB] LVM physical volume
  /dev/emcpoweri  [       33.00 GB]
  /dev/emcpowery1 [       40.00 GB] LVM physical volume
  /dev/emcpowerj  [       33.00 GB]
  /dev/emcpowerk  [       33.00 GB]
  /dev/emcpowerl  [       33.00 GB]
  /dev/emcpowerm  [       33.00 GB]
  /dev/emcpowern  [       33.00 GB]
  /dev/emcpowero  [        3.00 GB]
  /dev/emcpowerp  [        3.00 GB]
  23 disks
  0 partitions
  1 LVM physical volume whole disk
  2 LVM physical volumes

·       Step # 6 Creating Physical Volume

   Ø  pvcreate /dev/emcpowerr

Syntax à PVCREATE /dev/ Pseudo name

·       Step # 7   Creating Volume Group

   Ø   vgcreate vg-raw3 /dev/emcpowerr

Syntax à VGCREATE <VGNAME> <PV PATH>

·       Step # 8 Creating LV’s with 100 Space

   Ø    lvcreate -l100%VG -n lv.raw3 vg-raw3

Syntax à lvcreate –l1--%VG –n <LV NAME> <VG NAME>

·       Step # 9   Converting  the RAW device to Raw Volume

Syntax  à raw <raw volume path> <complete LV Patch>

  Ø  raw  /dev/raw/raw3 /dev/vg-raw3/lv.raw3
  Ø  raw  /dev/raw/raw3 /dev/vg-raw3/lv.raw3
  Ø   raw  /dev/raw/raw4 /dev/vg-raw4/lv.raw4
  Ø   raw  /dev/raw/raw10 /dev/vg-raw10/lv.raw10
  Ø   raw  /dev/raw/raw100 /dev/vg-raw100/lv.raw100
  Ø   raw  /dev/raw/raw101 /dev/vg-raw101/lv.raw101
  Ø   raw  /dev/raw/raw102 /dev/vg-raw102/lv.raw102
  Ø   raw  /dev/raw/raw103 /dev/vg-raw103/lv.raw103
  Ø   raw  /dev/raw/raw104 /dev/vg-raw104/lv.raw104 
  Ø   raw  /dev/raw/raw105 /dev/vg-raw105/lv.raw105
  Ø   raw  /dev/raw/raw106 /dev/vg-raw106/lv.raw106
  Ø   raw  /dev/raw/raw107 /dev/vg-raw107/lv.raw107
  Ø   raw  /dev/raw/raw108 /dev/vg-raw108/lv.raw108
  Ø   raw  /dev/raw/raw109 /dev/vg-raw109/lv.raw109

·        Step # 10 Set  the permission’s using the “userid:group” and provide 755 permission to each raw volumes

[root@db02 raw]# ls –ltr

[root@db02 raw]# chown ora:dba /dev/raw/raw3
[root@db02 raw]# chown ora:dba /dev/raw/raw4
[root@db02 raw]# chown ora:dba /dev/raw/raw10
[root@db02 raw]# chown ora:dba /dev/raw/raw100
[root@db02 raw]# chown ora:dba /dev/raw/raw101
[root@db02 raw]# chown ora:dba /dev/raw/raw102
[root@db02 raw]# chown ora:dba /dev/raw/raw103
[root@db02 raw]# chown ora:dba /dev/raw/raw104
[root@db02 raw]# chown ora:dba /dev/raw/raw105
[root@db02 raw]# chown ora:dba /dev/raw/raw106
[root@db02 raw]# chown ora:dba /dev/raw/raw107
[root@db02 raw]# chown ora:dba /dev/raw/raw108
[root@db02 raw]# chown ora:dba /dev/raw/raw109

[root@db02 raw]# chmod 755 /dev/raw/raw3
[root@db02 raw]# chmod 755 /dev/raw/raw4
[root@db02 raw]# chmod 755 /dev/raw/raw5
 [root@db02 raw]# chmod 755 /dev/raw/raw10
[root@db02 raw]# chmod 755 /dev/raw/raw100
[root@db02 raw]# chmod 755 /dev/raw/raw101
[root@db02 raw]# chmod 755 /dev/raw/raw102
[root@db02 raw]# chmod 755 /dev/raw/raw103
[root@db02 raw]# chmod 755 /dev/raw/raw104
[root@db02 raw]# chmod 755 /dev/raw/raw105
[root@db02 raw]# chmod 755 /dev/raw/raw106
[root@db02 raw]# chmod 755 /dev/raw/raw107
[root@db02 raw]# chmod 755 /dev/raw/raw108
[root@db02 raw]# chmod 755 /dev/raw/raw109

total 0
crwxr-xr-x 1 ora dba 162,   3 May 17 01:29 raw3
crwxr-xr-x 1 ora dba 162,   4 May 17 01:32 raw4
crwxr-xr-x 1 ora dba 162,  10 May 17 01:33 raw10
crwxr-xr-x 1 ora dba 162, 100 May 17 01:38 raw100
crwxr-xr-x 1 ora dba 162, 101 May 17 01:39 raw101
crwxr-xr-x 1 ora dba 162, 102 May 17 01:40 raw102
crwxr-xr-x 1 ora dba 162, 103 May 17 01:41 raw103
crwxr-xr-x 1 ora dba 162, 104 May 17 01:42 raw104
crwxr-xr-x 1 ora dba 162, 105 May 17 01:43 raw105
crwxr-xr-x 1 ora dba 162, 106 May 17 01:44 raw106
crwxr-xr-x 1 ora dba 162, 107 May 17 01:44 raw107
crwxr-xr-x 1 ora dba 162, 108 May 17 01:47 raw108
crwxr-xr-x 1 ora dba 162, 109 May 17 01:47 raw109

Thanks & Regards
Avinash Pillai
URL : http://avinashpillai.blogspot.com
Email: avinashp25[AT]gmail[DOT]com




Comments

Popular posts from this blog

Seven Personal Qualities Found In A Good Leader

Whether in fact a person is born a leader or develops skills and abilities to become a leader is open for debate. There are some clear characteristics that are found in good leaders. These qualities can be developed or may be naturally part of their personality. Let us explore them further. Seven Personal Qualities Found In A Good Leader: 1. A good leader has an exemplary character. It is of utmost importance that a leader is trustworthy to lead others. A leader needs to be trusted and be known to live their life with honestly and integrity. A good leader “walks the talk” and in doing so earns the right to have responsibility for others. True authority is born from respect for the good character and trustworthiness of the person who leads.   2.A good leader is enthusiastic about their work or cause and also about their role as leader. People will respond more openly to a person of passion and dedication. Leaders need to be able to be a source of inspiration, and b...

Defining AI Ethics

                           Defining AI Ethics Welcome to Defining AI Ethics. Humans rely on culturally agreed-upon morals and standards of action — or ethics — to guide their decision-making, especially for decisions that impact others. As AI is increasingly used to automate and augment decision-making, it is critical that AI is built with ethics at the core so its outcomes align with human ethics and expectations. AI ethics is a multidisciplinary field that investigates how to maximize AI's beneficial impacts while reducing risks and adverse impacts. It explores issues like data responsibility and privacy, inclusion, moral agency, value alignment, accountability, and technology misuse …to understand how to build and use AI in ways that align with human ethics and expectations.  There are five pillars for AI ethics: explainability, fairness,...

Command to Find Version of Linux OS

Command to Find Version of Linux OS # cat /etc/redhat-release Regards Avinash Pillai URL : http://avinashpillai.blogspot.com Email: avinashp[AT]aztecsoft[DOT]com, avinashp25[AT]gmail[DOT]com