HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where is physically located a file?
Operating System - HP-UX
1832439
Members
3250
Online
110042
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-28-2005 04:24 AM
12-28-2005 04:24 AM
Where is physically located a file?
Hi,
I need to identify what are the disks and PE's that belong to a file. I only know the ckdisks script but i need more information. For example:
- File test.txt belongs to c2t0d0 disk, and it is physically located in PE's 23000-23500.
Is there any script or command?.
Thanks.
I need to identify what are the disks and PE's that belong to a file. I only know the ckdisks script but i need more information. For example:
- File test.txt belongs to c2t0d0 disk, and it is physically located in PE's 23000-23500.
Is there any script or command?.
Thanks.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2005 06:14 AM
12-28-2005 06:14 AM
Re: Where is physically located a file?
Hi Angelito:
Have a look at 'ncheck'.
Knowing the filesystem in which the file resides, look at the filesystem size with 'bdf'. Take the value of the filesystem size in 'kbytes' and subtract one from it to make it zero-relative. For example, I have a '/home' filesystem that is 20480 kbytes in size mounted on '/dev/vg00/lvol5'.
To find where in this filesystem a file named "jrf_file", lives, do:
# ncheck -F vxfs -S 0-20479 /dev/vg00/lvol5|grep jrf_file
In my case this returned:
UNNAMED 999 1762 3740-3742 /jrf_file
UNNAMED 999 1762 3718-3725 /jrf_file
See the manpages for 'ncheck' for more details. In the above, the inode number is 1762 and the file I sought resides in sectors 3740-3742 and 3718-3725. From this one should be able to map to a logical extent and then to a particular physical extent.
Regards!
...JRF...
Have a look at 'ncheck'.
Knowing the filesystem in which the file resides, look at the filesystem size with 'bdf'. Take the value of the filesystem size in 'kbytes' and subtract one from it to make it zero-relative. For example, I have a '/home' filesystem that is 20480 kbytes in size mounted on '/dev/vg00/lvol5'.
To find where in this filesystem a file named "jrf_file", lives, do:
# ncheck -F vxfs -S 0-20479 /dev/vg00/lvol5|grep jrf_file
In my case this returned:
UNNAMED 999 1762 3740-3742 /jrf_file
UNNAMED 999 1762 3718-3725 /jrf_file
See the manpages for 'ncheck' for more details. In the above, the inode number is 1762 and the file I sought resides in sectors 3740-3742 and 3718-3725. From this one should be able to map to a logical extent and then to a particular physical extent.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP