Unix Technical Forum

how do I map hdiskxxx to filesystem

This is a discussion on how do I map hdiskxxx to filesystem within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage. I am running iostat and it give ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:14 PM
MAK
 
Posts: n/a
Default how do I map hdiskxxx to filesystem

Hello,

We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.

I am running iostat and it give me all devices statrt with hdiskXXX.

Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk146 0.1 38.8 1.3 180806069 14584
hdisk150 0.0 0.0 0.0 2049 0
hdisk11 0.2 47.7 1.7 222564295 60668
hdisk151 0.0 0.0 0.0 2048 0
hdisk145 0.2 45.8 1.6 213709213 37600

How do I map these devices to actual file systems? Could you please
let me know?

DMP ( Dynamic Multipathing ) being used. Also AIX-LVM used for
creating volumes and filesystem. Here is the volume group list and
its physical/logical volumes for one V.G.

$ lsvg

mvol1vg
mvol2vg
mvol3vg

$lsvg -p mvol1vg

mvol1vg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE
DISTRIBUTION
vpath1 active 108 0
00..00..00..00..00
vpath9 active 108 0
00..00..00..00..00
vpath17 active 108 0
00..00..00..00..00
vpath25 active 108 0
00..00..00..00..00
vpath33 active 108 0
00..00..00..00..00
vpath41 active 108 0
00..00..00..00..00
vpath48 active 108 0
00..00..00..00..00
vpath55 active 108 0
00..00..00..00..00
vpath63 active 108 0
00..00..00..00..00
vpath71 active 108 2
00..00..00..00..02

lsvg -l mvol1vg
mvol1vg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT
POINT
redo1 jfs 157 157 2 open/syncd /u01
loglv09 jfslog 1 1 1 open/syncd N/A
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:14 PM
Mr Lance Free
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

"MAK" <maks70@comcast.net> wrote in message
news:b7178504.0309231243.5b0f75c9@posting.google.c om...
> Hello,
>
> We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.
>
> I am running iostat and it give me all devices statrt with hdiskXXX.
>
> Disks: % tm_act Kbps tps Kb_read Kb_wrtn
> hdisk146 0.1 38.8 1.3 180806069 14584
> hdisk150 0.0 0.0 0.0 2049 0
> hdisk11 0.2 47.7 1.7 222564295 60668
> hdisk151 0.0 0.0 0.0 2048 0
> hdisk145 0.2 45.8 1.6 213709213 37600
>
> How do I map these devices to actual file systems? Could you please
> let me know?
>
> DMP ( Dynamic Multipathing ) being used. Also AIX-LVM used for
> creating volumes and filesystem. Here is the volume group list and
> its physical/logical volumes for one V.G.
>
> $ lsvg
>
> mvol1vg
> mvol2vg
> mvol3vg
>
> $lsvg -p mvol1vg
>
> mvol1vg:
> PV_NAME PV STATE TOTAL PPs FREE PPs FREE
> DISTRIBUTION
> vpath1 active 108 0
> 00..00..00..00..00
> vpath9 active 108 0
> 00..00..00..00..00
> vpath17 active 108 0
> 00..00..00..00..00
> vpath25 active 108 0
> 00..00..00..00..00
> vpath33 active 108 0
> 00..00..00..00..00
> vpath41 active 108 0
> 00..00..00..00..00
> vpath48 active 108 0
> 00..00..00..00..00
> vpath55 active 108 0
> 00..00..00..00..00
> vpath63 active 108 0
> 00..00..00..00..00
> vpath71 active 108 2
> 00..00..00..00..02
>
> lsvg -l mvol1vg
> mvol1vg:
> LV NAME TYPE LPs PPs PVs LV STATE MOUNT
> POINT
> redo1 jfs 157 157 2 open/syncd /u01
> loglv09 jfslog 1 1 1 open/syncd N/A


Try lslv -l redo1, this will show you the hdisk devices being used for that
LV which has a filesystem mapped to it by the name of mountpoint /u01

Also try reading the logical volume management guide for AIX 5.2 I'm sure
you will learn a lot by reading this. Good luck!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 09:14 PM
Steve Nottingham
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

