LVM and VxVM

VxVM: How do I know which physical disk a File System sits on?

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

VxVM: How do I know which physical disk a File System sits on?

 
3 REPLIES 3
Stuart Abramson_2
Honored Contributor

Re: VxVM: How do I know which physical disk a File System sits on?

My post got away from me.

In LVM, given this scenario, I can tell what disk my file system sits on:

# bdfm.ksh
File System Mbytes Used Avail %Used Type Mounted on
/dev/vg00/lvol1 292 57 206 22% /stand
/dev/vg00/lvol3 208 88 119 43% /
/dev/vg00/lvol4 512 4 504 1% /tmp
/dev/vg00/lvol5 512 3 505 1% /home
/dev/vg00/lvol6 2048 1711 334 84% /opt
/dev/vg00/lvol7 2848 1306 1530 46% /usr
/dev/vg00/lvol8 4608 617 3960 13% /var
/dev/vgr11c/lvol01 30000 21178 8684 71% /u500
/dev/vgr11c/lvol02 30000 17866 11944 60% /u501
/dev/vgr11c/lvol03 8000 5 7496 0% /u502
/dev/vx/dsk/otdg/otlv01 1024 1 959 0% /u01

# lvdisplay -v /dev/vgr11c/lvol03 | grep dsk | head
/dev/dsk/c14t4d0 1078 1078
/dev/dsk/c14t4d1 922 922
00000 /dev/dsk/c14t4d0 00000 current
00001 /dev/dsk/c14t4d0 00001 current
00002 /dev/dsk/c14t4d0 00002 current

How do I do that little trick with VxVM?

It's important for me to know because we do BCVs, and balance index and tables, and seperate logs, etc..
Sridhar Bhaskarla
Honored Contributor
Solution

Re: VxVM: How do I know which physical disk a File System sits on?

Hi,

Well - There isn't a simple command like vgdisplay or lvdisplay in vxvm. Look at vxprint command for more information.

vxprint -ht -g dgname

Now add -s, -v etc., options to print information about subdisk, volume etc.,

Try the following command and see if it helps you.

vxprint -ht -p -g dgname

man vxprint for more options

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

Re: VxVM: How do I know which physical disk a File System sits on?

Hi Stuart,

This is most easily done with the vea GUI.
Bring it up, expand the host, then expand filesystems. Click on the appropriate FS & then in the right pane, right click the FS. Then click Layout View. You're looking for the SubDisk section (usually bright green).
This gives you the subdisk name(s)then click disks on the left pane & relate subdisk name to the disk device. There could be several disks involved.

Alternatively you could do the same through the disks section, but you'd have to check ALL the disks.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!