cannot understand my disk layout

my users has requested more space to a particular volume group, so i do a lsvg

honda:/tmp/ab/ecc # lsvg
rootvg
OP24BCKVG
OP24ORAvg
OP24SYSVG
OP24DATVG

the user wants to know what disks are available to be added to any of the vgs listed above, (not including rootvg)

so i do a lspv and i gett the following

 
honda:/tmp/ab/ecc # lspv
hdisk0          00cae9d54c824462                    rootvg          active
hdisk1          00cae9d5448c161a                    rootvg          active
hdisk2          none                                None
hdisk3          none                                None
hdisk4          none                                None
hdisk5          none                                None
hdisk6          none                                None
hdisk7          none                                None
hdisk8          none                                None
hdisk9          none                                None
hdisk10         none                                None
hdisk11         none                                None
hdisk12         none                                None
hdisk13         none                                None
hdisk14         none                                None
hdisk15         none                                None
hdisk16         none                                None
hdisk17         none                                None
hdisk18         none                                None
hdisk19         none                                None
hdisk20         none                                None
hdisk21         none                                None
hdisk22         none                                None
hdisk23         none                                None
hdisk24         none                                None
hdisk25         none                                None
hdisk26         none                                None
hdisk27         none                                None
hdisk28         none                                None
hdisk29         none                                None
hdisk30         none                                None
hdisk31         none                                None
hdisk32         none                                None
hdisk33         none                                None
hdisk34         none                                None
hdisk35         none                                None
hdisk36         none                                None
hdisk37         none                                None
hdisk38         none                                None
hdisk39         none                                None
hdisk40         none                                None
hdisk41         none                                None
hdisk42         none                                None
hdisk43         none                                None
hdisk44         none                                None
hdisk45         none                                None
hdisk46         none                                None
hdisk47         none                                None
hdiskpower0     none                                None
hdiskpower1     none                                None
hdiskpower2     none                                None
hdiskpower3     none                                None
hdiskpower4     none                                None
hdiskpower5     none                                None
hdiskpower6     00cae9d5c4b30d40                    OP24BCKVG       active
hdiskpower7     00cae9d5c4ac8932                    OP24BCKVG       active
hdiskpower8     00cae9d5c4b4a857                    OP24BCKVG       active
hdiskpower9     00cae9d5c4add51b                    OP24BCKVG       active
hdiskpower10    00cae9d5c4bd6d1f                    OP24ORAvg       active
hdiskpower11    00cae9d5c4b7def4                    OP24ORAvg       active
hdiskpower12    00cae9d5c4b2541e                    OP24ORAvg       active
hdiskpower13    00cae9d5c4bfdfbc                    OP24DATVG       active
hdiskpower14    00cae9d5c4c895a3                    OP24DATVG       active
hdiskpower15    00cae9d5c4c17493                    OP24DATVG       active
hdiskpower16    00cae9d5c4ba9397                    OP24DATVG       active
hdiskpower17    00cae9d5c4ce7df2                    OP24SYSVG       active
hdiskpower18    00cae9d5c4c7ecf2                    OP24SYSVG       active
hdiskpower19    00cae9d5c4d1cbff                    OP24SYSVG       active
hdiskpower20    00cae9d5c4caaaf5                    OP24SYSVG       active
hdiskpower21    00cae9d5c4c2b1bc                    OP24DATVG       active

my understanding is the hdiskpowerXX are LUNS made up of the physical hdiskXXs,

so if that is correct, i should be able to create a new volume group called test with hdiskpowerXX that has none and none next to them

also what are the hdisks that have none and none next to them

i clearly understand that all the hdiskpowerXX that have a number and VG name next to it has been assigned to VGs and i know how to get info from them

also let me give you another out from from the following command