"Mr Lance Free" <SPAMMY_blfridge@hotmail.com> wrote in message news:<xR2cb.36642$332.1769587@phobos.telenet-ops.be>...
> "MAK" <maks70@comcast.net> wrote in message
> news:b7178504.0309231243.5b0f75c9@posting.google.c om...
> > Hello,
> >
> > We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.
> >
> > I am running iostat and it give me all devices statrt with hdiskXXX.
> >
> > Disks: % tm_act Kbps tps Kb_read Kb_wrtn
> > hdisk146 0.1 38.8 1.3 180806069 14584
> > hdisk150 0.0 0.0 0.0 2049 0
> > hdisk11 0.2 47.7 1.7 222564295 60668
> > hdisk151 0.0 0.0 0.0 2048 0
> > hdisk145 0.2 45.8 1.6 213709213 37600
> >
> > How do I map these devices to actual file systems? Could you please
> > let me know?


Try lspv -l <hdisk>.

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 09:15 PM
MAK
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

steve@wakefieldrfc.freeserve.co.uk (Steve Nottingham) wrote in message news:<42862645.0309240043.4e31fb58@posting.google. com>...
> "Mr Lance Free" <SPAMMY_blfridge@hotmail.com> wrote in message news:<xR2cb.36642$332.1769587@phobos.telenet-ops.be>...
> > "MAK" <maks70@comcast.net> wrote in message
> > news:b7178504.0309231243.5b0f75c9@posting.google.c om...
> > > Hello,
> > >
> > > We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.
> > >
> > > I am running iostat and it give me all devices statrt with hdiskXXX.
> > >
> > > Disks: % tm_act Kbps tps Kb_read Kb_wrtn
> > > hdisk146 0.1 38.8 1.3 180806069 14584
> > > hdisk150 0.0 0.0 0.0 2049 0
> > > hdisk11 0.2 47.7 1.7 222564295 60668
> > > hdisk151 0.0 0.0 0.0 2048 0
> > > hdisk145 0.2 45.8 1.6 213709213 37600
> > >
> > > How do I map these devices to actual file systems? Could you please
> > > let me know?

>
> Try lspv -l <hdisk>.
>
> Steve


lspv -l hdisk146
0516-304 : Unable to find device id 00000000000000000000000000000000 in the Device
Configuration Database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2008, 09:15 PM
Steve Nottingham
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

maks70@comcast.net (MAK) wrote in message news:<b7178504.0309241251.805faef@posting.google.c om>...
> steve@wakefieldrfc.freeserve.co.uk (Steve Nottingham) wrote in message news:<42862645.0309240043.4e31fb58@posting.google. com>...
> > "Mr Lance Free" <SPAMMY_blfridge@hotmail.com> wrote in message news:<xR2cb.36642$332.1769587@phobos.telenet-ops.be>...
> > > "MAK" <maks70@comcast.net> wrote in message
> > > news:b7178504.0309231243.5b0f75c9@posting.google.c om...
> > > > Hello,
> > > >
> > > > We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.
> > > >
> > > > I am running iostat and it give me all devices statrt with hdiskXXX.
> > > >
> > > > Disks: % tm_act Kbps tps Kb_read Kb_wrtn
> > > > hdisk146 0.1 38.8 1.3 180806069 14584
> > > > hdisk150 0.0 0.0 0.0 2049 0
> > > > hdisk11 0.2 47.7 1.7 222564295 60668
> > > > hdisk151 0.0 0.0 0.0 2048 0
> > > > hdisk145 0.2 45.8 1.6 213709213 37600
> > > >
> > > > How do I map these devices to actual file systems? Could you please
> > > > let me know?

> >
> > Try lspv -l <hdisk>.
> >
> > Steve

>
> lspv -l hdisk146
> 0516-304 : Unable to find device id 00000000000000000000000000000000 in the Device
> Configuration Database.


There must be a command to show the mapping between the vpaths and
hdisks. You will have installed a fileset to use this storage array.
Use lslpp -f <fileset> to see what commands are in the fileset.

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-04-2008, 09:16 PM
Jeremy
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

On 23 Sep 2003 13:43:45 -0700, maks70@comcast.net (MAK) wrote:

>Hello,
>
>We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.
>
>I am running iostat and it give me all devices statrt with hdiskXXX.
>
>Disks: % tm_act Kbps tps Kb_read Kb_wrtn
>hdisk146 0.1 38.8 1.3 180806069 14584
>hdisk150 0.0 0.0 0.0 2049 0
>hdisk11 0.2 47.7 1.7 222564295 60668
>hdisk151 0.0 0.0 0.0 2048 0
>hdisk145 0.2 45.8 1.6 213709213 37600


