Operating System - HP-UX
1827351 Members
6313 Online
109963 Solutions
New Discussion

how to find a datafile's inodes distributionï¼

 
SOLVED
Go to solution
hailerer
Advisor

how to find a datafile's inodes distributionï¼

Hi,we want to know a special oracle datafile's
particular position on some LUN,do you have any mind?
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: how to find a datafile's inodes distributionï¼

I'm not sure I quite understand what you are asking?

What do you mean "particular position on some LUN"?

If you are talking in terms of a LUN, then you are likely on some sort of disk array. LUNs on disk arrays are generally made up of many disks. The exact number will depend on your array and how it is configured. The data is generally then striped across all disks in a LUN, but again this depends on your exact configuration. So a single Oracle datafile could be spread across many disks in a LUN on your disk array.

In your subject line you mention a datafiles inode distribution. If you are talking about a single datafile, then there will be only one (1) inode associated with that datafile. The inode is not at the LUN level anyway, it is at the filesystem (or logical volume) level. The inode really has no bearing on how the datafile is placed in the LUN on the disk array.

I hope this all makes sense. If this isn't what you were asking, please clarify your question with a few more details.
hailerer
Advisor

Re: how to find a datafile's inodes distributionï¼

Hi,I use xp512 disk array,and luns were made by OPEN-E or OPEN-8.In os level,I can only see these logical disks.our file system is vxfs,how can I find out the disks which a data file use? I can find the inode number
of a file use "ls -li",how to find the blocks and relative disk device on this inode?
Sanjay Kumar Suri
Honored Contributor

Re: how to find a datafile's inodes distributionï¼

After formatting a disk group in XP512 using some emulation mode such as Open-E --> LDEVs are created --> LUNs are assigned to host.

If you have used LVM/Veritas then physical volumes are group of LDEVs.

xpinfo -i can give details of datafiles created on file system which in turn are based on physical volumes.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
hailerer
Advisor

Re: how to find a datafile's inodes distributionï¼

I want to know the detailed data block map for a inode.
------------------------------------------
hchk0#fsdb -F vxfs /dev/vx/dsk/dg_test/vol_test
> 1281 i
inode structure at 0x00001207.0100
type IFREG mode 100644 nlink 1 uid 0 gid 3 size 872069120
atime 1073627022 348932 (Fri Jan 9 13:43:42 2004 EAT)
mtime 1073614513 180669 (Fri Jan 9 10:15:13 2004 EAT)
ctime 1073614513 180669 (Fri Jan 9 10:15:13 2004 EAT)
aflags 0 orgtype 1 eopflags 0 eopdata 0
fixextsize/fsindex 0 rdev/reserve/dotdot/matchino 0
blocks 106454 gen 0 version 0 66 iattrino 0
de: 7964 1277952 1245184 65536 0 0 0 0 0
0
des: 24804 32768 32768 16114 0 0 0 0 0
0
ie: 0 0
ies: 0

inode 1281 has so many blocks,how can I find which devices belong to them?
Jean-Louis Phelix
Honored Contributor
Solution

Re: how to find a datafile's inodes distributionï¼

Hi,

You could use grep on the output of :

ncheck -oblock=- /dev/vx/dsk/dg_test/vol_test

see man ncheck_vxfs and have a try.

Regards.
It works for me (© Bill McNAMARA ...)
hailerer
Advisor

Re: how to find a datafile's inodes distributionï¼

Thank you very much!