- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to map a file's space usage to the PVs it ...
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
Discussions
Discussions
Forums
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
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
тАО01-31-2011 01:16 PM
тАО01-31-2011 01:16 PM
I'm on HP-UX 11.23 with Online JFS version 4.1.008 using LVM.
My question is about how to map a file's space usage to the PVs (there are multiple PVs) in a VG.
I know I can see what PVs make up the LV (i.e with lvdisplay) but this is not granular enough...I'm trying to map file space (i.e. Oracle datafiles) to the PV(s) the file resides on.
I looked at vxtrace but thought that it would not work since I'm not actually using the Vx filesystem (rather Online JFS)...please feel free to clear this up if I am confused.
Thank you much!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 01:33 PM
тАО01-31-2011 01:33 PM
Re: How to map a file's space usage to the PVs it resides on?
OnLine JFS == Veritas Filesystem (VxFS)
All techniques for VxFS apply to OJFS or JFS...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 01:38 PM
тАО01-31-2011 01:38 PM
Re: How to map a file's space usage to the PVs it resides on?
Thanks much...maybe you could elaborate more?
I tried to run vxtrace but got this error:
VxVM vxtrace ERROR V-5-1-1392 Volume configuration daemon is not accessible
Does this mean that I have to enable the vxconfigd daemon?
After enabling the daemon, would I have to import my existing JFS (vxfs) files into the daemon's config...
Sorry if they are basic questions...your help is appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 01:40 PM
тАО01-31-2011 01:40 PM
Re: How to map a file's space usage to the PVs it resides on?
See man fs_vxfs(4).
I do not think there is a single tool to allow you to pinpoint where on the FIlesystem a file resides which is the first step. Once that is done and you have an idea what offset the LVOL which the FIlesystem resides on -- you will be able to pinpoint on which PV and offsets thereat your File uses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 01:48 PM
тАО01-31-2011 01:48 PM
Re: How to map a file's space usage to the PVs it resides on?
Has else anyone tried to find this out before?
I'm trying to understand if my I/O is evenly distributed among my available LUNs...
I've pulled data from the Oracle level (v$filestat) and from the LVM to PV level but confirming that a file resides on a or on any LUN seems to be next to impossible..thus I was looking at vxtrace.
Thanks for your help...please let me know if you've solved a similar dilemma...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 01:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 02:01 PM
тАО01-31-2011 02:01 PM
Re: How to map a file's space usage to the PVs it resides on?
Can I get your help to read this correctly?
sectors(9999999) blocks(9999999)
----------------- -----------------
0/1-0/9999999 0/1-0/9999999
fileset fset match match devid/
name indx inode indx inode sectors name
---------- ---- ------ ---- ------ ------------- ------------------
...snip...
UNNAMED 999 5 - - 0/7744168 /acm/.
UNNAMED 999 4 - - 0/3637248-0/3648135 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3604480-0/3637247 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3571712-0/3604479 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3538944-0/3571711 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3506176-0/3538943 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3473408-0/3506175 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3440640-0/3473407 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3407872-0/3440639 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3375104-0/3407871 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3342336-0/3375103 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3309568-0/3342335 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3276800-0/3309567 /undo_2/undo.data2
UNNAMED 999 4 - - 0/3244032-0/3276799 /undo_2/undo.data2
...snip....
Is devid the PV?
Or maybe I should ask how would I map the above output to an lvdisplay?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 02:46 PM
тАО01-31-2011 02:46 PM
Re: How to map a file's space usage to the PVs it resides on?
> Or maybe I should ask how would I map the above output to an lvdisplay?
A file may (generally) occupy some range of sectors which may or may not be one group. For each range (in sectors or in blocks) compute which logical extent that would be.
For example:
# ncheck -oblock=- /dev/vgNN/lvolXX
...blocks(65537)...
# lvdisplay /dev/vgNN/lvolXX
...Current LE 64
...and thus 65536/64 = 1024
...so blocks 0-1023 occupy LE #1, etc.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 03:42 PM
тАО01-31-2011 03:42 PM
Re: How to map a file's space usage to the PVs it resides on?
YOu can get I/O by disk
I/O by filesystem
I/O by logical volume
when you create the LV you can stripe it across multiple disks which should spread data out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 03:51 PM
тАО01-31-2011 03:51 PM
Re: How to map a file's space usage to the PVs it resides on?
You have good points and I would say 1 should strive for that state, but for whatever reason(s) some folks are not quite there yet...
Also, when you are "digging" into issues you'll need more low level data and confirmation that what you really think is happening really is...