Re: find hdisk given a filename

From: Leyden, Joseph (LeydenJ_at_METRO.NET)
Date: 12/28/04

  • Next message: JOSEPH KREMBLAS: "Re: Vmtune question. What is NaNQ% ?"
    Date:         Tue, 28 Dec 2004 07:25:46 -0800
    To: aix-l@Princeton.EDU
    
    

    say ANY block....

    -----Original Message-----
    From: Simon Marchese [mailto:simon_marchese@UK.IBM.COM]
    Sent: Monday, December 27, 2004 6:18 PM
    To: aix-l@Princeton.EDU
    Subject: Re: find hdisk given a filename

    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.


  • Next message: JOSEPH KREMBLAS: "Re: Vmtune question. What is NaNQ% ?"

    Relevant Pages

    • Re: find hdisk given a filename
      ... IBM AIX Discussion List ... I have no way of finding out where a particular filename reside? ... find hdisk given a filename ... immediately delete the entire communication, ...
      (AIX-L)
    • Re: find hdisk given a filename
      ... I have no way of finding out where a particular filename reside? ... "/etc/hosts" resides on? ... Under the PV column will be the name of the hdisk the logical volume: ... This communication is not intended to create or modify any ...
      (AIX-L)