- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FileDisk map location
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
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
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
тАО07-18-2000 01:23 PM
тАО07-18-2000 01:23 PM
FileDisk map location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 01:31 PM
тАО07-18-2000 01:31 PM
Re: FileDisk map location
What may help is a utility called "locate" Same thing as doing find on the system for all files and redirecting into a file. As for size/usage, etc. that will probably be up to the script you are writing. I would think it is a very CPU intensive application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 01:35 PM
тАО07-18-2000 01:35 PM
Re: FileDisk map location
Have you tried using the 'find' command similar to the following:
find . -name filename -exec ll {} ;
This will locate the filename and perform a long listing of it (including file size). You can then extract the file size using 'awk' or 'cut', e.g.
find . -name filename -exec ll {} ;|awk '{print $5}'
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 10:58 PM
тАО07-18-2000 10:58 PM
Re: FileDisk map location
Maybe the df command can help you. It reports the number of free file system disk blocks, but the output contains the name of the file system.
example:
#df wtmp
/var (/dev/vg00/lvol8): 899572 blocks 119866 i-nodes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 11:08 PM
тАО07-18-2000 11:08 PM
Re: FileDisk map location
something like 'du -k /'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 07:00 AM
тАО07-19-2000 07:00 AM
Re: FileDisk map location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 07:08 AM
тАО07-19-2000 07:08 AM
Re: FileDisk map location
There are scripts available out there (in this forum for example) that will detail the mirroring and stripping info but these do not go to the file level. I would question why going to the file level to find the stripping setup? It isn't necessary by the file, do it by the logical volume or the volume group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 07:11 AM
тАО07-19-2000 07:11 AM
Re: FileDisk map location
i have written (quick and dirty) a C programm
that does something like fileplace.
Look at the attachment.
Cheers
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 07:11 AM
тАО07-19-2000 07:11 AM
Re: FileDisk map location
as both find and du will report the full path name it wouldn't be impossible to do it by filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 07:20 AM
тАО07-19-2000 07:20 AM
Re: FileDisk map location
or even better might be vtree :- http://hpux.cs.utah.edu/ftp/hpux/Users/vtree-1.0/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 07:31 AM
тАО07-19-2000 07:31 AM
Re: FileDisk map location
lvdisplay -v ` df -n $FILE_YOU_ARE_LOOKING_FOR | awk '{print $2}' | tr -d "("` | awk '{print $2}' | grep /dev/dsk
It's not really nice... but maybe it helps