- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: relation between disk device and lvol
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
10-19-2004 10:44 PM
10-19-2004 10:44 PM
a sar -d produce something like
12:42:12 device %busy avque r+w/s blks/s avwait avserv
12:42:15 c1t2d0 0,66 0,50 1 11 0,31 12,06
in vgdisplay I have eventualy several lvol for a device.
in the example attached :
is /dev/dsk/c5t10d0 related to : /dev/vg04/lvol1 or /dev/vg04/lvol2
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 10:55 PM
10-19-2004 10:55 PM
Re: relation between disk device and lvol
you have use lvdisplay command to check distribution over disks
ex:
lvdisplay -v /dev/vg04/lvol1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 10:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 11:45 PM
10-19-2004 11:45 PM
Re: relation between disk device and lvol
You may want to create a little relationship table for dsk -> vg -> lv(s).
For example with the perl scripts below
cat dsk-to-lv
while (<>) {
if (/^VG Name\s+\/dev\/(\w+)/) { $vg=$1; $lv="" }
$lv .= " $1" if (/$vg\/(\w+)/);
printf "%-10s%-10s%s\n",$1,$vg,$lv if (/PV Name .*\/(\w+)$/);
}
vgdisplay -p | perl dsk-to-lv
c0t6d0s2 vg00 lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8 lvol9 lvol0
c73t0d1 vg_nfs lv_nfs
c73t0d2 vg_nfs lv_nfs
c73t0d0 vg_02...
:
:
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 11:51 PM
10-19-2004 11:51 PM
Re: relation between disk device and lvol
#pvdisplay -v /dev/dsk/c5t10d0 to identify how many lvols are configured on that pv
#lvdisplay -v /dev/vg04/lvol1 to identify the PVs in lvol1
regards
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 04:20 AM
10-20-2004 04:20 AM
Re: relation between disk device and lvol
I do this script if it can help :
device=$1
pvdisplay -v /dev/dsk/$device | awk ' {
if ( ( NR == 2 ) || ( NR == 3 ) ) { print $0 }
if ( ( NR == 19 ) ) {cmd = "grep "$1" /etc/fstab | cut -d \" \" -f 1,2";lv
= system(cmd) }
}'
Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 04:21 AM
10-20-2004 04:21 AM
Re: relation between disk device and lvol
device=$1
pvdisplay -v /dev/dsk/$device | awk ' {
if ( ( NR == 2 ) || ( NR == 3 ) ) { print $0 }
if ( ( NR == 19 ) ) {cmd = "grep "$1" /etc/fstab | cut -d \" \" -f 1,2";lv
= system(cmd) }
}'