- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to view inode extent map for files
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
05-16-2007 01:50 AM
05-16-2007 01:50 AM
That is something which is normally transparent to an application but it would be useful information to study fragmentation issues and other more or less subtle performance issues.
What tools are there to report the mapping of a selected files onto the disk blocks?
The closest I seem to get is getext/setext but that was not available on my test system.
On Tru64 AdfFS I would use showfile -h (or -x)
On OpenVMS I would use $DUMP/HEADER/BLOC=COUN=0
On HPUX?
For bonus points... On Linux ?
Thanks!
Hein.
Tru64 showfile man page:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN8/0369____.HTM
Link to other thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1127474
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 03:50 AM
05-16-2007 03:50 AM
Re: How to view inode extent map for files
http://docs.hp.com/en/B2355-60103/inode_vxfs.4.html
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 04:02 AM
05-16-2007 04:02 AM
SolutionUse extreme care with this command because you can destroy a file system although you intend to only be displaying values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 07:34 AM
05-16-2007 07:34 AM
Re: How to view inode extent map for files
Clay, thanks! fsdb can do the job.
It's appropriatly nasty though.
One is not worthy of the data it can return if one can not figure out the criptic help.
Sample session for the benefit of future readers (notably myself! :-).
# mount /dev/test/lvol2 /mnt
# mkdir /mnt/test
# bdf /mnt -> used: 26615
# dd bs=1k count=10 oseek=100000 if=/dev/zero of=/mnt/test/sparse
# bdf /mnt -> used: 26639
# cp /mnt/test/sparse /mnt/test/real
# bdf /mnt -> used: 126635
# ls -l /mnt/test
6 real 5 sparse
# [rx2620a{root}:/]>fsdb /dev/test/lvol2
fsdb: /etc/default/fs is used for determining the file system type
> help ...
> 5 i
inode structure at 0x00000129.0100
type IFREG mode 100666 nlink 1 uid 0 gid 3 size 102410240
:
ext0: DATA boff: 0x000186a0 bno: 26904 len: 8
ext1: DATA boff: 0x000186a8 bno: 26944 len: 2
ext2: NULL boff: 0x00000000 bno: 0 len: 0
> mapall
offset device block length
0 - HOLE 100000
102400000 0 26904 8
102408192 0 26944 2
>
> 6 i
inode structure at 0x00000129.0200
type IFREG mode 100666 nlink 1 uid 0 gid 3 size 102410240
:
de: 00384 28672 59392 65536 98304 26946 0 0 0 0
des: 26240 4096 6144 32768 30760 2 0 0 0 0
>
>
> mapall
offset device block length
0 0 384 26240
26869760 0 28672 4096
31064064 0 59392 6144
37355520 0 65536 32768
70909952 0 98304 30760
102408192 0 26946 2
>
> quit
#awk '{t+=$4; print $4,t}' x
26240 26240
4096 30336
6144 36480
32768 69248
30760 100008
2 100010
Regards,
Hein van den heuvel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 07:54 AM
05-16-2007 07:54 AM