AIX

AIX

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


#Power
 View Only
  • 1.  1 Virtual Disk to Multiple LPAR

    Posted Wed July 14, 2010 12:54 AM

    Originally posted by: SystemAdmin


    Dear All,

    Thanks for addressing to this thread.

    I've some query on Virtual IO server.

    Here some background.

    HMC Version : 3.5.0.2
    VIOS : 1.5
    VIO OSlevel : 5.3
    No SAN involved
    Physical disk : 4 (146G/ea)
    hdisk0, hdisk1 = rootvg (for 3*LPAR/30G)
    hdisk2, hdisk3 = not in used

    Is it possible to create a vg from hdisk2(eg. vg00) and map to 2 different LPAR?
    vg00
    - lv0 - visiable to LPAR1 and LPAR2 (r/w)
    - lv1 - visiable to LPAR1 and LPAR2 (r/w)

    Best Regards,
    Kelvyn
    #AIX-Forum


  • 2.  Re: 1 Virtual Disk to Multiple LPAR

    Posted Wed July 14, 2010 09:18 AM

    Originally posted by: broberts


    Yes you can. If you leave it as a regular hdisk device on the VIO side, you can just pass it through to the VIO clients as long as you turn off the reserve locks. (chdev -dev hdisk2 -attr reserve_policy=no_reserve; chdev -dev hdisk2 -attr reserve_policy=no_reserve -perm)

    I don't recall if a logical volume device has the reserve_policy attribute or not, but if you use LVM at the VIO layer to carve up the disk, then you may need to do the same at the hdisk level and the lvol level. This is also how you use the same disks through multiple VIO servers for a multipathing/redundant setup.

    One thing to note, if you present this disk to multiple LPARs, you will need to have some sort of clustered filesystem (GPFS, HACMP Enhanced Concurrent VG, etc) to manage this. If you use JFS2, you will run in to all sorts of issues when both servers try to access that disk. 100% chance of corruption at that point.

    Good luck!
    #AIX-Forum


  • 3.  Re: 1 Virtual Disk to Multiple LPAR

    Posted Wed July 14, 2010 08:48 PM

    Originally posted by: SystemAdmin


    Hey Thanks for your help here.

    Individual disk mapping to multiple client. I'm able to map it using the mkvdev command.

    However, I'm trying to slice the physical disk from the vio and map it over to the client.

    Yup, you're right as I'm trying to setup an test environment to setup RAC on the 2 LPAR without any involvement of a SAN.

    Alternative, do you have any information for setting up an RAC by just using 2 LPAR and shared disk from the VIO?

    Your assistance is deeply appreciated as I'm at the minimum knowledge with HMC and LPAR configuration.

    Many Thanks
    Kel
    #AIX-Forum