AIX

AIX

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


#Power
#Power
 View Only
  • 1.  raw volumes

    Posted Wed November 01, 2006 07:29 AM

    Originally posted by: amitmacau


    I want to creat raw lvs for my database. The vg will have some lvs having filesystems and some lvs as raw. How to go about. Is it possible to have raw and filesystem on some lvs of same VG.
    #AIX-Forum


  • 2.  Sure no problem

    Posted Wed November 01, 2006 11:03 AM

    Originally posted by: nagger


    AIX has been doing this for 20 years!!

    Just use the crlv command or the LVM smitty panels
    Short cut to the LVMsmitty panels with: smitty lvm
    #AIX-Forum


  • 3.  Re: Sure no problem

    Posted Wed November 01, 2006 12:49 PM

    Originally posted by: cd3lgado


    Hi

    This bring me to the question:

    How to create a raw device in AIX. I've always used the mklv with -t "raw" option despite this is not a really type for LV.

    Different from Linux where you make a dd copy to the target LV and run the raw command in order to link these newly created raw device with a pointer.

    TIA
    #AIX-Forum


  • 4.  Re: Sure no problem

    Posted Wed November 01, 2006 05:25 PM

    Originally posted by: HajoEhlers


    > Hi
    >
    > This bring me to the question:
    >
    > How to create a raw device in AIX. I've always used
    > the mklv with -t "raw" option despite this is not a
    > really type for LV.

    The -t option give the logical volume just a label for the output of an lsvg datavg ( In case the lv was created within this vg ). Its imho a good idea in case some scripts parsed the output to mirror an lv if its a jfs or jfs2 LV type. And mirroring a raw device with the LVM is not a good idea.

    If you create a lv with the mklv command you will see in the /dev an entry starting with r for the just created lv. This is your raw device.
    Example: ( Not working because from memory )
    mklv -t raw -y dbrawdata 100 datavg

    Now a "ls -l /dev/*dbrawdata" will show:
    b ... /dev/rdbrawdata <--- THIS IS YOUR raw logical volume
    c ..../dev/dbrawdata

    hth
    Hajo
    #AIX-Forum


  • 5.  Re: Sure no problem

    Posted Thu November 02, 2006 09:47 AM

    Originally posted by: orphy


    Typo

    >>Now a "ls -l /dev/*dbrawdata" will show:
    >>b ... /dev/rdbrawdata <--- THIS IS YOUR raw logical volume
    >>c ..../dev/dbrawdata

    c ... /dev/rdbrawdata <--- THIS IS YOUR raw logical volume
    b ..../dev/dbrawdata
    Orphy! :-)
    #AIX-Forum