Pseudo name=hdiskpower0
Symmetrix ID=000192601779
Logical device ID=0109
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
==============================================================================
1 fscsi3 hdisk26 FA 10gB active alive 0 0
0 fscsi0 hdisk3 FA 7gB active alive 0 0
Pseudo name=hdiskpower1
Symmetrix ID=000192601779
Logical device ID=010A
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
==============================================================================
1 fscsi3 hdisk27 FA 10gB active alive 0 0
0 fscsi0 hdisk4 FA 7gB active alive 0 0
Pseudo name=hdiskpower2
Symmetrix ID=000192601779
Logical device ID=010B
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
==============================================================================
1 fscsi3 hdisk28 FA 10gB active alive 0 0
0 fscsi0 hdisk5 FA 7gB active alive 0 0
Pseudo name=hdiskpower3
Symmetrix ID=000192601779
Logical device ID=010C
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
==============================================================================
1 fscsi3 hdisk29 FA 10gB active alive 0 0
0 fscsi0 hdisk6 FA 7gB active alive 0 0
Pseudo name=hdiskpower4
Symmetrix ID=000192601779
Logical device ID=010D
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
==============================================================================
1 fscsi3 hdisk30 FA 10gB active alive 0 0
0 fscsi0 hdisk7 FA 7gB active alive 0 0
Pseudo name=hdiskpower5
Symmetrix ID=000192601779
Logical device ID=010E
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
==============================================================================
1 fscsi3 hdisk31 FA 10gB active alive 0 0
0 fscsi0 hdisk8 FA 7gB active alive 0 0
Pseudo name=hdiskpower6
Symmetrix ID=000192601779
Logical device ID=02DD
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
==============================================================================
1 fscsi3 hdisk32 FA 10gB active alive 0 0
0 fscsi0 hdisk9 FA 7gB active alive 0 0
Pseudo name=hdiskpower7
Symmetrix ID=000192601779
Logical device ID=02E5
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
==============================================================================
0 fscsi0 hdisk10 FA 7gB active alive 0 0
1 fscsi3 hdisk33 FA 10gB active alive 0 0
Pseudo name=hdiskpower8
Symmetrix ID=000192601779
Logical device ID=02ED
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
==============================================================================
0 fscsi0 hdisk11 FA 7gB active alive 0 0
1 fscsi3 hdisk34 FA 10gB active alive 0 0
Pseudo name=hdiskpower9
Symmetrix ID=000192601779
Logical device ID=02F5
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
==============================================================================
0 fscsi0 hdisk12 FA 7gB active alive 0 0
1 fscsi3 hdisk35 FA 10gB active alive 0 0
Pseudo name=hdiskpower10
Symmetrix ID=000192601779
Logical device ID=030D
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
==============================================================================
0 fscsi0 hdisk13 FA 7gB active alive 0 0
1 fscsi3 hdisk36 FA 10gB active alive 0 0
Pseudo name=hdiskpower11
Symmetrix ID=000192601779
Logical device ID=030F
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
==============================================================================
0 fscsi0 hdisk14 FA 7gB active alive 0 0
1 fscsi3 hdisk37 FA 10gB active alive 0 0
Pseudo name=hdiskpower12
Symmetrix ID=000192601779
Logical device ID=0310
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
==============================================================================
0 fscsi0 hdisk15 FA 7gB active alive 0 0
1 fscsi3 hdisk38 FA 10gB active alive 0 0
Pseudo name=hdiskpower13
Symmetrix ID=000192601779
Logical device ID=0332
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
==============================================================================
0 fscsi0 hdisk16 FA 7gB active alive 0 0
1 fscsi3 hdisk39 FA 10gB active alive 0 0
Pseudo name=hdiskpower14
Symmetrix ID=000192601779
Logical device ID=033A
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
==============================================================================
0 fscsi0 hdisk17 FA 7gB active alive 0 0
1 fscsi3 hdisk40 FA 10gB active alive 0 0
Pseudo name=hdiskpower15
Symmetrix ID=000192601779
Logical device ID=0342
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
==============================================================================
0 fscsi0 hdisk18 FA 7gB active alive 0 0
1 fscsi3 hdisk41 FA 10gB active alive 0 0
Pseudo name=hdiskpower21
Symmetrix ID=000192601779
Logical device ID=034A
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
==============================================================================
0 fscsi0 hdisk24 FA 7gB active alive 0 0
1 fscsi3 hdisk47 FA 10gB active alive 0 0
Pseudo name=hdiskpower16
Symmetrix ID=000192601779
Logical device ID=0352
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
==============================================================================
0 fscsi0 hdisk19 FA 7gB active alive 0 0
1 fscsi3 hdisk42 FA 10gB active alive 0 0
Pseudo name=hdiskpower17
Symmetrix ID=000192601779
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
==============================================================================
0 fscsi0 hdisk20 FA 7gB active alive 0 0
1 fscsi3 hdisk43 FA 10gB active alive 0 0
Pseudo name=hdiskpower18
Symmetrix ID=000192601779
Logical device ID=0362
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
==============================================================================
0 fscsi0 hdisk21 FA 7gB active alive 0 0
1 fscsi3 hdisk44 FA 10gB active alive 0 0
Pseudo name=hdiskpower19
Symmetrix ID=000192601779
Logical device ID=036A
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
==============================================================================
0 fscsi0 hdisk22 FA 7gB active alive 0 0
1 fscsi3 hdisk45 FA 10gB active alive 0 0
Pseudo name=hdiskpower20
Symmetrix ID=000192601779
Logical device ID=037E
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
==============================================================================
0 fscsi0 hdisk23 FA 7gB active alive 0 0
1 fscsi3 hdisk46 FA 10gB active alive 0 0