You can use df -k to see your mounted filesystem, for example
# df -k

Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 131072 50232 62% 1731 6% /
/dev/hd2 2097152 595960 72% 21388 9% /usr
/dev/hd9var 2097152 2003848 5% 619 1% /var
/dev/hd3 917504 773744 16% 169 1% /tmp
/dev/hd1 131072 111912 15% 603 4% /home
/proc - - - - - /proc
/dev/hd10opt 131072 53192 60% 1442 9% /opt
/dev/lv01 655360 631336 4% 26 1% /hacmplogs
/dev/tpxlv 8388608 979416 89% 22401 17% /tpx

and then using the command lslv -l <LOGICALVOLUME> you'll be able to
see the mapping, for example

# lslv -l tpxlv
tpxlv:/tpx
PV COPIES IN BAND DISTRIBUTION
hdisk0 064:000:000 0% 064:000:000:000:000
hdisk1 064:000:000 0% 064:000:000:000:000


HIH,
Jeremy


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-04-2008, 09:16 PM
Chris
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

Jeremy <jeremy_thewicked@hotmail.com> wrote in message news:<4lm6nv4bceuhbps8j9l2dn78e0itp5looe@4ax.com>. ..
> On 23 Sep 2003 13:43:45 -0700, maks70@comcast.net (MAK) wrote:
>
> >Hello,
> >
> >We are running AIX-5.1-L on IBM p680 and using HDS-99XX storage.
> >
> >I am running iostat and it give me all devices statrt with hdiskXXX.
> >
> >Disks: % tm_act Kbps tps Kb_read Kb_wrtn
> >hdisk146 0.1 38.8 1.3 180806069 14584
> >hdisk150 0.0 0.0 0.0 2049 0
> >hdisk11 0.2 47.7 1.7 222564295 60668
> >hdisk151 0.0 0.0 0.0 2048 0
> >hdisk145 0.2 45.8 1.6 213709213 37600

>
> You can use df -k to see your mounted filesystem, for example
> # df -k
>
> Filesystem 512-blocks Free %Used Iused %Iused Mounted on
> /dev/hd4 131072 50232 62% 1731 6% /
> /dev/hd2 2097152 595960 72% 21388 9% /usr
> /dev/hd9var 2097152 2003848 5% 619 1% /var
> /dev/hd3 917504 773744 16% 169 1% /tmp
> /dev/hd1 131072 111912 15% 603 4% /home
> /proc - - - - - /proc
> /dev/hd10opt 131072 53192 60% 1442 9% /opt
> /dev/lv01 655360 631336 4% 26 1% /hacmplogs
> /dev/tpxlv 8388608 979416 89% 22401 17% /tpx
>
> and then using the command lslv -l <LOGICALVOLUME> you'll be able to
> see the mapping, for example
>
> # lslv -l tpxlv
> tpxlv:/tpx
> PV COPIES IN BAND DISTRIBUTION
> hdisk0 064:000:000 0% 064:000:000:000:000
> hdisk1 064:000:000 0% 064:000:000:000:000
>
>
> HIH,
> Jeremy


"lsvpcfg" will list your vpath-to-hdisk mappings. Pipe to grep if the
list is long.

Then "lspv -l vpathx" to see what logical volumes have partitions on
that vpath as you would if it were an hdisk.

Good luck,
Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-04-2008, 09:19 PM
MAK
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

> "lsvpcfg" will list your vpath-to-hdisk mappings. Pipe to grep if the
> list is long.
>
> Then "lspv -l vpathx" to see what logical volumes have partitions on
> that vpath as you would if it were an hdisk.
>
> Good luck,
> Chris



Thanks Chris! lsvpcfg command was the one I had been looking for.

What its equivalent in Veritas world? ( I know know this is AIX forum
but just in case you know it already ). Soon we would be migrating
from AIX-LVM to Veritas Volmgr.

Once again , I appreciate your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-04-2008, 09:19 PM
Chris
 
Posts: n/a
Default Re: how do I map hdiskxxx to filesystem

maks70@comcast.net (MAK) wrote in message news:<b7178504.0309301726.21b80970@posting.google. com>...
> > "lsvpcfg" will list your vpath-to-hdisk mappings. Pipe to grep if the
> > list is long.
> >
> > Then "lspv -l vpathx" to see what logical volumes have partitions on
> > that vpath as you would if it were an hdisk.
> >
> > Good luck,
> > Chris

>
>
> Thanks Chris! lsvpcfg command was the one I had been looking for.
>
> What its equivalent in Veritas world? ( I know know this is AIX forum
> but just in case you know it already ). Soon we would be migrating
> from AIX-LVM to Veritas Volmgr.
>
> Once again , I appreciate your help.


I'm not familiar with Veritas Volmgr. Sorry. When you convert, I'd
be interested in hearing your thoughts on it.

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com