Re: find hdisk given a filename

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

  • Next message: Simon Marchese: "Re: find hdisk given a filename"
    Date:         Mon, 27 Dec 2004 11:26:02 -0800
    To: aix-l@Princeton.EDU
    
    

    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: Simon Marchese: "Re: find hdisk given a filename"

    Relevant Pages

    • Re: find hdisk given a filename
      ... find hdisk given a filename ... IBM AIX Discussion List ... This communication is not intended to create or modify any ...
      (AIX-L)
    • 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: RAID5 question
      ... Subject: RAID5 question ... > To determine which hdisk a given log vol resides: ... >> single big hdisk array. ...
      (AIX-L)
    • Re: Set location for CommonDialog object
      ... > How do I specify the path/folder for a CommonDialog object? ... > in which the application resides. ... Set the .FileName and/or .InitDir properties ...
      (microsoft.public.vb.controls)
    • How do you get the current page that i am reading??? in C#
      ... Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName, ... my program is reading resides??? ...
      (microsoft.public.office.developer.automation)