Data Storage - Veritas and PowerPath pseudo devices

This is Interesting: Free IT Magazines  
Home > Archive > Data Storage > December 2006 > Veritas and PowerPath pseudo devices





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Veritas and PowerPath pseudo devices
c-eriks@algonet.se

2006-12-14, 1:16 pm

Hi!

How do I make Veritas Volume Manager list PowerPath pseudo devices
instead of native devices with the command "vxdisk list"? Now "vxdisk
list" shows:

root@S0292109# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c4t0d0s2 sliced rootmirr rootdg online
c4t1d0s2 sliced rootdisk rootdg online
c5t0d0s2 sliced - - online
c5t0d1s2 sliced - - online
c5t1d0s2 sliced - - online
c5t1d1s2 sliced - - online
c6t0d0s2 sliced - - online
c6t0d1s2 sliced - - online
c6t1d0s2 sliced - - online
c6t1d1s2 sliced - - online

Below is what "powermt display dev=all" shows:

root@S0292109# powermt display dev=all

Pseudo name=emcpower0a

CLARiiON ID=CK200032800117

Logical device ID=600601600FA10D00B6B9D018B8BCDA11

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

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

---------------- Host --------------- - Stor - -- I/O Path - --
Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs
Errors
========================================
======================================

0 pci@b2,4000/fibre-channel@3 c5t0d0s0 SP A3 active alive
0 0
0 pci@b2,4000/fibre-channel@3 c5t1d0s0 SP B2 active alive
0 0
1 pci@b2,2000/fibre-channel@1 c6t0d0s0 SP A2 active alive
0 0
1 pci@b2,2000/fibre-channel@1 c6t1d0s0 SP B3 active alive
0 0


Pseudo name=emcpower1a

CLARiiON ID=CK200032800117

Logical device ID=60060160395C0A00708ECC9CF84DDB11

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

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

---------------- Host --------------- - Stor - -- I/O Path - --
Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs
Errors
========================================
======================================

0 pci@b2,4000/fibre-channel@3 c5t0d1s0 SP A3 active alive
0 0
0 pci@b2,4000/fibre-channel@3 c5t1d1s0 SP B2 active alive
0 0
1 pci@b2,2000/fibre-channel@1 c6t0d1s0 SP A2 active alive
0 0
1 pci@b2,2000/fibre-channel@1 c6t1d1s0 SP B3 active alive
0 0


I want the eight devices, not belonging to an imported disk group,
reduced to two devices (emcpower0a and emcpower1a) in the output from
"vxdisk list" because it's actually only two SAN luns.

Best regards Christian Eriksson

c-eriks@algonet.se

2006-12-17, 1:12 pm

Hi!

Now I've managed to use a Power Path pseudo device (power device) in
volume manager. This is how I did it:

root@S0292109# vxddladm -a addforeign pathname=/dev/dsk/emcpower1a

root@S0292109# vxddladm -a addforeign pathname=/dev/rdsk/emcpower1a
root@S0292109# vxdctl enable
root@S0292109# vxdisk list

DEVICE TYPE DISK GROUP STATUS

c4t0d0s2 sliced rootmirr rootdg online

c4t1d0s2 sliced rootdisk rootdg online

c5t0d0s2 sliced personaldg01 personaldg online

c5t0d1s2 sliced - - online

c5t1d0s2 sliced - - error

c5t1d1s2 sliced - - online

c6t0d0s2 sliced - - error

c6t0d1s2 sliced - - online

c6t1d0s2 sliced - - error

c6t1d1s2 sliced - - online

emcpower1a simple - - error


root@S0292109# powervxvm init


initializing emcpower0c:

vxdisk -f init emcpower0c



initializing emcpower1c:

vxdisk -f init emcpower1c



done!



root@S0292109# vxdisk list

DEVICE TYPE DISK GROUP STATUS

c4t0d0s2 sliced rootmirr rootdg online

c4t1d0s2 sliced rootdisk rootdg online

c5t0d0s2 sliced personaldg01 personaldg online

c5t0d1s2 sliced - - online

c5t1d0s2 sliced - - error

c5t1d1s2 sliced - - online

c6t0d0s2 sliced - - error

c6t0d1s2 sliced - - online

c6t1d0s2 sliced - - error

c6t1d1s2 sliced - - online

emcpower0c simple - - online

emcpower1a simple - - error

emcpower1c simple - - online

