Re: Creating Clean LV on HACMP VG

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 03/29/05

  • Next message: Leyden, Joseph: "Re: RAID5 question"
    Date:         Tue, 29 Mar 2005 12:58:48 +0200
    To: aix-l@Princeton.EDU
    
    

    Further to what Urs said, I would *strongly* encourage you to use smitty, at
    least to start with. As well as smit.script, which shows exactly what it's
    done, pressing "F6" will show you the command that's about to be run.

    Using smit/smitty will help you avoid mistakes and can be a valuable
    learning tool.

    One error in particular: you should not edit /etc/filesystems directly, but
    use the crfs command (or smit). If you don't, then should you ever export
    the volume group and then re-import it - highly likely if you're using HACMP
    - you'll lose the filesystem information. By using the appropriate AIX
    commands all of the filesystem information gets added to /etc/filesystems
    and also to the VGDA, so that an importvg will add it back automatically.

    (Unlike other UNIXes, with AIX you don't tend to edit configuration files so
    much, but use commands instead. A lot of the information is also stored in
    the ODM, and if you edit the file directly it doesn't get put into the ODM.
    You need to be careful until you understand a bit more about what's going
    on. If you use smit you don't need to worry about it.)

    Also, the JFSlog MUST be in the same volume group. If you don't specify the
    log, LVM will use an existing log or create a new one if necessary.

    Generally, I'd create a new filesystem with commands similar to these:

    mklv -t jfs -a e -y new_lv_name my_vg01 100 hdisk10
    crfs -v jfs -d new_lv_name -m /my/new/filesystem -A yes -a nbpi=16384 -a
    bf=true
    mount /my/new/filesystem

    That's creating a new LV with 100 partitions on the outer edge of hdisk10
    from volume group "my_vg01", then using that LV to create a new filesystem
    "/my/new/filesystem", which will be mounted automatically at start-up, with
    an NBPI of 16384 (instead of the default 4096) and which is large-file
    enabled.

    You can actually do everything with just the crfs command, but then you
    can't control the LV name or where exactly it is placed.

    But once again: use smitty for now.

    --
    Simon Green
    Altria ITSC Europe s.a.r.l.
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? 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: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On
    > Behalf Of Rene' Pelligrino
    > Sent: 28 March 2005 16:13
    > To: aix-l@Princeton.EDU
    > Subject: Creating Clean LV on HACMP VG
    >
    >
    > Hello,
    >
    >         I have read a lot of documentation on how to create a
    > new LV on our
    > existing volume group, and would like somebody to critique my plan for
    > deploying a new 40GB LV. I am experienced with UNIX/linux, but new to
    > AIX.
    <SNIP>
    >         To make the desired LVM LV inside of numtwovg, I plan
    > to use the
    > following commands...
    >
    >         mklv -Y /dev/numtwolog numtwovg 40G
    >         mkdir /bi01
    >         mount -o log=/dev/hd8 /dev/bilv01 /bi01
    >
    > Questions:
    >
    >         #1 How do I force a device name of /dev/bilv01? Or do
    > I just peek errpt
    > to see what new block device came up...
    >         #2 The LV is already JFS? Do I have to mkfs or
    > something like that?
    >
    >         Finally, Add the following entry into /etc/filesystems...
    > /bi01:
    >         dev             = /dev/bilv01
    >         vfs             = jfs
    >         log             = /dev/numtwolog
    >         mount           = true
    >         check           = false
    >         options         = rw
    >         account         = false
    

  • Next message: Leyden, Joseph: "Re: RAID5 question"

    Relevant Pages

    • Re: MAssive Performance hit after AIX 4.3 -> 5.2 upgrade!!
      ... that really does sound like the system is memory and/or I/O-starved ... My current hypothesis is that you were already low on memory in AIX ... Put it in /tmp on the remote AIX box. ... Do these commands to install it: ...
      (comp.unix.aix)
    • Re: Script 101
      ... You did not mention whether you are on a specific revision of AIX, ... You may need to make use of the rsh and rmuser commands. ... there is a feature to adjust the file system size using "chfs ... up their mind how to measure what exactly is ADEQUATE paging space. ...
      (comp.unix.aix)
    • Re: Ipfilter in AIX, or AIX IPsec CLI
      ... Now, the AIX question. ... > suggests to use smit at some points of installation process. ... building commands and firing them off. ...
      (comp.unix.aix)
    • Re: df -k output filtering - a better way of mailing anything
      ... print "\nUnused Disks attached to system ... > That's a good one to test on AIX. ... > try it as commands in a single mail message ... > Couple of binary attachments: ...
      (AIX-L)
    • File Permissions ???? 0821-067 ping: The socket creation call failed.: The file access permissions d
      ... Howdy to all AIX Gurus – Have inherited a machine and not knowing too ... and a mount command shows ... If you then login as a user other than root you cannot run commands ... such as su or ping – If you try to then you get back an error message ...
      (comp.unix.aix)