Re: find hdisk given a filename
From: Simon Marchese (simon_marchese_at_UK.IBM.COM)
Date: 12/28/04
- Previous message: Leyden, Joseph: "Re: find hdisk given a filename"
- In reply to: Leyden, Joseph: "Re: find hdisk given a filename"
- Next in thread: Suri: "Re: find hdisk given a filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Dec 2004 02:17:44 +0000 To: aix-l@Princeton.EDU
Which block of the file are you interested in? This is a serious question.
"Leyden, Joseph" <LeydenJ@METRO.NET>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
27/12/2004 19:26
Please respond to
IBM AIX Discussion List
To
aix-l@Princeton.EDU
cc
Subject
Re: find hdisk given a filename
Does this mean if there are 10 hdisks in a logical volume
I have no way of finding out where a particular filename reside?
It seems that some lower level command should be able to show this.
Joe
-----Original Message-----
From: Justin Bleistein [mailto:justin.bleistein@TOWERSPERRIN.COM]
Sent: Monday, December 27, 2004 11:11 AM
To: aix-l@Princeton.EDU
Subject: Re: find hdisk given a filename
I'm assuming you mean, you want to know what physical hard disk a file
like: "/etc/hosts" resides on?
To figure that out find out which filesystem the file is on (considering
you know the fully qualified pathname of the file "i.e. - /etc/hosts":
# cd /etc
# ls -l hosts
info on hosts file...
#
Now check the filesystem you are currently in, the filesystem/directory to
file lives:
# df -k .
/dev/hd4 xx xx xx xx xx /
#
Now the directory: "/etc/" which lives on filesystem: "/" which sits on
logical volume: "/dev/hd4". Now you must find out
what physical hard disk(s) the "/dev/hd4" logical volume lives on:
# lslv -l hd4 (hd4 - being the logical volume name):
PV COPIES IN BAND DISTRIBUTION
hdisk0 001:000:000 100% 001:000:000:000:000
hdisk1 001:000:000 100% 001:000:000:000:000
Under the PV column will be the name of the hdisk the logical volume:
"hd4" resides on. Then just trace that back to the file in
the same hierarchy I explained earlier. Now the list of two physical
volumes/disks means this logical volume is either mirrored
or is soo big that it spans multiple disks.
Hope this helps.
Thanks.
--Justin Richard Bleistein
AIX Systems Administrator
"Leyden, Joseph" <LeydenJ@METRO.NET>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
12/27/2004 01:43 PM
Please respond to
IBM AIX Discussion List <aix-l@Princeton.EDU>
To
aix-l@Princeton.EDU
cc
Subject
Re: find hdisk given a filename
Is there a command to find out which hdiskXX a particular file belong to?
thank you in advance ...
Joe
NOTICE: This communication may contain confidential, proprietary or
legally privileged information. It is intended only for the person(s) to
whom it is addressed. If you are not an intended recipient, you may not
use, read, retransmit, disseminate or take any action in reliance upon it.
Please notify the sender that you have received it in error and
immediately delete the entire communication, including any attachments.
Towers Perrin does not encrypt and cannot ensure the confidentiality or
integrity of external e-mail communications and, therefore, cannot be
responsible for any unauthorized access, disclosure, use or tampering that
may occur during transmission. This communication is not intended to
create or modify any obligation, contract or warranty of Towers Perrin,
unless the firm clearly expresses such an intent.
- Previous message: Leyden, Joseph: "Re: find hdisk given a filename"
- In reply to: Leyden, Joseph: "Re: find hdisk given a filename"
- Next in thread: Suri: "Re: find hdisk given a filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|