Operating System - HP-UX
1838576 Members
4166 Online
110128 Solutions
New Discussion

Mapping large file across physical extents

 
Ray H. Gay
Advisor

Mapping large file across physical extents

Is there a convenient way to see what extents a large file is occupying?
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: Mapping large file across physical extents

Hi,

No.

You can only identify the physical extents used by the filesystem where the large file resides. This is performed by performing an lvdisplay on the logical volume that the filesystem sits on top of.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Roger Baptiste
Honored Contributor

Re: Mapping large file across physical extents

hi,

I don''t think it is possible. The best you can do is to see which PV extents your Filesystem is occupying.
(using lvdisplay -v)

You can also run pvdisplay -v on PVs to see what filesystem is contains and how it is distributed.

HTh
raj
Take it easy.
Wodisch
Honored Contributor

Re: Mapping large file across physical extents

Hello Ray,

not a convenient way, at least :-(

You'll need a mixture of "fsdb" on the i-node and file-system of that file, "lvdisplay -v" on its LV, and "ioscan" on its PV. In case of a RAID-box you then need a mapping from LUN to *real* har-disk inside the RAID-box, too...

It would be pretty difficult to write a script doing this, I guess.

Just my $0.02,
Wodisch
fg_1
Trusted Contributor

Re: Mapping large file across physical extents

Ray

unfortunately you cannot do this, only at the lvol level with the lvdisplay -v command.

The file should be using the extents evenly, what indications are you receiving that there is a problem here?