root@S0292109#
root@S0292109# vxdisk rm emcpower1a
root@S0292109# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c4t0d0s2 sliced rootmirr rootdg online
c4t1d0s2 sliced rootdisk rootdg online
c5t0d0s2 sliced personaldg01 personaldg online
c5t0d1s2 sliced - - online
c5t1d0s2 sliced - - error
c5t1d1s2 sliced - - online
c6t0d0s2 sliced - - error
c6t0d1s2 sliced - - online
c6t1d0s2 sliced - - error
c6t1d1s2 sliced - - online
emcpower0c simple - - online
emcpower1c simple - - online
root@S0292109# vxdg init aisstatdg aisstatdg01=emcpower1c
root@S0292109# vxdg list
NAME STATE ID
rootdg enabled 1104246764.1025.S0292109
aisstatdg enabled 1166362172.1702.S0292109
personaldg enabled 1161349196.1613.S0292109
root@S0292109# vxprint -g aisstatdg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0
PUTIL0
dg aisstatdg aisstatdg - - - - -
-


dm aisstatdg01 emcpower1c - 62910975 - - -
-

As you can see the "vxddladm...." part did'nt do the trick. It was the
"powervxvm init" that made it possible to create (init) a disk group.
Why did the devices emcpower0c and the emcpower1c came online in volume
manager instead of emcpower0a and emcpower1a that "powermt dev
display=all" lists? Can I be sure that the device emcpower1c is
multipathed by EMC PowerPath? (If you wonder I have made it possible to
import the disk group personaldg by first suppressing the devices
c5t1d0s2, c6t0d0s2 and c6t1d0s2 from VxVM's view (as all those devices
actually point at the same SAN lun).)

Best regards

Christian Eriksson

c-eriks@algonet.se skrev:

> Hi!
>
> How do I make Veritas Volume Manager list PowerPath pseudo devices
> instead of native devices with the command "vxdisk list"? Now "vxdisk
> list" shows:
>
> root@S0292109# vxdisk list
> DEVICE TYPE DISK GROUP STATUS
> c4t0d0s2 sliced rootmirr rootdg online
> c4t1d0s2 sliced rootdisk rootdg online
> c5t0d0s2 sliced - - online
> c5t0d1s2 sliced - - online
> c5t1d0s2 sliced - - online
> c5t1d1s2 sliced - - online
> c6t0d0s2 sliced - - online
> c6t0d1s2 sliced - - online
> c6t1d0s2 sliced - - online
> c6t1d1s2 sliced - - online
>
> Below is what "powermt display dev=all" shows:
>
> root@S0292109# powermt display dev=all
>
> Pseudo name=emcpower0a
>
> CLARiiON ID=CK200032800117
>
> Logical device ID=600601600FA10D00B6B9D018B8BCDA11
>
> state=alive; policy=CLAROpt; priority=0; queued-IOs=0
>
> ========================================
======================================
>
> ---------------- Host --------------- - Stor - -- I/O Path - --
> Stats ---
> ### HW Path I/O Paths Interf. Mode State Q-IOs
> Errors
> ========================================
======================================
>
> 0 pci@b2,4000/fibre-channel@3 c5t0d0s0 SP A3 active alive
> 0 0
> 0 pci@b2,4000/fibre-channel@3 c5t1d0s0 SP B2 active alive
> 0 0
> 1 pci@b2,2000/fibre-channel@1 c6t0d0s0 SP A2 active alive
> 0 0
> 1 pci@b2,2000/fibre-channel@1 c6t1d0s0 SP B3 active alive
> 0 0
>
>
> Pseudo name=emcpower1a
>
> CLARiiON ID=CK200032800117
>
> Logical device ID=60060160395C0A00708ECC9CF84DDB11
>
> state=alive; policy=CLAROpt; priority=0; queued-IOs=0
>
> ========================================
======================================
>
> ---------------- Host --------------- - Stor - -- I/O Path - --
> Stats ---
> ### HW Path I/O Paths Interf. Mode State Q-IOs
> Errors
> ========================================
======================================
>
> 0 pci@b2,4000/fibre-channel@3 c5t0d1s0 SP A3 active alive
> 0 0
> 0 pci@b2,4000/fibre-channel@3 c5t1d1s0 SP B2 active alive
> 0 0
> 1 pci@b2,2000/fibre-channel@1 c6t0d1s0 SP A2 active alive
> 0 0
> 1 pci@b2,2000/fibre-channel@1 c6t1d1s0 SP B3 active alive
> 0 0
>
>
> I want the eight devices, not belonging to an imported disk group,
> reduced to two devices (emcpower0a and emcpower1a) in the output from
> "vxdisk list" because it's actually only two SAN luns.
>
> Best regards Christian Eriksson


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com