Operating System - HP-UX
1833780 Members
2637 Online
110063 Solutions
New Discussion

Filesystems and associated Disk arrays or controllers

 
SOLVED
Go to solution
Ezhilarasan
Occasional Advisor

Filesystems and associated Disk arrays or controllers

Hi,

In our m/c we have 4 disk arrays and 4 disk
controllers.
I want to distribute and organize Oracle data files evenly among all disk controller's filesystems.

What commands will help me to identify
which filesystems are under which disk arrays or disk controllers ?

Thanks
R. Ezhil

5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: Filesystems and associated Disk arrays or controllers

Disk convention

cXtYdX
c=controller
t=target
d=LUN

To identify the which volumes are currently used and where, use these commands.

vgdisplay -v (displays all your logical volume information including what disks are part of that group.
lvdisplay -v (displays detail information about the logical volume, including what disk is resides on.

There is a script called free_disks by Alan Riggs on this link that should assist you identifying the disks not used. Also see scripts provided by Carlos, Justo and SK Chan. They all should give you valuable information.
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: Filesystems and associated Disk arrays or controllers

Rajeev  Shukla
Honored Contributor

Re: Filesystems and associated Disk arrays or controllers

For disk arrays, now a days disk arrays handle the data being writen to all disk. Disk Arrays like Surestore XP's, EMC etc..if you configure to RAID5 it will take care of writing evenly to all disk now you got to take care of controller load sharing.
Which you can do my configuring the primary and alternate links. Like you distribute your data across different VG. And then access these VG's through different controllers by taking that as primary path. Also for your information creating alternate and primary links can be done online too.

Cheers
Rajeev
Ezhilarasan
Occasional Advisor

Re: Filesystems and associated Disk arrays or controllers

Hi all,

Thanks for your reply.
vgdisplay command shows volume groups
/dev/vg01
/dev/vg02

vgdisplay -v vg02 command shows
Logical volumes as
/dev/vg02/lvol1 -- Filesystem 1
/dev/vg02/lvol2 -- Filesystem 2
.
.
Physical volume as
/dev/dsk/c3t0d3
/dev/dsk/c7t0d3 Alternate Link
/dev/dsk/c7t0d4
/dev/dsk/c3t0d4 Alternate Link
.
.

Our hardware engineer showed 4 disk arrays
and 4 controllers.

From the above command I only able to see
filesystems and associated disks.
But I want filesystems and associated disk
array or disk controller ( 1..4 )
In otherwords how to find logical volumes(filesys) and associate
disk array or disk controller.

Can you please help with right command
to get the info.

Thanks
R.Ezhil

Sridhar Bhaskarla
Honored Contributor

Re: Filesystems and associated Disk arrays or controllers

Hi,

Find out all the logical volumes.

#vgdisplay -v |grep "LV Name"

For each logical volume that you found in the above output, do

#lvdisplay -v /dev/vgxx/lvolxx

That will show you the logical volume and it's distribution on the physical volumes. For each physical volume, do

#lssf /dev/dsk/cxtydz

You will get the path details. Or do

ioscan -fnC disk > disk.out. Look at disk.out file and compare them with what you got in lvdisplay commands.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try