Re: ??: Disks used by LV

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 07/22/04

  • Next message: David Zarnoch: "Fwd: Re: mksysb recovery problems SOLVED"
    Date:         Thu, 22 Jul 2004 15:21:54 +0200
    To: aix-l@Princeton.EDU
    
    
    

    It's theoretically possible that LVM would choose to allocate partitions on
    hdisk2 first, then hdisk1. This could get messy! Doing two extendlvs would
    prevent that, but it's also possible to prevent it by specifying an
    inter-volume allocation of "minimum", which will force LVM to allocate on
    the existing disk(s) before extending onto another disk.
    My preferred solution when disk placement is important is to use a map.
    e.g.
    hdisk1:400-537
    hdisk2:1-100

    Then... extendlv -m <map_file> lv_name 238

    Your map_file can cover more PPs than you actually want, but not less. The
    partitions will be used in the order in which they are listed. All of the
    PPs listed must be unallocated, so if there were one odd partition used in
    the middle of a range, you'd have to split it into two.
    e.g.
    hdisk2:1-40
    hdisk2:42=101

    If you're careful with your intra- and inter-volume allocation policies this
    isn't usually necessary, but sometimes it's nice to be sure what's going on.
    I've seen LVM do strange things when extending LVs from time to time. Use
    of maps is ESPECIALLY important if you're mirroring, IMHO.

    --
    Simon Green
    Altria ITSC Europe Ltd
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    <https://new-lists.princeton.edu/listserv/aix-l.html>
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    <http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX>
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: Kumar, Praveen (cahoot) [mailto:Praveen.Kumar@CAHOOT.COM]
    Sent: 22 July 2004 13:03
    To: aix-l@Princeton.EDU
    Subject: Re: ??: Disks used by LV
    Ok do you want me to give both the hdisk numbers in one go. something like
    this
    extendlv lv_name <no of LP's> hdisk1 hdisk2..
    isn't it?
    So this uses the available disk space  on hdisk1 first and the for the
    remaining space it picks up from the next given disk. Right.
    

  • Next message: David Zarnoch: "Fwd: Re: mksysb recovery problems SOLVED"

    Relevant Pages

    • Re: free up some disk space
      ... >> allocated to linux on my disk. ... I don't have any more to allocate from ... I have been able to get an FC2 install to fit on a ...
      (Fedora)
    • Re: BUG: Files corrupt after moving LVM volume to USB disk
      ... freed up some space on the USB disk and done some additional tests. ... > largest I could allocate while remaining in one segment -- otherwise lvmove ... as the two segments had been allocated continuously. ...
      (Linux-Kernel)
    • Re: Why does MAIL DIR go slow during mail receive?
      ... VMS MAIL stores the message in an external ... rounded up to full clusters) on the disk immediately following the end ... allocate them and then do the writing of the new record and probably ... or it may not be which requires an additional add and shuffle ...
      (comp.os.vms)
    • Re: The 9997th file specific DOSFS problem
      ... CPU intensive work in addition to disk I/O. ... Change <fatClugFac> to a larger value. ... DosFS tries allocate more ... clusters than are immediately needed. ...
      (comp.os.vxworks)
    • Re: extending system volume
      ... If I recall correctly you cannot extend the system volume unless the disk ... preferably free boot disk whch will let me launch diskpart. ... better way of extending system partition are appreciated. ...
      (microsoft.public.windows.server.general)