Donald,

> I think once I get this, I'll write a script to answer
> the eternal questions? "Which disk is file/directory x on"?
> and "Which real disk is /dev/<x>"?

I started one (lsvols.sh).  It reads through /etc/fstab and tries to parse
it and report what it finds, cross-referencing it with LVM. Here's an
example:

# lsvols.sh
/dev/dasda1 (5000.8666 cylinders) is mounted over /
/dev/dasde1 (10015.8666 cylinders) is mounted over /var/lib/mz
/dev/dasda2 (5015.0000 cylinders) is part of LV /dev/opt-vg-gpok191/opt-lv
/dev/dasdb1 (3337.8666 cylinders) is part of LV /dev/opt-vg-gpok191/opt-lv
LV /dev/mapper/opt--vg--gpok191-opt--lv is mounted over /opt
/dev/dasdc1 (126 MB) is a swap space
/dev/dasdd1 (253 MB) is a swap space

I put it out on the bottom of my developer page (no warranties of course):
http://www.vm.ibm.com/devpages/mikemac/

If it's not what you're looking for, it might help as a start ...

"Mike MacIsaac" <mike...@us.ibm.com>   (845) 433-7061

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to