Professional Web Applications Themes

chfs - AIX

Hi , I have a problem which i don't understand : I growed a filesystem 7 Go but it growed only 3,5 Go !!! here is commands: before : /BDCATIA => 15 000 000 000 PP zize : 64 megabytes # extendlv lv05 112 ( 112 * 64 Mbytes = 7168 Mega bytes ) 7 * 1 048 576 000 = 7 340 032 000 bytes 7 340 032 000 = 1024 * y y = 7 340 032 000 / 1024 y = 7 168 000 # chfs -a size=+7168000 /BDCATIA after : /BDCATIA => 18 000 000 000 ...

  1. #1

    Default chfs


    Hi ,



    I have a problem which i don't understand :

    I growed a filesystem 7 Go but it growed only 3,5 Go !!!



    here is commands:



    before : /BDCATIA => 15 000 000 000



    PP zize : 64 megabytes



    # extendlv lv05 112 ( 112 * 64 Mbytes = 7168 Mega bytes )



    7 * 1 048 576 000 = 7 340 032 000 bytes



    7 340 032 000 = 1024 * y

    y = 7 340 032 000 / 1024

    y = 7 168 000



    # chfs -a size=+7168000 /BDCATIA





    after : /BDCATIA => 18 000 000 000 !!!!



    Thanks for your help


    --
    Posted via http://dbforums.com
    scoti Guest

  2. #2

    Default Re: chfs

    "scoti" <com> schrieb im Newsbeitrag
    news:com... 
    Hallo scoti,

    there is nothing wrong with the result because the unit AIX uses for
    calculating changes with the $fs commands is 512 and not 1024. :-( You might
    want to take a look at the basics of lvm. :-)

    Regards,
    Andreas


    Andreas Guest

  3. #3

    Default Re: chfs

    The filesystem blocksize is 512 per default, not 1024. So you should do
    either
    # chfs -a size=+14336000 /BDCATIA
    to increase filesystem for 7 GB
    btw, you don't have to increase the logical volume first. chfs will do it for you.

    Regards - Ulrich

    scoti <com> wrote in message news:<com>... 
    Ulrich Guest

  4. #4

    Default Re: chfs

    "Ulrich Koerner" <net> schrieb im Newsbeitrag
    news:google.com... 
    for you. 
    Hallo Ulrich,

    it is true that chfs will extend the lv for you. However there are some
    occasions when you are better off using chlv because you can define where
    the LPs will be placed on your disks with the lv commands only. E.g. using
    chfs might lead to unwanted effects if you are using stripe sets or if you
    want to keep your data in a certain section of your disks (that is very
    common for databases) because chfs will extend the filesystem just anywhere
    it wants to. It the old thing: the server does what you tell him to do, not
    what you meant him to do. ;-)

    Regards,
    Andreas


    Andreas Guest

  5. #5

    Default Re: chfs


    thanks for your help ,



    Do You know which command I can see if a disk is mirrored ?



    On Solaris it's : metastat -p



    AIX ?



    HP-UX ?



    Regards , Quoc


    --
    Posted via http://dbforums.com
    scoti Guest

  6. #6

    Default Re: chfs

    scoti <com> wrote in message news:<com>... 

    The chfs command (by default) uses 512 byte blocks, 2 blocks = 1k.
    That's why it only grew half as much as you expected. With newer
    versions of AIX, you can specify the size in MB (M) or GB (G) which is
    easier to work out.

    Iain.
    Iain Guest

  7. #7

    Default Re: chfs

    net (Ulrich Koerner) wrote in message news:<google.com>... 

    chfs will only increase the number of LP's up until the MAX LP's limit
    set on the logical volume, which by default is 512. You can change the
    max number of LP's with chlv -x

    Steve
    Steve Guest

  8. #8

    Default Re: chfs

    scoti <com> wrote in message news:<com>... 

    Strictly speaking disks aren't mirrored, but the logical volumes are.
    If do lsvg -l rootvg:
    LV NAME TYPE LPs PPs PVs LV STATE MOUNT
    POINT
    hd5 boot 1 2 2 closed/syncd N/A
    hd6 paging 34 34 1 open/syncd N/A
    hd8 jfslog 1 2 2 open/syncd N/A
    hd4 jfs 2 4 2 open/syncd /
    hd2 jfs 48 96 2 open/syncd /usr
    hd9var jfs 2 4 2 open/syncd /var
    hd3 jfs 3 6 2 open/syncd /tmp
    hd1 jfs 1 2 2 open/syncd /home

    As you can see on most of the LV's, the number of PP's is twice the
    number of LP's and number of PV's is equal to 2. If the LV wasn't
    mirrored, then the number of PP's would be the same as number of LP's,
    but it would still be valid to have more than one PV as you could have
    LP's split across multiple disks.

    Steve
    Steve Guest

  9. #9

    Default Re: chfs

    Is this LV mirrored with 2 copies?
    -MT

    On Mon, 13 Oct 2003, scoti wrote:
     
    Michael Guest

  10. #10

    Default Re: chfs

     





    No, the LV is not mirrored

    I understood the purpose by the explanation of Steve Nottingham :



    default LV is 512 ( i check with the smit chfs command )





    1024 = 512 * 2 => my BDCATIA growed to half


    --
    Posted via http://dbforums.com
    scoti Guest

  11. #11

    Default Re: chfs

    scoti <com> wrote in message news:<com>... 

    HP-UX only mirrors on the LV's

    e.g. lvdisplay /dev/vg00/lvol* |grep "Mirror Copies" would check the
    mirror state of all rootvg LV's.

    lvdisplay -v /dev/vg00/lvol3 | grep -i stale should return nothing,
    unless a disk failed.
    Florian Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139