- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to find out which filesystems belongs to w...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 05:12 PM
05-01-2006 05:12 PM
How to find out which filesystems belongs to which disk or I/O controller
Hi,
How to find out which filesystems belongs to which disk or I/O controller
This info will be useful to distribute I/O load evenly by scattering the datafiles
among filesystems.
Thanks
Ezhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 05:41 PM
05-01-2006 05:41 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
I think the following command will be userful for you.
lvdisplay -v
Best Regards,
Onur
--- Logical volumes ---
LV Name /dev/vg01/lvorasoft
VG Name /dev/vg01
.........................
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t3d0 813 813
--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c0t3d0 00000 current
00001 /dev/dsk/c0t3d0 00001 current
00002 /dev/dsk/c0t3d0 00002 current
00003 /dev/dsk/c0t3d0 00003 current
00004 /dev/dsk/c0t3d0 00004 current
..............................
..............................
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 06:14 PM
05-01-2006 06:14 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
For i/o controller information, you need to give us more infomration. It depends on what type of SAN/NAS you use. You will have to relate the disks to controller and in turn relate those lvols to controllers. Check primary and alternate paths for lvols.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 06:21 PM
05-01-2006 06:21 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
You could also do a pvdisplay on each disk to see what LV are created on those disks (this is the backward method to go)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 06:37 PM
05-01-2006 06:37 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
I usually do it the other way around.
I mean, I do a vgdisplay first to get the
disks in the volumegroup.
Then I use pvdisplay -v /dev/dsk/cxtxdx |more
to get the list of logical volumes on that disk:
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol1 11 11
/dev/vg00/lvol2 128 128
/dev/vg00/lvol3 18 18
/dev/vg00/lvol4 38 38
/dev/vg00/lvol5 3 3
/dev/vg00/lvol6 175 175
/dev/vg00/lvol7 150 150
/dev/vg00/lvol8 200 200
/dev/vg00/lvol9 1000 1000
/dev/vg00/lvorasys 938 938
/dev/vg00/temp 250 250
-
This way you can see if there are more things
going on like mirrorring, striping etc..
The patterns is clearer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 07:39 PM
05-01-2006 07:39 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
Try this script
for i in `vgdisplay | grep 'VG Name' | awk '{print $NF}'`
do
for j in `vgdisplay -v $i | grep 'LV Name' | awk '{print $NF}'`
do
echo "$j \c"
lvdisplay -v $j | awk '/Distribution/,/Logical extents/ {print $1}' | grep '/dev/dsk' | cut -f 4 -d "/" | awk 'ORS=" ";{print $0}'
echo "\r"
done
done
This will give you which disks are used by each logical volume. You can develop on this script to get what you want.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:12 PM
05-01-2006 08:12 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
1. Do a bdf and check the lvols that refering to to that Filesystem.
Then use lvdisplay -v lvname to check the disk belongs to.
# echo "lvolname \c" ; lvdisplay -v lvolname | grep -v current | grep dsk | awk '{print $1}'
2. Do a ioscan -fnC disk , to check which controller that disk belongs to.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:54 PM
05-01-2006 08:54 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
Thanks for your knowledge update in this topic.
I need this also for Sun Solaris and Linux.
Please help. thanks a lot.
Regards
Ezhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 08:28 PM
05-02-2006 08:28 PM
Re: How to find out which filesystems belongs to which disk or I/O controller
But the only thing is it will display each device twice, as the rule is matched twice.
Replace this command
lvdisplay -v $j | awk '/Distribution/,/Logical extents/ {print $1}' | grep '/dev/dsk' | cut -f 4 -d "/" | awk 'ORS=" ";{print $0}'
with
lvdisplay -v $j | awk '/Distribution/,/Logical extents/ {print $1}' | grep '/dev/dsk' | cut -f 4 -d "/" | awk 'BEGIN { ORS=" "} ; {print $0}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 07:48 AM
05-05-2006 07:48 AM
Re: How to find out which filesystems belongs to which disk or I/O controller
Hi Unix gurus,
Thanks once again.
Please see my previous update.
Also I need this for Sun Solaris and Linux.
Please help with commands for these Unix.
Regards
Ezhil