System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Migrate DM-Multipath to EMC-Power path

bubunis
Occasional Advisor

Migrate DM-Multipath to EMC-Power path

Steps by Step How To Migrate DM-Multipath to EMC-Power path.

 

 

Scenario:

1. Navisphare agent installed

2. DM-Multipath installed & Configured.

3. File system (/usr/openv) mounted and net backup server installed on the file system.

4. VERITAS Netback-up Server Running On this server.

 

Need to migrate from DM-Multipath to EMC-Power path (used for EMC Clarion Storage)

 

Power path and multipath are not compatible, So to install EMC-Power path, 1st we need to perform below tasks.

 

 

  1. Blacklist the LUN/Disks in multipath or move /etc multipath.conf  to /etc/multipath.conf .old

Ex:

                  To blacklist, edit /etc/multipath and uncomment below lines,

                 Before change:

 

                 # Blacklist all devices by default. Remove this to enable multipathing

                 # on the default devices.

                 #blacklist {

                 #            devnode "*"

                 #}

 

                 After change:

 

                 # Blacklist all devices by default. Remove this to enable multipathing

                 # on the default devices.

                 blacklist {

                             devnode "*"

                 }

 

 

Stop the multipath service.

 

#service multipathd stop

 

#chkconfig multipathd off

#/etc/init.d/multipathd status

        multipathd is stopped

 

Stop the naviagent.

 

#/etc/init.d/naviagent stop

#chkcinfig naviagent off

 

 

 

 

 

 

 

Take file system and volume group offline.

 

Here first stop Net-Backup server which is running on file system /usr/openv

 

After stopping Net Backup server,

#umount /usr/openv

 

#vgchange –a –n vg01

 

Install EMC Powerpath on Linux

  #rpm -ivh EMCpower.LINUX-5.3.1.00.00-111.rhel5.x86_64.rpm  

  

   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.

 

 

Register EMC Powerpath

# 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-xxxx-xxxx-xxxx-xxxx**

1 key(s) successfully added.

Key successfully installed.

 

Key (Enter if done):

Key  is invalid, ignored.

Try again or press Enter if done.

1 key(s) successfully registered.

 

Verify EMC Powerpath Registration

 

# powermt check_registration

 

Key **xxxx-xxxx-xxxx-xxxx-xxxx**

  Product: PowerPath

  Capabilities: All

Start powerpath daemon

 

#/etc/init.d/powerpath start

  Starting PowerPath:  done

 

Start Naviagent:

 

#/etc/init.d/naviagent start

#chkconfig naviagent on

 

Verify Multiple Paths

 

# powermt display dev=all

Pseudo name=emcpowera

CLARiiON ID=APM00104100259 [CBDSLAPPNBUP01]

Logical device ID=6006016034602A00231F5F91BF8FE111 [LUN 71]

state=alive; policy=CLAROpt; priority=0; queued-IOs=0

Owner: default=SP A, current=SP A       Array failover mode: 1

==============================================================================

---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---

###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors

==============================================================================

   4 qla2xxx                   sda       SP A0     active  alive      0      0

   4 qla2xxx                   sdb       SP B0     active  alive      0      0

   5 qla2xxx                   sdc       SP A0     active  alive      0      0

   5 qla2xxx                   sdd       SP B0     active  alive      0      0

   6 qla2xxx                   sde       SP A1     active  alive      0      0

   6 qla2xxx                   sdf       SP B1     active  alive      0      0

   7 qla2xxx                   sdg       SP A1     active  alive      0      0

   7 qla2xxx                   sdh       SP B1     active  alive      0      0

 

To Check:

 

# fdisk -l /dev/emcpowera

 

Disk /dev/emcpowera: 536.8 GB, 536870912000 bytes

255 heads, 63 sectors/track, 65270 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

         Device Boot      Start         End      Blocks   Id  System

/dev/emcpowera1               1       65270   524281243+  83  Linux

 

 

 

Edit /etc/fstab file

 

Comment the line of the current file system which configured with multipath.

#/dev/mpath01/mpath-lvol-01  /usr/openv ext3    defaults        0 0 (For this Scenario)

 

 

Reboot the server

 

#init 6

 

 

 

 

 

 

After reboot

 

Again verify Multi paths…

 

# powermt display dev=all

Pseudo name=emcpowera

CLARiiON ID=APM00104100259 [CBDSLAPPNBUP01]

Logical device ID=6006016034602A00231F5F91BF8FE111 [LUN 71]

state=alive; policy=CLAROpt; priority=0; queued-IOs=0

Owner: default=SP A, current=SP A       Array failover mode: 1

==============================================================================

---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---

###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors

==============================================================================

   4 qla2xxx                   sda       SP A0     active  alive      0      0

   4 qla2xxx                   sdb       SP B0     active  alive      0      0

   5 qla2xxx                   sdc       SP A0     active  alive      0      0

   5 qla2xxx                   sdd       SP B0     active  alive      0      0

   6 qla2xxx                   sde       SP A1     active  alive      0      0

   6 qla2xxx                   sdf       SP B1     active  alive      0      0

   7 qla2xxx                   sdg       SP A1     active  alive      0      0

   7 qla2xxx                   sdh       SP B1     active  alive      0      0

 

 

Take file system and volume group online.

 

#vgchange –a –y vg01

 

 

 

#vgs

VG   #PV #LV #SN Attr   VSize   VFree

  vg00   1   8   0 wz--n- 104.59G   77.59G

  vg01   1   1   0 wz--n- 499.99G 1016.00M

 

#lvs

 

  LV        VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert

  lvol1     vg00 -wi-ao   1.00G

  lvol10    vg00 -wi-ao   4.00G

  lvol11    vg00 -wi-ao   2.00G

  lvol4     vg00 -wi-ao   2.00G

  lvol5     vg00 -wi-ao   4.00G

  lvol6     vg00 -wi-ao   4.00G

  lvol7     vg00 -wi-ao   2.00G

  lvol_swap vg00 -wi-ao   8.00G

  lvol1     vg01 -wi-ao 499.00G

 

#mount /dev/emcpowera  /usr/openv

 

#df -HT /usr/openv

 

Filesystem    Type     Size   Used  Avail Use% Mounted on

/dev/mapper/vg01-lvol1

              ext3     528G   4.3G   497G   1% /usr/openv

 

Edit /etc/fstab

Insert the line

“/dev/emcpowera  /usr/openv ext3 defaults,_netdev  0 0”(For This Scenario)

 

To Check /etc/fstab entry

 

#mount –av

 

Run fsck to check consistency,

#e2fsck /dev/vg01/lvol01

 

Start Net Backup Server & Check

 

#ps -ef | grep -i netbackup |grep -v grep

root      7120     1  0 15:49 ?        00:00:00 /usr/openv/netbackup/bin/vnetd -standalone

root      7126     1  0 15:49 ?        00:00:00 /usr/openv/netbackup/bin/bpcd -standalone

root      7332     1  0 15:50 ?        00:00:00 /usr/openv/netbackup/bin/bpcompatd

root      7343     1  0 15:50 ?        00:00:00 /usr/openv/netbackup/bin/nbrmms

root      7383     1  0 15:50 ?        00:00:00 /usr/openv/netbackup/bin/nbsl

root      7434     1  0 15:50 ?        00:00:00 /usr/openv/netbackup/bin/nbsvcmon