take care with your none/none disks, since you are running oracle these may be used by asm as raw disks, ask your oracle admin

I wrote a little script that reads some kind of id from asm disks, to help me find the relation from lpar to vio disks for asm luns easier
try to run it, a none asm disk should not be listed, to make sure run

oraid hdiskx

, non asm disks should return 00000000

cat /usr/bin/oraid
#!/usr/bin/ksh
if [ -z "$1" ]
then
lspv | awk '/none/{print $1}' | while read i ; do echo $i $(od -A n -j 12 -N 4 -x /dev/$i | sed 's/ //g') ; done
else                                                                                                                                                                                                                                         
od -A n -j 12 -N 4 -x /dev/$1 | sed -e 2d -e 's/ //g'                                                                                                                                                                                        
fi            

but ask your oracle admin anyways, since I don't want to be responsible that you screw up your database :wink:

1 Like

Hi,

If you have installed sdd drivers instead of sddpcm then you will find the paths are also mentioned as hdisk. You can check which sdd drivers you have installed by

 lslpp -l | grep -i sdd 

if the output is

"devices.sddpcm.53.rte" then all the hdisks are LUN's mapped to your server.

If the output is

"devices.sdd.53.rte" then the paths are also shown as hdisk. (Mine is AIX 5.3)

You can use "lsattr -El hdiskpower6" and look for the "active_hdisk" it will show all the paths connected to that disk. you can get an idea from the below output

lsattr -El vpath1

& the output is

"active_hdisk   hdisk4/6005076801900254B800000000000082/fscsi1"
"active_hdisk   hdisk5/6005076801900254B800000000000082/fscsi0"

Hope this helps you.

Regards,

VJM:b:

---------- Post updated at 01:59 PM ---------- Previous update was at 01:49 PM ----------

Hi,

Mine is ds8k storage. I think you have emc storage so check for the drivers it will help to conclude. From your output it seems hdiskpower0 to 21 are the Luns mapped and the hdisk2 to 47 are paths.

Pseudo name=hdiskpower0
Symmetrix ID=000192601779
Logical device ID=0109
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
==============================================================================
1 fscsi3 hdisk26 FA 10gB active alive 0 0
0 fscsi0 hdisk3 FA 7gB active alive 0 0

Pseudo name=hdiskpower1
Symmetrix ID=000192601779
Logical device ID=010A
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
==============================================================================
1 fscsi3 hdisk27 FA 10gB active alive 0 0
0 fscsi0 hdisk4 FA 7gB active alive 0 0  

Regards,
VJM:b: