AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  administrating Volume group

    Posted Fri December 29, 2006 07:35 AM

    Originally posted by: SystemAdmin


    Hi,

    I'm new to AIX,i found that the DISK/LVM Commands in AIX are:
    a) mkdev
    b) mkvg
    c) mklv

    But while preparing a physical disk for LVM,i get following message:

    1. mkdev -c disk -l hdisk1
    mkdev: 0514-517 The information provided to this configuration command
    was not adequate to uniquely identify the device.
    Provide more device information than the following:
    class = 'disk'

    How should i proceed furhter.

    Thanks.


  • 2.  Re: administrating Volume group

    Posted Fri December 29, 2006 08:32 AM

    Originally posted by: steevojb


    Hi There,

    I have never needed to use mkdev.

    I suggest your start here,

    http://www.redbooks.ibm.com/abstracts/sg245433.html?Open

    HTH

    Steve


  • 3.  Re: administrating Volume group

    Posted Fri December 29, 2006 08:55 AM

    Originally posted by: nh4aix


    Use SMIT first... let it help you build the command... "smitty lvm" will take you to the LVM screens... choose disks and then make or create a disk...

    F6 will show you the command your are building or built. $HOME/smit.script will show you the command you ran...

    It is a much better way than fighting with the command syntax...

    Good luck,
    Joe


  • 4.  Re: administrating Volume group

    Posted Fri December 29, 2006 10:24 AM

    Originally posted by: SystemAdmin


    Thanks Joe,

    I wanted to come out with some shell scripts for doing such adminstration,which i think should now be tried with "Expect".


  • 5.  Re: administrating Volume group

    Posted Fri December 29, 2006 09:58 AM

    Originally posted by: SystemAdmin


    Thanks for the pointer steve.


  • 6.  Re: administrating Volume group

    Posted Fri December 29, 2006 11:02 AM

    Originally posted by: orphy


    You typically don't need to use mkdev when dealing with LVM tasks
    unless the disk is in Defined state and you want to make it Available.
    Or that you need to do some troubleshooting. Or that you want to rename it,
    say, to a more meaningful name. I used to use rmdev/mkdev to rename disks
    in HACMP clusters.

    That said, if you are trying to make a LV or FS, the hdisk should already
    be there and if you just happened to have added a hot-plug disk, all you
    need is run a "cfgmgr" and "lsdev -Clhdisk1" should show it as Available.

    After having hdiskX, you can, as Joe suggested, use SMIT to create the LV/FS.
    Try "smitty mklv" & "smitty crfs". After than you can simply "mount /xyz".
    If hdisk1 is not part of a VG yet, you need to do "smitty mkvg" first.

    So,

    cfgmgr
    smitty mkvg
    smitty mklv
    smitty crfs
    smitty mount

    I tend to manage AIX disk/LVM from the CLI but SMIT is a good learning tool.
    I normally don't use Expect to cut the LV/FS. And if I have to create a
    bunch of them, I'll just do a simple ksh script for it...
    Orphy! :-)